Authentication
To access our services, you need to be both authenticated and authorized. The first step is to generate an access token. This token is essential for secure interaction with our API and ensures that only authorized users can access the services.
Credentials for Token Generation
To create your access token, you will need the following credentials, which were provided to you via email:
Key: A unique identifier for your application.
Username: Your assigned username.
Password: The corresponding password for your username.
How to Authenticate
Send Your Key as a Header: Include your key in the request header under the field Authorization-Key.
Use Basic Authorization for Username and Password: Combine your username and password into a Basic Authorization header. This involves encoding the username:password pair using Base64.
POST Create JWT token
Creates a new JWT session token
Enter your username and password
Your credential's unique identifier key
Your timezone
A new JWT session token has been created successfully
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5cDatetime when this token will expired
946702800000Your request metadata or your payload contains incorrect values
Unauthorized access due to invalid credentials, invalid or expired JWT token
Your key, your credentials or your JWT token are invalid, or you don't have access for this resource
An unexpected error has been raised durig this process
POST /business/v1/auth HTTP/1.1
Host: api.mio.id
Authorization: Basic username:password
x-api-key: text
Accept: */*
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
"expires_at": 946702800000
}Last updated