Site tokens grant access to the Webflow Data API for a specific site, making it possible to programmatically retrieve and manage your CMS data, handle form submissions, set up webhooks for event notifications, and more.
This approach is ideal for site owners looking to create personalized integrations tailored to their specific needs. If you’re building an internal tool, a site API token offers a quick and easy solution. However, for integrations intended for broader use, consider building a Webflow App that authenticates via OAuth.
Not familiar with integrations? Check out how Webflow Apps and Integrations can help you build powerful and engaging websites.
A site token is a unique identifier that provides access to a specific site’s information via the Webflow Data API. When you make a request to Webflow’s APIs, you need to provide a site token to authenticate. Similar to a password, a site token (also known as an “API key” or “access token”) identifies the entity making a request to an API, as well as actions that entity can perform through its scopes and permissions.
Using a site token, you can:
By leveraging site tokens, you can build custom integrations that cater to your specific needs, whether it’s automating content updates or syncing data across platforms.
Key Points to Remember:
Security: Treat your site token like a password. Store it securely and avoid sharing it publicly.
Permissions: Customize the scopes of your token to control which parts of your site it can access and what actions it can perform. Remember to ask only for the scopes you need.
To create a site token:
Limitations
Site tokens are created per site. If you’re looking to build an integration that works across multiple sites, consider creating a Webflow App. Site tokens do not grant access to:
Now that you have your site token, you can start making requests to the Webflow Data APIs. Here’s how to get started.
The simplest way to make a request is by using CURL. CURL is a command-line tool that allows you to transfer data to and from a server.
This command retrieves a list of sites associated with your Webflow account. Replace YOUR_API_TOKEN with the site token you generated.
Here’s an example of what a response from the Webflow API might look like:
Site tokens are valid until they are manually revoked or after 365 days of inactivity.
Yes, you can generate a new token at any time from the API access section in your site settings.
You will need to generate a new one and update any integrations using the old token.