UsageMax Delegated OAuth API
The Delegated OAuth API from UsageMax — 2 operation(s) for delegated oauth.
The Delegated OAuth API from UsageMax — 2 operation(s) for delegated oauth.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/usagemax-com:usagemax-com-delegated-oauth-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: UsageMax Delegated OAuth API
version: 1.0.0
description: API version 1. Public UsageMax read APIs and the authenticated, content-free CLI ingestion contract. UsageMax never accepts prompts, completions, source code, file paths, tool arguments, or secrets. Version 1 is supported; deprecated endpoints return Deprecation and Sunset headers.
contact:
name: UsageMax
url: https://usagemax.com/contact
email: hello@usagemax.com
license:
name: MIT
url: https://github.com/SYMBaiEX/usagemax/blob/main/LICENSE
servers:
- url: https://usagemax.com
description: Production API
tags:
- name: Delegated OAuth
paths:
/api/v1/agent/identity:
get:
tags:
- Delegated OAuth
operationId: getDelegatedAgentIdentity
description: Validate a WorkOS Connect access token and return a bounded delegated principal projection. No token is returned and no UsageMax data is mutated.
security:
- workosBearer: []
responses:
'200':
description: Validated WorkOS delegated principal.
content:
application/json:
schema:
type: object
required:
- ok
- credentialType
- principal
- tokenReturned
properties:
ok:
type: boolean
credentialType:
const: workos_connect_delegated
issuer:
type:
- string
- 'null'
principal:
type: object
properties:
subject:
type:
- string
- 'null'
actorSubject:
type:
- string
- 'null'
organizationId:
type:
- string
- 'null'
clientId:
type:
- string
- 'null'
scopes:
type: array
items:
type: string
expiresAt:
type:
- integer
- 'null'
readOnly:
const: true
tokenReturned:
const: false
'401':
description: unauthorized
content:
application/json:
schema:
type: object
required:
- error
- message
- hint
- documentation
properties:
error:
type: string
description: Stable machine-readable error code.
example: unauthorized
message:
type: string
description: Human-readable explanation.
example: A valid UsageMax collector token is required.
hint:
type: string
description: Actionable recovery guidance.
example: Link this computer and send the bearer token in Authorization.
documentation:
type: string
format: uri
description: Canonical documentation reference for this error contract.
example: https://usagemax.com/docs
summary: Get delegated agent identity
x-summary-source: derived
/api/v1/agent/workspace:
get:
tags:
- Delegated OAuth
operationId: getDelegatedWorkspaceOverview
description: Return the authenticated user's bounded workspace overview through a WorkOS Connect bearer. Requires the usage:read scope and never returns raw telemetry or credentials.
security:
- workosBearer: []
responses:
'200':
description: Bounded private workspace overview.
content:
application/json:
schema:
type: object
required:
- ok
- credentialType
- principal
- workspace
properties:
ok:
type: boolean
credentialType:
const: workos_connect_delegated
principal:
type: object
workspace:
type: object
readOnly:
const: true
'401':
description: unauthorized
content:
application/json:
schema:
type: object
required:
- error
- message
- hint
- documentation
properties:
error:
type: string
description: Stable machine-readable error code.
example: unauthorized
message:
type: string
description: Human-readable explanation.
example: A valid UsageMax collector token is required.
hint:
type: string
description: Actionable recovery guidance.
example: Link this computer and send the bearer token in Authorization.
documentation:
type: string
format: uri
description: Canonical documentation reference for this error contract.
example: https://usagemax.com/docs
'403':
description: forbidden
content:
application/json:
schema:
type: object
required:
- error
- message
- hint
- documentation
properties:
error:
type: string
description: Stable machine-readable error code.
example: unauthorized
message:
type: string
description: Human-readable explanation.
example: A valid UsageMax collector token is required.
hint:
type: string
description: Actionable recovery guidance.
example: Link this computer and send the bearer token in Authorization.
documentation:
type: string
format: uri
description: Canonical documentation reference for this error contract.
example: https://usagemax.com/docs
summary: Get delegated workspace overview
x-summary-source: derived
components:
securitySchemes:
gatewayBearer:
type: http
scheme: bearer
bearerFormat: umxg_ followed by 64 lowercase hex characters
collectorBearer:
type: http
scheme: bearer
bearerFormat: UsageMax collector token (umx_ plus 64 lowercase hex characters)
workosBearer:
type: http
scheme: bearer
bearerFormat: WorkOS Connect JWT; delegated scopes enforced by the resource