Access Token

Create an access token to enable survey invitation creation, and gather feedback from unauthenticated participants.

Resource 

1/<MyDomainURL>/<AppPrefix>/accessToken

Resource Example 

1https://yourInstance.salesforce-scrt.com​/surveys/v1/accessToken

HTTP Methods 

POST

Request Body for POST 

Pass the 18 digit orgId in the request. Make a Query() request on the Organization object to fetch the organization ID. See Execute a SOQL Query.

1{
2"orgId": "00DSB00000026pJ2AQ"
3}

Response Body for POST 

JSON Example 

1{
2    "accessToken": "eyJraWQiOiIwM2ZiN......-UA",
3    "expiresIn": 3600,
4    "tokenType": "Bearer"
5}