• Document Up to Date

Get All Access Tokens

Get all existing access tokens.

Resource Information

This service uses the tomcat application on port 8080 by default. To see a list of default ports click here

The context for this API is /crafter-profile, please prefix the API URLs with this context.

HTTP Verb
GET
URL
/api/1/access_token/all
Response Formats
JSON

Parameters

Name
Type
Required
Description
accessTokenId

String


The access token ID of the application
making the call

Example

Request

GET .../api/1/access_token/all?accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d

Response

Status 200 OK

 1[
 2  {
 3    "application": "adminconsole",
 4    "master": true,
 5    "tenantPermissions": [
 6      {
 7        "allowedActions": [
 8          "*"
 9        ],
10        "tenant": "*"
11      }
12    ],
13    "expiresOn": 1704067200000,
14    "id": "e8f5170c-877b-416f-b70f-4b09772f8e2d"
15  },
16  {
17    "application": "crafterengine",
18    "master": false,
19    "tenantPermissions": [
20      {
21        "allowedActions": [
22          "MANAGE_TICKETS",
23          "READ_TENANT",
24          "MANAGE_PROFILES"
25        ],
26        "tenant": "*"
27      }
28    ],
29    "expiresOn": 1704067200000,
30    "id": "b4d44030-d0af-11e3-9c1a-0800200c9a66"
31  },
32  {
33    "application": "craftersocial",
34    "master": false,
35    "tenantPermissions": [
36      {
37        "allowedActions": [
38          "MANAGE_TICKETS",
39          "READ_TENANT",
40          "MANAGE_PROFILES"
41        ],
42        "tenant": "*"
43      }
44    ],
45    "expiresOn": 1704067200000,
46    "id": "2ba3ac10-c43e-11e3-9c1a-0800200c9a66"
47  }
48]

Responses

Status
Location
Response Body
200

See example above.
403









{ "errorCode": "ACTION_DENIED", "message": "Current
subject doesnt have permission to execute global
action \"READ_TOKEN\"" }
500

{ "message" : "Internal server error" }