docs

Delete Token with ID

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

Delete Token with ID

​

This endpoint requires a valid Bearer access token in the Authorization header and will revoke the token with the given ID (which could be a different token). If a external identity provider was used for the target token, the corresponding IDP access token and IDP refresh token will be revoked as well. In case the identity provider does not support revoking tokens over API calls (because a frontend redirect is required) this step will be skipped and the IDP tokens will remain valid until they expire or are revoked from IDP side.

Path Parameters

  • The access token ID.

Headers

  • The shop ID.

Responses

  • Access and Refresh token revoked.

  • Not authorized.

  • Access token not found.

Request Example for delete/v1/oauth/tokens/{accessTokenId}
curl https://TENANT_SPACE.auth.scayle.cloud/v1/oauth/tokens/0100cc93812b9eb969e43643a2a63dd81a7c652d49745122d67acfcfee809c6527fccf5f88f6328a \
  --request DELETE \
  --header 'X-SHOP-ID: 105' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
No Body

Last updated: November 27, 2026