v1

latestOpenAPI 3.0.02026-07-14198572488.4 KB
Authentication

Authenticate user and generate JWT token

Use this route to request an API token that can be used for requests. Token expires in 7 days. Should you get a 401 back, from the API, request a new token.

post/v1/login

Request body

usernamestring required

Username to use for authentication

passwordstring required

Password to use for authentication

Example request

{
  "username": "user@rocket.net",
  "password": "Str0ngP@ssw0rd!58793897379-password"
}

Response

OK

tokenstring

JWT token to use for authenticated requests

Example response

{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}