Skip to main content
POST
/
token
curl --request POST \
  --url https://api.mobway.cloud/token \
  --header 'accept: application/json' \
  --data-urlencode 'client_id=<client-id>' \
  --data-urlencode 'client_secret=<client-secret>'
{
	"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb21wYW55IjoibW9id2F5IiwiZXhwaXJhdGlvbiI6IjIwMjMtMTAtMTdUMTg6Mzc6MTkuNzkwMDMyIn0.lqqJBTvzoO1JhK0z8KBH_lw1eZA65DnIvu4VaaVv7yI",
	"expiration": 3600
}

Request

Header
accept
string
required
Defines the expected response format. It must be set to application/json.
Body
The request body must include the client’s authentication credentials, following the OAuth2 standard:
client_id
string
required
The client ID provided by mobway for your application.
client_secret
string
required
The client secret provided by mobway for your application. It must be kept confidential.
The client_id and client_secret are unique per company/application and must not be shared!

Response

token
string
The token to be used as the Authentication header in other routes.
expiration
number
The token expiration time in seconds. By default, it is set to expire in 1 hour (3600 seconds).
curl --request POST \
  --url https://api.mobway.cloud/token \
  --header 'accept: application/json' \
  --data-urlencode 'client_id=<client-id>' \
  --data-urlencode 'client_secret=<client-secret>'
{
	"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb21wYW55IjoibW9id2F5IiwiZXhwaXJhdGlvbiI6IjIwMjMtMTAtMTdUMTg6Mzc6MTkuNzkwMDMyIn0.lqqJBTvzoO1JhK0z8KBH_lw1eZA65DnIvu4VaaVv7yI",
	"expiration": 3600
}