Obtain Authentication Token
POST /v2/auth/token
This endpoint allows obtaining an Access Token required to authorize all subsequent requests to the QR MIA API.
Request parameters (body)
Parameter
Type
Required
Description
clientId
string (guid)
Yes
Client code provided by maib
clientSecret
string (guid)
Yes
The client’s secret key, provided by maib
Example request (body)
Response parameters
Field
Type
Description
result.accessToken
string
The access token to be used in the Authorization header
result.expiresIn
integer
The token's lifespan, in seconds
result.tokenType
string
The token type (Bearer)
ok
boolean
true
if the request was successfully processed
errors
array
List of errors, if ok = false
Example response
Using the Access Token After obtaining the token, it must be included in the header of every request to the QR MIA API in the form: Example usage (curl)
Last updated