Client ID Metadata Document API
Preview the OAuth Client ID Metadata Document of a client before registering it. The returned values are used to create an application, and later an agent, that is marked as registered from the document.
Download the OpenAPI definition (YAML)
Security schemes
OAuth2: oauth2
clientCredentials flow, token URL https://localhost:8090/oauth2/token
1 scopes
| Scope | Description |
|---|---|
system | Access to system management APIs |
Client ID Metadata Document
Preview a client's metadata document.
Preview a Client ID Metadata Document
POST /cimd/preview
Retrieves and validates the Client ID Metadata Document at the given Client Identifier URL and returns the values to store. Nothing is stored. This is the only operation that retrieves a document. Create the client with the returned values, which include clientIdMetadataDocument: true. The returned grant types are those the document declares, narrowed to authorization_code and refresh_token and to the grant types the deployment allows.
Scopes: system
Request body (required): application/json
Schema: PreviewRequest
1 property
| Name | Type | Required | Description |
|---|---|---|---|
clientId | string | Yes | The Client Identifier URL, which serves the client's metadata document. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | The values taken from the document. | PreviewResponse |
400 | The request is malformed, the URL is invalid, or the document cannot be retrieved or breaks a document rule. | Error |
500 | Internal server error | Error |
Schemas
PreviewRequest
Type: object
1 property
| Name | Type | Required | Description |
|---|---|---|---|
clientId | string | Yes | The Client Identifier URL, which serves the client's metadata document. |
PreviewResponse
Type: object
Values taken from a Client ID Metadata Document, in the shape of the fields a create request takes.
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | The document's | |
url | string | ||
tosUri | string | ||
policyUri | string | ||
contacts | array of string | ||
inboundAuthConfig | array of object |
Error
Type: object
7 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | ||
message | object | ||
message.key | string | ||
message.defaultValue | string | ||
description | object | ||
description.key | string | ||
description.defaultValue | string |
Was this page helpful?