post
https://api.spreetail.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.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
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}' 401Unauthorized
