Skip to content

Get API token

POST
/authenticate
curl --request POST \
--url https://testomato.com/api/authenticate \
--header 'Content-Type: application/json' \
--data '{ "email": "user@email.com", "password": "your-password", "exp": "+1 hour" }'

Get a login token with your email and password. It expires after 1 hour by default. For long-lived access, create a personal access token instead.

Media typeapplication/json
object
email

User email

string
password

User password

string
exp

Token lifetime as a relative time, for example +8 hours. Longer values are capped at 1 day.

string
default: +1 hour
Example
{
"email": "user@email.com",
"password": "your-password",
"exp": "+1 hour"
}

Successfully generated access token

Media typetext/plain
string
Example
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c