post https://example.com/api/v0/auth/getToken
When a user's clientId and Secret are submitted, a Bearer token that can then be used with other API calls is returned.
Using a user's clientId
and secret
, Spreetail returns an access token. In our case, we return a JWT to be used as a Bearer Token.
This is the request body:
{
"clientId": "string",
"secret": "string"
}
This is the response body:
{
"token": "string"
}
You can then use the “access_token” to call any secured endpoints:
curl --request GET \
--url https://{ApiDomain}/api/v0/apiMethodCall \
--header 'Authorization: Bearer {access_token}'