https://docs.orq.ai/mcp without authentication. The steps below apply to agents calling the Orq.ai API or the workspace MCP server at https://my.orq.ai.
Discover
- Capability catalog:
https://docs.orq.ai/.well-known/ai-catalog.json - OpenAPI specification:
https://docs.orq.ai/openapi.json, listing operations and their authentication requirements - API resource metadata:
https://my.orq.ai/.well-known/oauth-protected-resource - MCP resource metadata:
https://my.orq.ai/.well-known/oauth-protected-resource/v2/mcp - Authorization server metadata:
https://my.orq.ai/.well-known/oauth-authorization-server/v2/auth/mcp - OAuth issuer:
https://my.orq.ai/v2/auth/mcp
Pick a method
- API key: for automation calling the API or the MCP server without a user present. A person provisions the key.
- OAuth: for MCP clients acting on behalf of a signed-in user. Supported grants are
authorization_codeandrefresh_token, with PKCES256required.
Register
For an API key:- Create an account at Sign up, or sign in to an existing workspace.
- Create a project-scoped API key. Use a service account key for production automation; creating one requires a workspace admin.
- Grant the permissions required by the agent and store the key securely.
https://my.orq.ai/v2/auth/mcp/register. Client registration does not create an Orq.ai user or workspace.
Claim
API keys need no claim step. For OAuth, send the user to the authorization endpoint from the authorization server metadata. The user completes the browser sign-in and workspace consent, and the client receives an authorization code at its redirect URI.Exchange
Exchange the authorization code, with the PKCE verifier, athttps://my.orq.ai/v2/auth/mcp/token. Use the refresh_token grant at the same endpoint to obtain a new access token.
Use the credential
Send the API key or access token in the request header:https://my.orq.ai/v2/mcp; see the workspace MCP guide for client setup.
Errors
- A request to
https://my.orq.ai/v2/mcpwithout credentials returns401with aWWW-Authenticateheader whoseresource_metadatapoints at the MCP resource metadata. - API requests with a missing, invalid, expired, or under-permissioned key return the codes in Authentication errors.
- The token, registration, and revocation endpoints return standard OAuth error codes such as
invalid_request,invalid_client,invalid_grant, andunsupported_grant_type.
Revocation
Revoke OAuth tokens athttps://my.orq.ai/v2/auth/mcp/revoke (RFC 7009). Manage, revoke, or replace API keys through Settings > API Keys; see Secrets management for rotation instructions.