In order to access the Select Star API, you'll need to first generate a token.
In your Account Settings page, under
Client API Token, click on
Manage API Tokens:
Then, in the modal, click on the
Copy the text in the
API Tokenfield to use as the token in API requests.
API tokens have no expiration, but they can be deleted and then recreated manually.
All Select Star API endpoints require authentication, so the token must be included it in all requests. Set the
Authorizationheader for bearer authentication like the following:
Authorization: Token <token>
Please note that for authorization type, you must use
For example, in
curl, set the header using the
curl https://api.production.selectstar.com/v1/tables/ -H "Authorization: Token <your_token>"
If the token is missing or invalid, the endpoint will return
401: Unauthorizedwith one of the following messages in the body:
"detail": "Authentication credentials were not provided."
"detail": "Given token not valid for any token type",
"message": "Token is invalid or expired"