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). warnings lists the adapter_config keys its adapter doesn’t take: the runtime builds it without reading them. checked is false when this runtime has no check for the provider’s adapter and the adapter declares no keys.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”The check.
object
Examplegenerated
{ "providerId": "example", "adapterId": "example", "checked": true, "issues": [ { "path": "example", "message": "example" } ], "warnings": [ { "path": "example", "message": "example" } ], "secretRef": { "envName": "example", "name": "example" }}Missing / malformed / expired / revoked bearer token.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Not a member of the workspace (permission-denied). Without an authorization store, anyone reads it.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}No provider with that id under this workspace.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}rate-limit-exceeded with details.limit: "api-requests", on a runtime that sets workspace limits (Kindgi Cloud): this workspace’s limit on API requests a minute is reached, so the request wasn’t run; Retry-After says when to send it again.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Headers
Section titled “Headers”The database was too busy to answer in time (database-busy), or the authorization store couldn’t be reached (authz-backend-unavailable); Retry-After (whole seconds) says when to try again.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Headers
Section titled “Headers”See also
GET /v1/providers/{providerId}: Fetch a providerGET /v1/providers/{providerId}/capabilities: List capabilities a provider satisfiesPOST /v1/providers/{providerId}/unregister: Unregister a model provider- Choose the model an agent uses
- Models
- Kindgi 0.1.8
- Error code
authz-backend-unavailable - Error code
database-busy - Error code
permission-denied - Error code
rate-limit-exceeded - Every error code