Before accessing any endpoints, clients need to obtain an access token through the authentication process, using Username and Password The access token serves as a credential to authenticate the client’s requests to the API.
cURL
curl --request POST \ --url https://api-staging.crazygoldfish.com/token \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data 'username=<string>' \ --data 'password=<string>' \ --data 'grant_type=<string>' \ --data 'scope=<string>' \ --data 'client_id=<string>' \ --data 'client_secret=<string>'
{ "access_token": "<string>", "token_type": "bearer" }
The username of the client.
The password associated with the username.
OAuth 2.0 grant type.
The scope of the access request.
The client ID.
The client secret.
Successful response
The access token to be used for authentication with 30 minutes expire.
The token type.
"bearer"
Was this page helpful?