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
Scopes:
Request Body schema:
application/json
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
- Payload
- cURL
- Java
- C#
- Go
- Python
- PHP
- JavaScript
- NodeJs
- Ruby
Content type
application/json
Copy
Collapse all {- "username": "some-user",
- "password": "SuperSecretPass765%?",
- "unsafe": false
}
Response samples
- default
- 400
- 429
- 4XX
- 500
- 5XX
Content type
application/json
Copy
Collapse all {- "token": "d3c49f59-734a-4daf-be9a-6188b540358e"
}
Need assistance
Encountering issues
What's new? Check out
Unsure about a term? See