If you are receiving an "Invalid Token" error when making calls through our API, the token you are using to make requests has most likely expired. The tokens provided from each APIAUTH call will only be valid for 24 hours, and each time a new AUTH call is made, the previous token will no longer be valid.
What is a Token?
Whenever you make an authentication call to the Data Zoo API, you will receive a token that you will use for requests to your available Data Sources. The input and output for the API Authentication calls are as follows:
API CALL (JSON)
Input
curl --location 'https://idu-test.datazoo.com/api/v2/auth/sign_in' \
--data '{
"username": "Username",
"password": "Password"
}'
Output
{
"message": "Logged in!",
"sessionToken": "xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
For more information please consult our API documentation DZ API.