Authentication

You'll need to authenticate your requests to access any of the endpoints in the Embed Notion Pages API. In this guide, we'll look at how authentication works. Embed Notion Pages uses API keys to authenticate requests. You can view and manage your API keys in the Embed Notion Pages dashboard under API settings.

API keys

You can generate an API key from the Embed Notion Pages dashboard under API settings. The key is a secret string that you can use to authenticate your requests to the Embed Notion Pages API. You can pass the token in the Authorization header of your requests using the Bearer authentication scheme.

Example request with Bearer token

curl https://api.embednotionpages.com/v1/embeds \
  -H "Authorization: Bearer {token}"

Always keep your token safe and reset it if you suspect it has been compromised.