OAuth
The first call from an MCP client opens an OAuth sign-in with your OnePatch account.API keys
OAuth needs a browser. For a script, CI job, or unattended agent, use an API key: an org admin creates one on the Integrations page under API keys. You get aclient_id / client_secret pair, and the secret is shown once. The pair doesn’t expire; your code exchanges it for a 1-hour access token and sends that as the MCP bearer:
Authorization header works the same way.
Each key is bound to one organization; its tokens can’t read another customer’s data. Rotate issues a new secret while the old one keeps working. Once the new secret is deployed, Retire old secret deletes the old one. Revoke deletes the key and every secret on it.