• Document Up to Date

Get Access Token

Get the information for a specific access token.

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/:id
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/b4d44030-d0af-11e3-9c1a-0800200c9a66?accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d

Response

Status 200 OK

 1{
 2  "application": "crafterengine",
 3  "master": false,
 4  "tenantPermissions": [
 5    {
 6      "allowedActions": [
 7        "MANAGE_TICKETS",
 8        "READ_TENANT",
 9        "MANAGE_PROFILES"
10      ],
11      "tenant": "*"
12    }
13  ],
14  "expiresOn": 1704067200000,
15  "id": "b4d44030-d0af-11e3-9c1a-0800200c9a66"
16}

Responses

Status
Location
Response Body
200

See example above.

403




{"errorCode":"ACTION_DENIED", "message":"Current
subject does not have permission to execute action
\"READ_TOKEN\" on e8f5170c-877b-416f-b70f-4b09772f8e2d"}
500

{ "message" : "Internal server error" }