The My account page allows you to manage your account settings.
There are two ways to access the API for the Tartabit IoT Bridge. First is to authenticate as a user, this is good for creating interactive applications where you wish to provide individual access to people. The second methos is to use an API token. API tokens can be used as bearer tokens in API requests and do not require an explicit login.
API Tokens always start with "AT:", and user tokens start with "UT:" making them easy to tell apart.
Here is a sample request using an API token.
GET /services HTTP/1.1
Host: tartabit.com
Authorization: Bearer AT:xxxxxxxxxxxxx
It is possible to use an API token to access sub-accounts as well as the current account. To make an API call in a sub-account, you must append :[accountId]
to the Bearer token. This functionality allows you do have a single token to access all of your sub-accounts for easy provisioning.
Here is a sample request requesting a sub-account.
GET /services HTTP/1.1
Host: tartabit.com
Authorization: Bearer AT:xxxxxxxxxxxxx:61293d1******b30af20095c