What an API key is and the problem it solves
A person signs in to SimilarIQ with Google, Microsoft or an email magic link. A script cannot do that. It needs a credential it can send with every request, without a browser and without a human. That credential is the API key: a string beginning with sk-live- that identifies your account to the service.
The design choice worth knowing is that there is one kind of key. The same sk-live- key works across the REST API, both SDKs, the command-line tool and the MCP server. You do not manage one credential for the API and another for agents, and there is no separate API plan behind the key.
A key ties software to your balance. Searches made with it draw on the same pay-as-you-go balance as searches made in the app, at the same price. That is why handling keys carefully matters: whoever holds a working key can spend your credits.
How it works: creation, display and revocation
Keys are created in the web app. When you create one, the full secret is shown once. Copy it at that moment and put it where it will live, usually a secrets manager or an environment variable. If you lose it, the fix is to create a new key and revoke the old one.
A key can be revoked at any time, and revocation takes effect right away. After that, requests carrying the key fail with status 401, the response for a bad or missing key. Revoking a key does not touch your balance, your search history or other keys.
Key management is also available over HTTP at /api/auth/api-keys, with POST to create, GET to list and DELETE to remove. Several details are not published and you should not assume them: how many keys an account can hold, whether keys can be named or scoped to particular endpoints, and whether keys expire on their own. Check the app and /docs for current behaviour.
- Prefix:
sk-live- - Created in the web app; full value shown once
- Works with the REST API, SDKs, CLI and MCP server
- Revocable at any time; a revoked key returns 401
- Sent as
X-API-Keyor as a bearer token
A worked example: one key, three surfaces
A RevOps engineer creates a key and stores it as SIMILARIQ_API_KEY in the team's secrets manager. A nightly Python job reads the variable, calls the SDK's balance method, and then searches the domains of accounts that closed that day. Suppose that is four searches a night on average, a hypothetical figure. Four searches cost $1.00.
The same engineer uses the CLI on a laptop. similariq login stores the key locally, and similariq search stripe.com --limit 100 --csv writes a list for a colleague. Later an internal agent is connected to the MCP server with the key in an X-API-Key header because its runtime only accepts a static header.
All three draw on one balance. Over a month of 20 working nights the job runs 80 searches, which is $20.00, plus whatever the laptop and the agent add. When a contractor who had the key leaves, the engineer revokes it, creates a new one and updates the secret. The balance and history are unaffected.
Creating and managing keys in the app
Sign in, open the API key section of the web app and create a key. Menu names and layout can change, so follow what the app shows. Copy the secret when it is displayed, because it is shown once. Paste it straight into its destination and not into a chat message, a ticket or a shared document.
You do not need to deposit anything to start. Signing up gives you 2 free searches with no credit card, which is enough to create a key and confirm that an integration works. After that the minimum deposit is $10 and the balance never expires.
Unlimited team members share one balance with no per-seat fee. The published facts do not describe how keys are divided among team members or which roles can create them, so agree a convention inside your team: who creates keys, where they are stored and who is responsible for revoking them.
Using a key with the API, SDKs, CLI and MCP server
On the REST API, send the key in a header: X-API-Key: sk-live-..., or Authorization: Bearer sk-live-... if your HTTP client prefers bearer tokens. A search is POST https://similariq.ai/api/v1/search with a body like {"domain":"stripe.com","limit":100}. A free way to test a new key is GET https://similariq.ai/api/v1/balance.
The CLI reads the key from similariq login or from the SIMILARIQ_API_KEY environment variable, which suits CI jobs and containers. The SDKs, similariq-sdk for Node and similariq for Python, take the same key; see SDKs and CLI for installation.
For the MCP server, key authentication is for clients that only take a static header. The generic configuration is {"mcpServers":{"similariq":{"type":"http","url":"https://similariq.ai/mcp","headers":{"X-API-Key":"sk-live-..."}}}}. Clients that support OAuth can skip the key entirely, as described under OAuth sign-in for assistants.
What it costs
Keys are not a line item. The price list has one thing on it, the search: $0.0025 per look-alike, 100 per search, $0.25 per search. API calls draw on the same balance as app searches and MCP tool calls at the same price. Creating, listing and revoking keys is not charged.
Many calls made with a key are free. The balance check, history, past results, My Companies, saved companies and share links do not spend credits. Only a search, at one credit, and a bulk upload, at one credit per domain, cost anything. A failed search returns 502 and the credit is refunded automatically.
Pitfalls to avoid
The first pitfall is putting a key where others can read it: a public repository, a front-end bundle, a screenshot in a support thread. A SimilarIQ key belongs on a server or in a local config, never in code that runs in a visitor's browser. If a key has been exposed, revoke it first and investigate second.
The second is sharing one key everywhere. If a laptop, a production job and an agent all use the same secret, revoking it breaks all three at once and you cannot tell which one made a call. Use separate keys per system where the app allows it, so that revocation is surgical.
The third is expecting the key to limit spend. A key identifies your account; it is not a budget. The rate limiter works per key and per IP to smooth bursts, but it is not a spending limit. Use the monthly cap and the other spend controls for that, and handle 401, 402 and 429 distinctly in code.
Pairing keys with other features
Keys pair naturally with the free balance check. A job that starts by calling the balance endpoint proves in one request that the key is valid, the network path works and there are credits to spend, before any paid call is made. Every search response then repeats creditsRemaining.
They also pair with the machine-readable API description at https://similariq.ai/openapi.json, which lets you generate a client or hand an agent the API's shape, and with bulk search for batch work. For people who would be better served by a browser sign-in than a secret, OAuth is the companion feature on the assistant side.
When an API key is not the right tool
If you are connecting a chat assistant that supports OAuth, use OAuth. You approve access on a SimilarIQ sign-in and consent screen, no secret is pasted into the assistant, and you can disconnect that assistant from your account page later. A key in a chat product's settings is a secret stored in one more place.
If you only use the web app, you do not need a key at all. And if you need dedicated throughput beyond the standard per-key and per-IP rate limiter, a second key is not the answer; email info@similariq.ai. Volume pricing, invoicing and an SLA are handled by quote through the form on /pricing.
Frequently asked questions
How do I get a SimilarIQ API key?
Sign in to the web app and create a key there. The full value, which starts with sk-live-, is shown once, so copy it into a secrets manager or environment variable straight away.
Is there a separate key or plan for the API or the MCP server?
No. One sk-live- key works across the REST API, the SDKs, the CLI and the MCP server. All of them draw on the same balance at the same price as the web app.
What happens if I lose my API key?
The key is shown once and the facts published by SimilarIQ do not describe a way to view it again. Create a new key, update your systems, and revoke the lost one.
How do I revoke a key?
Revoke it in the web app, or with DELETE on /api/auth/api-keys. Revocation takes effect right away, and requests using that key then receive a 401 response.
Which header does the API key go in?
Send X-API-Key: sk-live-..., or Authorization: Bearer sk-live-.... Both are accepted by the REST API. The MCP server accepts the X-API-Key header for clients that cannot use OAuth.
Do API keys cost anything?
No. Keys are free to create and revoke. You pay only for searches, at $0.25 each, and reads such as the balance check and history are free.
Can I use an API key from browser JavaScript?
You should not. Anyone who can read the page can read the key and spend your balance. Keep the key on a server and have the browser call your own backend.