API Keys

API keys authenticate your code, the hosted MCP server, and integrations like Zapier and the GitHub Action against the Markup AI API. Manage them in the console under API Keys.

Generate a key

1

Open API Keys

Go to API Keys and select Generate Key.

2

Name and create it

Give the key a descriptive name — something that identifies where it’s used, like ci-pipeline or zapier-prod — then select Generate Key.

Generate New API Key dialog with a key name field
Name a key for the integration that will use it.
3

Copy it now

The full key is shown only once, at creation. Copy it and store it somewhere secure (a secrets manager or your CI’s encrypted variables). If you lose it, delete the key and generate a new one.

Use a key

Send the key as a bearer token on each request:

cURL
curl https://api.markup.ai/v1/style/checks \
-H "Authorization: Bearer $MARKUP_AI_API_KEY"

The same key works for the hosted MCP server. For full request and response details, see the API Reference and the Quickstart.

Manage and rotate keys

The API Keys table lists every key with a masked preview, so you can tell them apart without exposing the secret. From there you can rename or delete a key. To rotate a key with no downtime: generate a new one, update your integration to use it, confirm it works, then delete the old key.

A key carries the permissions of the organization it belongs to. Treat it like a password — never commit it to source control or paste it into client-side code.