Connect a REST API that requires an API key in a query parameter

Enter the exact query parameter name your provider expects, then test and save the connection using a protected read endpoint.

Use this setup when your API provider requires an API key in a named URL query parameter. You need permission to manage the REST API Connector and an API key issued by the provider with permission to read the endpoint.

Set the parameter name and key

  1. In workspace settings, open REST API and select Add Connection.
  2. In Base URL, enter the HTTPS address of a protected endpoint that accepts GET. Leave the API key out of this URL.
  3. In Authentication Type, select API Key. Enter the key value in API Key, then choose Query Parameter in API Key Location.
  4. In API Key Header Name, enter just the name of the URL parameter, for example access_key. With Query Parameter selected, Mainbase uses this field as the query parameter name.

Test and save

Select Next to test the connection. If the endpoint reports that the key is missing or invalid, check the parameter’s spelling and case, confirm the location is Query Parameter, and verify that the key is still valid and has access to that endpoint.

Once the test succeeds, select Next, name the connection, then select Create Integration. Confirm that the connection appears under that name in REST API settings.

Connect a REST API that requires an API key header

Ask Mainbase AI

Ask about any feature in Mainbase. Find a setting, get step-by-step guidance, or troubleshoot a problem.

Open the AI assistant

Copy 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?