# Access Token

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

## Resource

```nolang
/<MyDomainURL>/<AppPrefix>/accessToken
```

## Resource Example

```nolang
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](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_query.htm).

```nolang
{
"orgId": "00DSB00000026pJ2AQ"
}
```

## Response Body for POST

### JSON Example

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