cURL
curl --request POST \ --url https://{env}.tartanhq.com/api/external/oauth/token \ --header 'Content-Type: multipart/form-data' \ --form username=johndoe@example.com \ --form password=mysecretpassword \ --form grant_type=password
{ "access_token": "eyJhbGciOi...", "token_type": "bearer", "expires_in": 3600, "refresh_token": "eyJhbGciOi..." }
Obtain an access token using Resource Owner Password Credentials (password grant type).
"johndoe@example.com"
"mysecretpassword"
password
"password"
OAuth token generated successfully
"eyJhbGciOi..."
"bearer"
3600