Agents

Create an agent credential

Creates the OAuth 2.0 credential for an agent in your organization.

post/agents/{agent_id}/inbound-credentials

Request

Path parameters

agent_idstring required

Agent object ID (24-character hexadecimal string).

Headers

x-org-idstring

Organization identifier that can be obtained from console settings.

Request body

lifetimeDays0 | 30 | 60 | 90 | 365

Credential lifetime in days. When the key is absent, defaults to 365. 0 means the credential never expires. Accepted values are 0, 30, 60, 90, and 365.

Response

Credential created successfully

clientIdstring required

Hydra OAuth client ID for this credential.

clientSecretstring required

One-time client secret.

tokenEndpointAuthMethod'client_secret_basic' | 'client_secret_post' required

OAuth token endpoint client authentication method for this credential. Legacy rows with a NULL stored value are returned as client_secret_basic.

expiresAtstring date-time nullable required

ISO 8601 date-time (UTC) or JSON null.

Changes

No recorded changes to this operation across all 1 revision of this API.