Authorization
Here you will learn how to authorize Astroid's API
Astroid API uses Tokens (long random-generated strings) to authorize.
Providing a token
Tokens are provided as a query parameter. For example:
curl --location --request GET "https://api.astroid.cc/1?token=shKJ5QgdsKWDgk7lskE..."Diffrent types of declarations
Depending where the token parameter is located in the URL the prefixes are different.
token parameter at the beginning of parameters
token parameter at the beginning of parametersThe token parameter is intoroduced via a ? after the last path declaration:
https://api.astroid.cc/1?token=shKJ5QgdsKWDgk7lskE...
token paramter inside or after other parameters
token paramter inside or after other parametersThe token parameter is intoduced with a & after a parameter (doesn't matter if between other or at the end)
https://api.astroid.cc/update/1?message_content=test+message&token=shKJ5QgdsKWDgk7lskE...
Last updated
Was this helpful?