curl --request POST \
--url https://public-api.stora.co/oauth2/token \
--header 'Content-Type: application/json' \
--data '
{
"grant_type": "client_credentials",
"client_id": "ei5bQqk_qUqan8MYMarc2-Eqb48vdB-oc_qBBUjG7co",
"client_secret": "NlUuAoPDsKBhcCHc-I2Sa4nlPUaYm31nus6_OpiOzmQ",
"scope": "public.contact:write"
}
'{
"access_token": "_XVP5ehrV2pbjYmyx7B3vG0A3L2ZDHj5w1VVaJ9jfAM",
"token_type": "Bearer",
"expires_in": 7200,
"scope": "public.contact:write",
"created_at": 1740235260
}OAuth 2
Retrieve an Access Token
Retrieve an Access Token. Set grant_type to client_credentials for backend access to an account you manage, authorization_code after an operator authorizes your partner app, or refresh_token to renew an Authorization Code token. Tokens expire after 2 hours (expires_in). Cache and reuse a token instead of requesting one per call. Client Credentials returns no refresh_token. While a Client Credentials token has over a quarter of its lifetime left, a request with the same scopes returns that same token, so revoking it revokes it for every caller.
See Authentication.
POST
/
oauth2
/
token
curl --request POST \
--url https://public-api.stora.co/oauth2/token \
--header 'Content-Type: application/json' \
--data '
{
"grant_type": "client_credentials",
"client_id": "ei5bQqk_qUqan8MYMarc2-Eqb48vdB-oc_qBBUjG7co",
"client_secret": "NlUuAoPDsKBhcCHc-I2Sa4nlPUaYm31nus6_OpiOzmQ",
"scope": "public.contact:write"
}
'{
"access_token": "_XVP5ehrV2pbjYmyx7B3vG0A3L2ZDHj5w1VVaJ9jfAM",
"token_type": "Bearer",
"expires_in": 7200,
"scope": "public.contact:write",
"created_at": 1740235260
}Body
application/json
Response
Access Token
OAuth 2 Token Response
Was this page helpful?