Skip to main content
POST
/
auth
/
token
Authentication
curl --request POST \
  --url https://sandbox.sturdytechnologies.com/v3/auth/token \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data grant_type=client_credentials \
  --data 'scope=card,us_account'
{
  "data": {
    "access_token": "<string>",
    "expires_in_seconds": 123,
    "scope": "card,us_account",
    "token_type": "<string>"
  },
  "message": "<string>",
  "success": true
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/x-www-form-urlencoded
grant_type
string
required

OAuth grant type (e.g. client_credentials)

Example:

"client_credentials"

scope
string
required

Requested scopes (space-separated)

Example:

"card,us_account"

Response

OK

data
object
message
string
success
boolean