# Check a provider's registration

GET

/v1/providers/{providerId}/check

```sh
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

- **[bearerAuth](https://docs.kindgi.com/v0.1.8/reference/api.md#bearerauth)**

## Parameters

### Path Parameters

**providerId**

required

string

ProviderId — opaque string identifier chosen by the deployment.

## Responses

### 200

The check.

application/json

object

**providerId**

required

string

**adapterId**

required

string

**checked**

required

False when this runtime has no check for the provider’s adapter; `issues` is then empty.

boolean

**issues**

required

Array\<object>

object

**path**

required

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).

string

**message**

required

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.

string

**secretRef**

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

**envName**

required

string

\>= 1 characters

**name**

required

string

\>= 1 characters

##### Examplegenerated

```json
{
  "providerId": "example",
  "adapterId": "example",
  "checked": true,
  "issues": [
    {
      "path": "example",
      "message": "example"
    }
  ],
  "secretRef": {
    "envName": "example",
    "name": "example"
  }
}
```

### 401

Missing / malformed / expired / revoked bearer token.

application/json

object

**error**

required

object

**code**

required

Stable machine-readable discriminant. Values match domain error codes (see `docs/API-ROUTE-CONVENTIONS.md` §4.3).

string

**message**

required

string

**details**

Optional, kind-specific.

object

**_key_**

additional properties

any

**requestId**

required

Server-assigned request id; also echoed via `X-Request-Id` header.

string

##### Examplegenerated

```json
{
  "error": {
    "code": "example",
    "message": "example",
    "details": {},
    "requestId": "example"
  }
}
```

### 404

No provider with that id under this tenant.

application/json

object

**error**

required

object

**code**

required

Stable machine-readable discriminant. Values match domain error codes (see `docs/API-ROUTE-CONVENTIONS.md` §4.3).

string

**message**

required

string

**details**

Optional, kind-specific.

object

**_key_**

additional properties

any

**requestId**

required

Server-assigned request id; also echoed via `X-Request-Id` header.

string

##### Examplegenerated

```json
{
  "error": {
    "code": "example",
    "message": "example",
    "details": {},
    "requestId": "example"
  }
}
```

## See also

- [`GET /v1/providers/{providerId}`: Fetch a provider](https://docs.kindgi.com/v0.1.8/reference/api/operations/providersget.md)
- [`GET /v1/providers/{providerId}/capabilities`: List capabilities a provider satisfies](https://docs.kindgi.com/v0.1.8/reference/api/operations/providerscapabilities.md)
- [`POST /v1/providers/{providerId}/unregister`: Unregister a model provider](https://docs.kindgi.com/v0.1.8/reference/api/operations/providersunregister.md)
- [Choose the model an agent uses](https://docs.kindgi.com/v0.1.8/guides/agents/choose-a-model.md)
- [Models](https://docs.kindgi.com/v0.1.8/guides/models.md)
- [Every error code](https://docs.kindgi.com/v0.1.8/reference/errors.md)
