Create a token
Creates an access token that a third-party service can use to authenticate with Notion.
📘
For step-by-step instructions on how to use this endpoint to create a public integration, check out theAuthorization guide. To walkthrough how to create tokens for Link Previews, refer to theLink Previews guide.
🚧
Redirect URI requirements for public integrations
The
redirect_uriis arequired field in the request body for this endpoint if:
- the
redirect_uriquery parameter was set in theAuthorization URL provided to users,or;- there are more than one
redirect_uris included in theintegration’s settings underOAuth Domain & URIs.In most cases, the
redirect_urifield is required.This field is not allowed in the request body if:
- there is one
redirect_uriincluded in theintegration’s settings underOAuth Domain & URIs,and theredirect_uriquery parameter was not included in the Authorization URL.Learn more in the public integration section of theAuthorization Guide.
Note: Each Public API endpoint can return several possible error codes. To see a full description of each type of error code, see theError codes section of the Status codes documentation.