post https://core-h.mkbank.com.br/api/auth
This endpoint is used for authenticating the API requests. It issues an access token that should be included in the headers of subsequent API calls for authorization.
Heads up!
The issued token will have a lifetime of 60 minutes. The partner must pay attention to the expires_in property to implement its cache and token renewal strategy. It is extremely important that the token is used throughout its lifetime, and that another one is issued only after the one that has already been generated has expired.
RESPONSE
- Token: The access token generated to authorize subsequent API calls. This token must be included in the request headers as "Authorization: Bearer {your_access_token}".
- expires_in: The lifespan of the token in seconds. In this example, the value is 3600 seconds, which corresponds to 1 hour. After this period, the token will expire, and a new token will need to be generated.