POST /api/rest/auth

Generates a JWT access token using your Rayo API key. You must send the API key in the x-api-key request header.

Headers

  • x-api-key string Required

    Rayo API key generated in Ava Platform

Responses

  • 200 application/json

    JWT generated successfully

    Hide response attribute Show response attribute object
    • AuthWithAPIkey object Required

      Additional properties are NOT allowed.

      Hide AuthWithAPIkey attribute Show AuthWithAPIkey attribute object
      • accessToken string Required

        JWT access token (Bearer token)

  • 500 application/json

    Internal server error

    Hide response attributes Show response attributes object
    • error string Required
    • code string Required
    • path string
  • default application/json

    Unexpected error

    Hide response attributes Show response attributes object
    • error string Required
    • code string Required
    • path string
POST /api/rest/auth
curl \
 --request POST 'https://cerebro.techrayo.com/api/rest/auth' \
 --header "x-api-key: string"
Response examples (200)
{
  "AuthWithAPIkey": {
    "accessToken": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9..."
  }
}
Response examples (500)
{
  "code": "unexpected",
  "path": "$",
  "error": "internal error"
}
Response examples (default)
{
  "error": "internal error",
  "code": "unexpected",
  "path": "$"
}