Access Token

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

Resource

/<MyDomainURL>/<AppPrefix>/accessToken

Resource Example

https://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.

{
"orgId": "00DSB00000026pJ2AQ"
}

Response Body for POST

JSON Example

{
    "accessToken": "eyJraWQiOiIwM2ZiN......-UA",
    "expiresIn": 3600,
    "tokenType": "Bearer"
}