POST
/
auth
/
token
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

Response

200 - application/json

The response is of type object.