docs

List Token Detail

1.0.0
OpenAPI 3.0.1

This is the specification of Authentication API. For more information about how to interact with the Authentication API, you can read the respective developer guide.

Getting Started

This API must be only used by backend services

Creating an API Client

First you will need to create a new API client using the SCAYLE Panel to obtain your client_id and client_secret. Make sure to store those credentials safely in your backend.

Authenticating a User

There are three different options on how to authenticate a user:

  1. Register a new user
  2. Login an existing user
  3. Login as a guest customer without a password

All of those endpoints will require you to provide the client_id and client_secret as a Basic Auth header.

Credentials client_id and client_secret don't have any expiration date. After successfully authenticating a user, you will get an access token and a refresh token. Access tokens are valid for 30 days and Refresh Tokens are valid for 60 days.

Validating a token

You will need to call the validation endpoint to check if an access token is still valid.

Refreshing a token

Refreshing a token is done by using the POST token endpoint by using the refresh_token OAuth grant.

You should consider to check the expiration date of the JWT to trigger a refresh early enough.

Server:https://{tenant-space}.auth.scayle.cloud
Client Libraries

Bearer Auth endpoints

​

Endpoints which use the AccessToken as Bearer Auth

Bearer Auth endpoints Operations

List Token Detail

​

This endpoint requires a valid AccessToken in the header

Responses

  • application/json
  • Not authorized.

Request Example for get/v1/oauth/token
curl https://TENANT_SPACE.auth.scayle.cloud/v1/oauth/token \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "id": "0f832a44b33fb0565942c730f0d040b696186b37691c95e05f0551429fa532ded0d803320217b455",
  "ip": "172.18.0.1",
  "user_agent": "PostmanRuntime/7.33.0",
  "created_at": "2023-11-22T09:26:40.000000Z",
  "updated_at": "2023-11-22T09:26:40.000000Z",
  "expires_at": "2023-11-22T10:26:26.000000Z",
  "external_token": {
    "idp_access_token": "eyJraWQiOiJpWk9tLUNxN0FXWmtQemdtWW5WT0o5WE1KT0xUR3E2ZkhNaWtoaEZUaGpjIiwiYWxnIjoiUlMyNTYifQ.eyJ2ZXIiOjEsImp0aSI6IkFULm92T096ZU9wQlp6TWdnV3VDZVhzaEhIYjJnc0lqeURDV3BtYW5HSWtUTTAub2FyMWgycGVlYVhyRXdXZEU1ZDciLCJpc3MiOiJodHRwczovL2Rldi0xMzAzMjU0OC5va3RhLmNvbSIsImF1ZCI6Imh0dHBzOi8vZGV2LTEzMDMyNTQ4Lm9rdGEuY29tIiwic3ViIjoibHVrYXMucnV6aWNrYSt0ZXN0QHNjYXlsZS5jb20iLCJpYXQiOjE3MDA2NDUxODUsImV4cCI6MTcwMDY0ODc4NSwiY2lkIjoiMG9hY3F2djZ5Y2JmRHVrY2w1ZDciLCJ1aWQiOiIwMHVjd3g3bGpsTHhIMkdrazVkNyIsInNjcCI6WyJvcGVuaWQiLCJwcm9maWxlIiwiZW1haWwiLCJvZmZsaW5lX2FjY2VzcyJdLCJhdXRoX3RpbWUiOjE3MDA2NDUxODJ9.pE6nYtI29Klih97g_VOZ8Km_3LPdA8dqD-EF34wDASm6S5m8m9huFKIpa6jBm7yymkxHhIUdWdOhD2NO12s6sxP0F7fCr-GmNf8uY3pZw8zSSa8i8JwtgoOWq2jHCdjgHabrtLM0r6NfO4fxDIVVaex_KkW1KEIa3QwArp-iUXXOS8xj0Y7veh6nfWNCQ-FHSCu4bkY6GPMBDF1GqyOp5nDAwxnnCs1jRah8kIwZl_BBoW_ctBRi1sKBwXPsCWde-wf5BcpjpZRMOBcAsGIW1GMbnIFEe8itAnNOycZ3eatw1XGzRvimLpV-UTG4Ggrw0bhuDdxSWET_jJeTJ5AX9w",
    "oauth_access_token_id": "0f832a44b33fb0565942c730f0d040b696186b37691c95e05f0551429fa532ded0d803320217b455",
    "idp_key": "okta",
    "created_at": "2023-11-22T09:26:26.000000Z",
    "updated_at": "2023-11-22T09:26:40.000000Z",
    "expires_at": "2023-11-22T10:26:26.000000Z"
  }
}

Last updated: November 27, 2026