Skip to content

Obtain API token

Your API token authenticates both API versions. How you send it differs: v1 accepts X-API-Key or Authorization: Basic <token>, while v2 accepts only X-API-Key.

To obtain a token, send a POST request to:

https://webapi.inboxroad.com/api/token/

There is also an interactive version where you can try out requests.

Request

The payload is a JSON object:

{
"username": "you@example.com",
"password": "your-password"
}
Field nameRequiredDescription
usernameYesThe email address of your account.
passwordYesYour account password.

Response

The response is a JSON array with one entry per profile you own. Each entry contains the profile’s token (key) and its human-readable name. A token is auto-issued on first request if a profile doesn’t have one yet.

[
{
"key": "8f2c1a9b4d7e6f3a0b5c2d1e9f8a7b6c",
"profile_name": "Marketing"
},
{
"key": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d",
"profile_name": "Transactional"
}
]

Use the key value as your API token in subsequent requests.

Examples

Terminal window
curl -X POST 'https://webapi.inboxroad.com/api/token/' \
-H 'Content-Type: application/json' \
-d '{
"username": "you@example.com",
"password": "your-password"
}'