Skip to content
العربية

Authentication

Get an access token

POSThttps://api.razza.sa/v1/oauth/token

OAuth 2.0 client credentials. Send the client id and secret with HTTP Basic, or as client_id and client_secret in the form or JSON body. Tokens last one hour.

No token needed

Request body

FieldTypeDescription
grant_typerequiredstring
One of:client_credentials
client_idstring
client_secretstring

Responses

  • 200OKToken
  • 400invalid_request or unsupported_grant_type
  • 401invalid_client
  • 429too_many_requests