Skip to main content
Skip table of contents

Get and delete API token

Gets API token existing for a current account and deletes it.

Step 1 - Sign in

Sign user in.

Endpoint

CODE
POST /login

Request

JSON
POST /login

Content-Type: application/json

{
  "name": "mary.griffin@circularo.com",
  "password": "#32Password1!",
  "tenant": "default"
}

Response

Note following properties in response object:

  • token - In response object at position token.

    • It may have value of DacJFbBMilhd06aSP02ir9iItPXBsePprpdSfy6CFxBxhBMVdvuMFu5oGhZZLSJA.

Step 2 - Get API tokens

Get all API tokens existing for a current account.

Endpoint

CODE
GET /api/key

Request

JSON
GET /api/key?token=DacJFbBMilhd06aSP02ir9iItPXBsePprpdSfy6CFxBxhBMVdvuMFu5oGhZZLSJA

Response

Note following properties in response object:

  • apiToken - In response object at position results[0].id.

    • It may have value of GxTVBD8vDAMj6g9ah1cM2Wjty14M8yI1xkqCQzpR1KRxd25sdoAGlpljNAZbgMKY.

Returned array contains all existing API tokens for current account.

Step 3 - Delete API token

Deletes given API token.

Endpoint

CODE
DELETE /api/key/:token

Request

JSON
DELETE /api/key/GxTVBD8vDAMj6g9ah1cM2Wjty14M8yI1xkqCQzpR1KRxd25sdoAGlpljNAZbgMKY

Step 4 - Sign out (Optional)

Sign user out.

Endpoint

CODE
GET /logout

Request

JSON
GET /logout?token=DacJFbBMilhd06aSP02ir9iItPXBsePprpdSfy6CFxBxhBMVdvuMFu5oGhZZLSJA

The API token is now deleted and can't be used anymore.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.