Secure API authorization
Send API keys and tokens as request headers that are added on the server and never shipped to the visitor's browser.
Authorization for a REST request is done with request headers, for example Authorization: Bearer <token> or an API key header. Headers are stored with the request and added when the server sends it. Because the request runs server side, the visitor only receives the resulting data, not the credentials. Header values can also use variables, for example to pass a value that depends on the page.
How it works
- Headers are a key/value list on each request (Request Headers). Empty keys or values are dropped.
- Default header Content-Type: application/json is added only if no header is set.
- The same header mechanism is used by the native Airtable and Strapi integrations (Authorization: Bearer <key>).
- There is no built-in OAuth flow for generic REST requests; tokens must be static or provided via properties/variables.
When to use it
- Call a private API with a Bearer token
- Use an API key header for a paid data provider
Limitations
- No OAuth 2.0 flow or token refresh for generic REST requests
- Header values are shown in plain text in the request editor and in the cURL preview for site admins
Availability
- Works in Designer.
- Included in every plan.
How to use it.
- Open a request in REST API
- Under Request Headers click Add Header
- Enter the header name (for example Authorization) and the value (for example Bearer <token>)
- Run API to verify
Questions.
Will visitors see my API key?
Is OAuth supported?
Related features.
Browse other features
Designer
Bring your ideas to life with our visual website builder. Drag and drop with ease, or dive into coding when needed.
→AI Studio
Describe it and AI builds it. Every change lands in the same project you can open in the Designer.
→MCP
Connect Claude Code, Cursor or any MCP client and build whole sites with your own agent.
→CMS
Create, organize, and manage your dynamic content with the maximum freedom and flexibility of our visual CMS.
→SEO
Divhunt delivers ultra-fast & structured sites that are good for ranking by default, while offering complete control for customization.
→REST API
Easily link to any REST API endpoint with instant preview and expand your site’s functionality smoother than ever before.
→Plugins
Divhunt offers an open platform for creating plugins to upgrade features, add new capabilities, and simplify building better sites.
→Localization
Localize everything from static pages and CMS content to URLs and metadata, in up to 15 languages with no add-on.
→Interactions
Visually create animations and interactions with a simple, intuitive timeline. Build smooth, engaging experiences without code.
→Custom Files
Manage JS and CSS files with a structure developers love, combining folders and clean organization.
→Memberships
Create plans, decide who sees what and connect it all to your CMS. Build courses, communities or client portals.
→