Your API key works like a password: it lets your AI agent or your software use APIs on your account, and every call is billed to you. One key works for every API on Zyla API Hub, the Zyla MCP server and the Listings API.

If you use an AI agent you rarely touch it: the setup line in Connect AI agents (MCP) already includes it.

Get your key

  1. Sign up or log in.
  2. Open Connect AI agents (MCP). Your key is shown in Your API Access Key, with a Copy button. All your keys are also in API keys, in the account menu.

Use it in your code

Developers send it in the Authorization header of every request:

Authorization: Bearer YOUR_API_KEY

Create more keys

Open API keys from the account menu (/api_keys) to:

  • create additional keys with a name, for example one per project or environment;
  • limit a key to specific APIs, so a leaked key cannot be used against the rest of your subscriptions;
  • limit a key to IP addresses or CIDR ranges, so a shared key cannot be used from outside your network;
  • revoke a key at any time. Requests made with a revoked key get 401.

A key limited to some APIs gets 403 when it calls an API outside its list.

Keep it secret

  • Do not put the key in client-side code (browser JavaScript, mobile apps). Call Zyla from your backend.
  • Do not commit it to a repository. Load it from an environment variable or a secrets manager.
  • If a key leaks, revoke it in API keys and create a new one.

Restrict a key to IP addresses

On API keys (/api_keys) each key has an Allowed IPs field. The restriction is per key, not per account. Leave the list empty and the key works from any IP, as it does today.

Each entry is an IPv4 or IPv6 address, or a CIDR range such as 203.0.113.0/24 or 2001:db8::/32. A key accepts up to 50 entries. 0.0.0.0/0 and ::/0 are rejected, because they allow every address.

The page shows your current IP. If the list does not include it, the dashboard warns you before you rely on that key from this network.

A call from an IP outside the list is rejected with 403 and does not count as a request: it does not use quota, it does not trigger the soft limit, and the API behind the hub is not called.

{"success": false, "error": "ip_not_allowed", "message": "This API key can't be used from IP 203.0.113.10. Add it in your dashboard under API Keys."}

Add that IP under API keys and retry. Blocked attempts are listed on the same page, with the key, the IP and the time.

The Test endpoint button on an API page uses your login session, not the key, so an IP list does not block it.

Calls made through the Zyla MCP server leave Zyla's servers. When the key has an IP list, the MCP server sends your client's IP and the hub checks that. If the client IP is not available, the call is rejected: a key with an IP list cannot be used from the MCP.