Agent Compliance

Save OAuth 2.0 client-credentials for an agent

Changed on

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.

put/api/registry/agents/{encodedUrl}/oauth-client-credentials

Request

  • Base URL
    https://agenticadvertising.org
  • URL
    https://agenticadvertising.org/api/registry/agents/{encodedUrl}/oauth-client-credentials
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization code: https://agenticadvertising.org/authorize
      Token URL: https://agenticadvertising.org/token

Path parameters

encodedUrlstring required

URL-encoded agent URL

Request body

token_endpointstring required

Token endpoint URL (HTTPS required; localhost allowed in dev).

client_idstring required

OAuth client ID. May be a $ENV:VAR_NAME reference.

client_secretstring required

OAuth client secret. May be a $ENV:VAR_NAME reference. Stored encrypted at rest.

scopestring

Space-separated OAuth scope values.

audiencestring

Audience parameter for audience-validating authorization servers.

auth_method'basic' | 'body'

Client-credentials placement: basic (HTTP Basic header, RFC 6749 §2.3.1 preferred) or body (form fields). SDK default is basic.

organization_idstring

Selected organization ID. The caller must own the agent in this organization.

Response

Credentials saved

connectedtrue required
has_authtrue required
agent_context_idstring required
auth_type'oauth_client_credentials' required

Changes

    • info

      added the new optional request property

    • warning

      added the new aggregate_too_long enum value to the response property for the response status

    • warning

      added the new array_too_few enum value to the response property for the response status

    • warning

      added the new array_too_many enum value to the response property for the response status

    • info

      request property list-of-types was widened by adding types array to media type application/json