POST
/
auth
/
token
Sign in
curl --request POST \
  --url https://api.mkinf.io/v0.1/auth/token \
  --header 'Content-Type: application/json' \
  --data '{
  "grant_type": "password",
  "email": "example@mkinf.io",
  "password": "test1234"
}'
{
  "access_token": "eyJhbG...",
  "refresh_token": "xdclrV...",
  "expires_in": 3600,
  "token_type": "bearer"
}
Authenticate with the API using email/password or refresh token. Returns an access token that can be used for subsequent requests.

Authentication Methods

  • Password Grant: Provide email and password
  • Refresh Token Grant: Use a refresh token to get a new access token
The response includes:
  • Access token
  • Refresh token
  • Token expiration time
  • Token type (bearer)

Body

application/json
grant_type
enum<string>
required

Grant type

Available options:
password,
refresh_token
email
string

Email

password
string

Password

refresh_token
string

Refresh token

Response

200 - application/json
access_token
string
required
refresh_token
string
required
expires_in
integer
required
token_type
string
required