---
title: "Test Stored Provider"
method: POST
path: "/v1/provider-credentials/{instance}/test"
tags: ["providers"]
---

# Test Stored Provider

`POST /v1/provider-credentials/{instance}/test`

Verify a stored provider's key by listing its models, without exposing the key.

## Path parameters

- `instance` string, required

## Response `200`

Successful Response

- TestProviderResponse — Result of a live provider connection test.
  - `discovery_unsupported` boolean — True when the test failed only because this backend serves no model-listing endpoint, so the credentials could not be verified this way but may still work for requests.
  - `error` string, nullable
  - `model_count` integer, required
  - `ok` boolean, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/mozilla-ai/apis/otari.md) · [All operations](https://skmtc.net/mozilla-ai/apis/otari/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mozilla-ai/otari/revisions/c05befed4db4/schema)
