POST /authentication/token

Authenticate to obtain an access token + refresh token to use the API.

Body Required

Provide credentials to obtain access/refresh tokens

  • username string Required

    The username (email) of account

  • password string Required

    The password of the account

Responses

  • 200

    Successfully authenticated and obtained tokens

    Hide response attributes Show response attributes object
    • access string Required

      Access token to be included in bearer Authentication header in all requests

    • refresh string Required

      Refresh token to be used to request new Access token upon expiration

  • 400

    Invalid username/password supplied

POST /authentication/token
curl \
 -X POST https://cloud.sierraonetech.com/skyvision/integrations/v1/authentication/token \
 -H "Content-Type: application/json" \
 -d '{"username":"user@example.com","password":"pass123"}'
Request example
{
  "username": "user@example.com",
  "password": "pass123"
}
Request examples
{
  "username": "user@example.com",
  "password": "pass123"
}
Response examples (200)
{
  "access": "eyJhbGciOiJIUzI1...",
  "refresh": "eyJhbGciOiJIUzI1..."
}
Response examples (200)
{
  "access": "eyJhbGciOiJIUzI1...",
  "refresh": "eyJhbGciOiJIUzI1..."
}