API Keys & Scopes
A secret API key lets your own systems (a lead vendor, a landing page, Zapier, Make or a script) call the Panda IDX API for one account. Each key has full access or only the areas you choose, and it can expire.
Key Types
Secret API key
sk_live_…For servers. Sent as Authorization: Bearer sk_live_…. Has scopes, can expire and can be revoked.
Public website key
pk_…For websites. Read-only site data in the key query parameter. It is public and safe in page code. See Getting Started.
OAuth
MCPFor AI assistants and apps acting for a person, approved on a consent screen. See MCP Server.
Create a Key
Keys live in Workspace settings › API Keys. You need permission to manage integrations on the account (owners and administrators have it).
sk_live_and is shown only once. Store it in your integration's secrets.Scopes
A restricted key has one level per area: No access, Read or Read & write. As scopes they are <area>:read and <area>:write, and write includes read. The area names are the same ones the MCP server uses, so one vocabulary covers the REST API and AI tools. More areas appear here as they get endpoints.
| Area | Read | Read & write | Endpoints |
|---|---|---|---|
| Contacts & leads | contacts:read | contacts:write |
|
| Listings | listings:read | — | |
| Saved searches | saved_searches:read | saved_searches:write |
Full Access
Turn off Restrict access to give a key full access (scope *). It reaches every area, including areas added later. Areas that send email or publish your website are never included by full access: a key only gets them when you pick them. Prefer restricted keys for anything you hand to a third party.
Expiry and Revoking
A key never expires unless you choose 30 days, 90 days or 1 year when you create it. An expired key answers 401. Revoke a key from the API Keys list at any time; it stops working on its next request. To change a key's access, create a new key, move your integration to it and revoke the old one. An account can have up to 20 active keys.
Subscription
The API and the MCP servers work only while the account has an active Panda IDX subscription (active, in trial, or with a payment being retried). Without one, every request answers 403 with code subscription_inactive, keys included, and they work again as soon as the subscription is renewed in Workspace settings › Subscriptions. Keys are never deleted when a subscription ends.
{"error": {"code": "subscription_inactive","message": "This Panda IDX account has no active subscription. The Panda IDX API and MCP servers work only while the subscription is active: renew it in Panda › Workspace settings › Subscriptions.","details": { "docs": "https://pandaidx.com/docs/api/authentication#subscription" }}}
Test Your Key
GET /v1/me returns the key's name, scopes and expiry, the account it belongs to and the account's public website key (account.publicKey) for the Site API. Any valid key can call it.
curl --request GET \--url "https://api.pandaidx.com/v1/me" \--header "Authorization: Bearer YOUR_API_KEY"
Errors
Errors are { error: { code, message, details? } }. 401 means the key is missing, invalid, revoked or expired. 403 with subscription_inactive means the account has no active subscription (see above). 422 means a field or parameter is wrong or unknown, and details names it. 429 means more than 120 requests in a minute for this key: wait for Retry-After. A key without the scope an endpoint needs gets 403 with code insufficient_scope; details.required names the missing scope and details.granted lists what the key has. The same answer carries WWW-Authenticate: Bearer error="insufficient_scope".
{"error": {"code": "insufficient_scope","message": "This API key does not have the \"contacts:write\" scope. Create a key with that access in Panda › Workspace settings › API Keys.","details": {"required": "contacts:write","granted": "contacts:read","docs": "https://pandaidx.com/docs/api/authentication"}}}
Keep Keys Safe
- Never put a secret key in a website, a browser extension or a mobile app. Use the public website key there.
- Give each integration its own key, so you can revoke one without breaking the others.
- Give each key only the areas it needs, and an expiry when the integration is temporary.
- If a key leaks, revoke it right away and create a new one.