Check a provider's registration
const url = 'https://example.com/v1/providers/example/check';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/providers/example/check \ --header 'Authorization: Bearer <token>'Runs the provider’s adapter check over its stored registration (its adapter_config, its metadata, whether it names a secret_ref): the check POST /v1/providers runs before it stores one. Static: no network call, no secret read. issues lists what would keep the runtime from building the provider, each with a JSON-pointer path; an adapter this runtime doesn’t have is one (/adapter_id). checked is false when this runtime has no check for the provider’s adapter.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”ProviderId — opaque string identifier chosen by the deployment.
Responses
Section titled “Responses”The check.
object
False when this runtime has no check for the provider’s adapter; issues is then empty.
object
The setting at fault, as a JSON pointer into the registration: /adapter_config/<key>, /secret_ref, /metadata/region, /metadata/models/<i>/name, or /adapter_id (an adapter this runtime does not have).
What’s wrong with that setting and what it takes (e.g. adapter_config.api must be one of responses, chat-completions.). The error’s message names the provider and its adapter.
The secret the provider’s key resolves from, by name only, never its value. Present when the registration has one. Only a caller allowed to check the provider sees it. kindgi dev uses it to keep a provider’s key out of the pack service’s environment. A runtime before 0.1.6 leaves it out.
object
Examplegenerated
{ "providerId": "example", "adapterId": "example", "checked": true, "issues": [ { "path": "example", "message": "example" } ], "secretRef": { "envName": "example", "name": "example" }}Missing / malformed / expired / revoked bearer token.
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}No provider with that id under this tenant.
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}