Create session

This method allows you to create a session (login) which by default will expire after 60 minutes. If you want to create a new token before the session expires, you'll need to destroy it first.

Please log in to see full path URL. Learn why.
post
/auth/1/session
Request Body schema:
collapse all -
password
required
string

Secret password.

username
required
string

Unique username of the existing user who is performing login.

Responses

default

successful response

400

Bad Request

429

Too Many Requests

4XX

Error responses

500

Internal Server Error

5XX

Error responses

Request samples

Content type
Copy
Collapse all
{
  • "username": "some-user",
  • "password": "SuperSecretPass765%?",
  • "unsafe": false
}

Response samples

Content type
Copy
Collapse all
{
  • "token": "d3c49f59-734a-4daf-be9a-6188b540358e"
}

Encountering issues

Contact our support

What's new? Check out

Release Notes

Unsure about a term? See

Glossary

Research panel

Help shape the future of our products
Learn more
Service status

Copyright @ 2006-2025 Infobip ltd.