Skip to main content
Deprecation: The Endgame REST API, including the /threads endpoints, has been deprecated. API keys and machine-to-machine credentials are still supported for connecting to the Endgame MCP server.
Use API keys and machine-to-machine (M2M) credentials when an agent or automation needs to connect to the Endgame MCP server without a person signing in, such as a Claude Managed Agent, a scheduled job, or a CI pipeline. If a person is connecting their own AI assistant, they should sign in with their Endgame account instead — see Getting started. Credentials are passed as a Bearer token in the Authorization header on requests to the MCP server:
The Endgame MCP server URL is:
Two kinds of credentials are accepted. Both are provisioned from Endgame itself — you don’t need to configure anything in an external identity provider. Both are admin-only. Admins can see every API key and application running against Endgame, and how much each one is used, in the Automations view of the Console.

Create an API key

You must be an admin in your Endgame organization to create API keys. The number of service account keys your organization can create may be limited.
1

Open the API Keys settings page

Sign in to Endgame and open the API Keys settings page.
2

Click New API key

Give the key a descriptive name (e.g. deal-review-agent-prod) and pick a scope:
  • Act as me — Acts on your behalf with your permissions. Automatically revoked if you leave the organization.
  • Service account — Not tied to any user. Ideal for automation, integrations, and CI pipelines.
The full key is shown only once on creation — copy it immediately and store it in a secrets manager. The scope cannot be changed later.
New API key dialog with a name field and Act as me and Service account scope options

Creating an API key in Endgame

3

Use the key to connect to the MCP server

Add the key as a Bearer token wherever your agent or MCP client is configured, with the server URL set to https://app.endgame.io/api/v1/mcp. For a step-by-step example, see Connect via Claude Managed Agents.

Create a machine-to-machine application

Use an M2M application when you need short-lived tokens issued per request (typical for production server-to-server integrations) rather than a long-lived static key.
You must be an admin in your Endgame organization to create applications.
1

Open the Applications settings page

Sign in to Endgame and open the Applications settings page.
2

Create an application

Click New application, give it a descriptive name, and save. Endgame provisions a WorkOS OAuth client on your behalf and returns a client ID and client secret. The secret is shown only once on creation — copy it immediately into your secrets manager. You can rotate it later from the same page.
3

Exchange the credentials for an access token

Perform a standard OAuth client_credentials grant against WorkOS’s token endpoint:
The response contains an access_token (a JWT). Re-exchange the credentials whenever the token nears its expiration.
4

Use the token to connect to the MCP server

Pass the access token as a Bearer token on requests to https://app.endgame.io/api/v1/mcp.

Revoke credentials

API keys: revoke from the API Keys settings page — click Revoke next to the key’s row. Act as me keys are automatically revoked when the owning user leaves the organization. Service account keys persist until explicitly revoked. M2M applications: delete the application (or rotate its secret) from the Applications settings page. Deleting the application revokes all access tokens issued under it. Revocation is immediate in both cases; subsequent requests using a revoked credential fail with 401 UNAUTHORIZED.

Security guidance

  • Store credentials in a secrets manager. Never commit them to source control.
  • Use a separate credential per environment (dev, staging, prod) so rotation is scoped.
  • Give each one a descriptive name so revocation decisions are easy to audit.
  • Rotate on a regular cadence and whenever a team member with access leaves.
  • For shared or automated workflows, prefer Service account keys or M2M applications over Act as me keys, so access doesn’t depend on a single person staying in the organization.

Need help?

For access questions or help with authentication, contact support@endgame.io.