Create a token
For step-by-step instructions on how to use this endpoint to create a public integration, check out the Authorization guide. To walkthrough how to create tokens for Link Previews, refer to the Link Previews guide.
The redirect_uri is a required field in the request body for this endpoint if:
- the
redirect_uriquery parameter was set in the Authorization URL provided to users, or; - there are more than one
redirect_uris included in the integration’s settings under OAuth Domain & URIs.
In most cases, the redirect_uri field is required.
This field is not allowed in the request body if:
- there is one
redirect_uriincluded in the integration’s settings under OAuth Domain & URIs, and theredirect_uriquery parameter was not included in the Authorization URL.
Learn more in the public integration section of the Authorization Guide.
Note: Each Public API endpoint can return several possible error codes. To see a full description of each type of error code, see the Error codes section of the Status codes documentation.
Headers
Request
A constant string: “authorization_code”
The “redirect_uri” that was provided in the OAuth Domain & URI section of the integration’s Authorization settings. Do not include this field if a “redirect_uri” query param was not included in the Authorization URL provided to users. In most cases, this field is required.