Endpoint

/v1/session/login

POST

Authenticate the user. To authenticate subsequent requests, provide the bearer token from the response in the Authorization header.

Parameters

This resource has no parameters.

Request

Schema

{
  "description": "login",
  "type": "object",
  "properties": {
    "username": {
      "description": "The username to authenticate with",
      "type": "string"
    },
    "password": {
      "description": "The password to authenticate with",
      "type": "string",
      "format": "password"
    }
  }
}

Response

Codes

Code Description
200 Return value on success

Schema

{
  "description": "credentials",
  "type": "object",
  "properties": {
    "bearer_token": {
      "description": "bearer_token",
      "type": "string"
    }
  }
}