curl --request PUT \
--url https://agenticadvertising.org/api/registry/agents/{encodedUrl}/oauth-client-credentials \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"token_endpoint": "<string>",
"client_id": "<string>",
"client_secret": "<string>",
"scope": "<string>",
"resource": "<string>",
"audience": "<string>"
}
'{
"agent_context_id": "<string>"
}Save OAuth 2.0 client-credentials for an agent
Store a machine-to-machine OAuth 2.0 client-credentials configuration (RFC 6749 §4.4) for this agent. The SDK exchanges at the token endpoint before every call and refreshes on 401. client_secret may be a $ENV:VAR_NAME reference — the SDK resolves at exchange time, the server stores it as written (encrypted uniformly). Requires authentication and ownership.
curl --request PUT \
--url https://agenticadvertising.org/api/registry/agents/{encodedUrl}/oauth-client-credentials \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"token_endpoint": "<string>",
"client_id": "<string>",
"client_secret": "<string>",
"scope": "<string>",
"resource": "<string>",
"audience": "<string>"
}
'{
"agent_context_id": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://agenticadvertisingorg-changeset-release-main.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer token in the Authorization header. Two token types are accepted:
- Organization API key (
sk_...) issued via the dashboard. Org-scoped, long-lived, for server-to-server use. - User JWT obtained via the OAuth 2.1 authorization code flow with PKCE. User-scoped, short-lived. Discover the authorization server at
/.well-known/oauth-authorization-serverand the protected-resource metadata at/.well-known/oauth-protected-resource/api.
Path Parameters
URL-encoded agent URL
Body
Token endpoint URL (HTTPS required; localhost allowed in dev).
2048OAuth client ID. May be a $ENV:VAR_NAME reference.
2048OAuth client secret. May be a $ENV:VAR_NAME reference. Stored encrypted at rest.
8192Space-separated OAuth scope values.
1024RFC 8707 resource indicator.
2048Audience parameter for audience-validating authorization servers.
2048Client-credentials placement: basic (HTTP Basic header, RFC 6749 §2.3.1 preferred) or body (form fields). SDK default is basic.
basic, body