Connect a REST API that requires an API key header
Configure the header name required by your API provider, test a read-only request, and save the connection.
Use this setup when an external API requires a key in a named HTTP header, such as X-API-Key or X-Partner-Key. You need permission to manage the REST API Connector and a key issued by the API provider with read access to the endpoint.
Enter the key and header name
- In workspace settings, open REST API and select Add Connection.
- In Base URL, enter the provider’s HTTPS address for a protected endpoint that accepts
GET. Use an endpoint that requires the key so you can verify access during the test. - Under Authentication Type, choose API Key. Enter the key value in the API Key field.
- Under API Key Location, choose Header. In API Key Header Name, enter the exact name documented by the provider, such as
X-Partner-Key. Leaving the header name empty usesX-API-Key. Keep the key in API Key and put only the header name in API Key Header Name.
Test and save the connection
- Select Next to run the connection test. If access is rejected, confirm the header name, key validity, and the key’s permission to read the endpoint. Correct the settings and test again.
- Once the test succeeds, select Next, name the connection, and select Create Integration. Confirm it appears under that name in REST API settings.
If your provider requires Authorization: Bearer instead, follow Test and save a REST API connection with a bearer token.
Connect a REST API with Basic Auth
Connect a REST API that requires an API key in a query parameter
Ask Mainbase AI
Ask about any feature in Mainbase. Find a setting, get step-by-step guidance, or troubleshoot a problem.
Open the AI assistantCopy a question to get started
- How do I create a Kanban view?
- How do I invite a teammate?
- Why is a record missing from this view?