REST API OCST - Create an access token

URI

/customers/<customer-id>/tokens

Http Method

POST

Short Description

Create a new authentication token to access, e.g., the WebShop REST API as another user.

Query Parameters

none

Example Requests

/ContactCenter/-/customers/0BkKDgAN9pYAAAFFK9Qj6MxN/tokens

HTTP Status Codes

201 Created

401 If the user is not authenticated

Description

Create a new authentication token to access, e.g., the WebShop REST API as the user identified by <customer-id>.

Cartridge

app_sf_contactcenter_rest
Application

ContactCenter

Product Version

7.5.1

Product To Version

Status

final

JSON

Request data format

n/a

Request related java object

com.intershop.application.contactcenter.capi.rest.resource.TokenListResource

Request data example

n/a

Response data format

application/json

Response related java object

com.intershop.application.contactcenter.capi.rest.resource.TokenListResource

com.intershop.application.contactcenter.capi.rest.resourceobject.TokenRO

Response data example

{
    "type": "Token",
    "token": "demo@PLAIN:fMowskQet+8=|UmtZS0RnQU45cFFBQUFGRks5UWo2TXhOQDE0MDA1MDQyOTE5MjE=",
    "user": "Cyrillus Mayer"
}

XML

Request data format

n/a

Request related java object

com.intershop.application.contactcenter.capi.rest.resource.TokenListResource

Request data example

n/a

Response data format

text/xml

Response related java object

com.intershop.application.contactcenter.capi.rest.resource.TokenListResource

com.intershop.application.contactcenter.capi.rest.resourceobject.TokenRO

Response data example

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Token type="Token">
  <token>demo@PLAIN:kcM6Uh9BSmo=|UmtZS0RnQU45cFFBQUFGRks5UWo2TXhOQDE0MDA1MDk2MjY3OTQ=</token>
  <user>Cyrillus Mayer</user>
</Token>

Disclaimer

The information provided in the Knowledge Base may not be applicable to all systems and situations. Intershop Communications will not be liable to any party for any direct or indirect damages resulting from the use of the Customer Support section of the Intershop Corporate Web site, including, without limitation, any lost profits, business interruption, loss of programs or other data on your information handling system.

Customer Support
Knowledge Base
Product Resources
Support Tickets