Choose the credential for your connection
ChatGPT and Claude handle their OAuth tokens after you approve access. Generate a new connect code for each authorization attempt. You do not need to create a Client ID or Client Secret. See the directory quickstart or manual client setup.
One token per header-based app
Mint a separate token for each header-based integration, such as Claude Code or your team’s automation. Revoking one does not break the others.
Shop-scoped
A single-store token or OAuth connection can access only the store it was issued for.
OAuth access tokens expire
Connector OAuth access tokens expire automatically and are refreshed by the connector. API tokens remain valid until you revoke them.
Revocable API tokens
In the Integrations Hub, use Integrations → MCP → Claude → Claude Code → Manage access tokens. In legacy Settings, use Settings → MCP & API Access and the Access tokens card. Revoke the token. The next request using it returns 401.
Agency connection controls
An agency connection can access only the stores you authorized. The actions available for each store depend on the merchant’s approval, your store assignment and role, and the connection’s access level for that store. Agency connections can read aggregate test reports. Raw order exports are unavailable through agency connections. Autopilot access is limited to saved recommendations. A merchant can revoke agency access from Store Setup → Agency Access, and a workspace Admin can remove a store from Client stores. Both actions end agency access to that store. To disconnect an entire agency connection, use Revoke in MCP connections. See Change or revoke access.Treat credentials like passwords
A token carries the access you gave it when you created it. A read and write token can do anything you can do through MCP — create tests, change rates, or end tests. A read only token can list and read tests and query their results, and nothing else. Tokens created before scopes existed (they start withabc_) have read and write access. Keep tokens and one-time connect codes private.
What protects you by default
Even if a token leaks, several layers limit blast radius: 1. Per-shop feature flag. MCP is opt-in per shop. If your shop has the flag off, even a valid token cannot do anything. 2. Rate limit. 200 requests per minute per token, server-enforced. A leaked token cannot be used to hammer the API or run an unbounded loop. 3. Token kill switch. In the Integrations Hub, use Integrations → MCP → Claude → Claude Code → Manage access tokens. In legacy Settings, use Settings → MCP & API Access and the Access tokens card. Revoke the header-based API token. Effective within one request. 4. Resource overlap protection. Even with a leaked token, an attacker cannot launch a price test on a product that already has an active price test running. The same protection applies to shipping zones, themes, templates, and redirect URLs. 5. Backend audit trail. Every API call is logged with the token ID, timestamp, and outcome. Contact support if you need to investigate suspicious activity.Auditing token usage
Today, the in-app audit view is read-only and shows:- Token name and creation time
- Last successful use timestamp
- Whether the token is active or revoked
When to rotate
Rotate (revoke + mint a new token) when:- A team member leaves
- You change laptops
- You suspect leakage (committed to git by accident, pasted in a public chat, or a lost device)
- Quarterly as part of a routine audit
What’s NOT covered yet
These are on the roadmap:- OAuth for every client. ChatGPT and Claude desktop / web can connect through their directory flows. Other clients may still require a manually pasted token.
- Scopes finer than read and write. You choose read only or read and write when you create a token. Narrower scopes, such as a token that can read one test, are not available yet.
- Per-IP allowlist. Lock a token to specific IP ranges (for example, your office) for extra defense.
Reporting a suspected leak
If you think a token has been compromised:- Revoke it immediately. For an agency connection, use MCP connections → Revoke. For an API token, use Integrations → MCP → Claude → Claude Code → Manage access tokens or the Access tokens card in legacy Settings → MCP & API Access.
- Check the audit timestamps — was the token used recently from somewhere unexpected?
- Email [email protected] with the token’s name and approximate compromise window. We’ll pull server-side logs and confirm whether anything unusual happened.