Skip to navigation

Check a stored vendor credential again

Runs the check PUT /v1/provider-keys/{provider} runs, on the credential already stored, so you need not paste it again. When the vendor accepts it, verified_at is set to now and the provider key is returned. When the vendor refuses it, the call returns 400 provider_credentials_rejected and the stored credential and its verified_at are left as they were. If the vendor cannot be reached the call returns 502, and you can retry. A credential replaced while the check ran returns 409: check again.

Scope: admin. People: owner and admin.

curl -sS -X POST "$MEADOW_BASE_URL/v1/provider-keys/anthropic/verify" -H "Authorization: Bearer $MEADOW_API_KEY"

Authentication

AuthorizationBearer

A Meadow API key, sent as Authorization: Bearer mdw_.... The header x-api-key: mdw_... is accepted in its place.

Path parameters

providerenumRequired
The provider the credential belongs to.

Response headers

x-request-idstringOptional

Meadow’s id for this request, req_ and 24 hex characters. Every response carries it, including errors, streams and unknown routes. Every error in the Error schema repeats it as request_id. Quote it when you report a problem.

Response

The vendor accepted the credential.
providerenum

The name of a vendor. Model providers and sandbox providers share one list. Model providers: anthropic, openai, google, xai, azure, bedrock, vertex, openrouter, fireworks, deepseek. Sandbox providers: daytona, modal.

created_atdatetime
When a credential for this provider was first stored. Replacing it does not change this.
last4stringOptional

The last four characters of the stored key (for modal, of the token id).

project_idslist of strings or nullOptional
The projects that may use the credential. Null means every project.
verified_atdatetime or nullOptional
When Meadow last checked the credential against the vendor.
sandbox_healthobjectOptional

What Meadow remembers about recent sandbox creates on this provider with this account’s key. Present for daytona and modal only. It is a circuit breaker. closed: the provider is tried in its usual place. open: it failed lately, so a create with another provider in its route tries the other one first, until retry_at. half_open: one create is trying it again, and that create’s result closes it or opens it again. A provider opens after 3 failed creates in a row within 10 minutes (timeout or vendor error), for 60 seconds, or after one quota, capacity or rate limit answer, for 30 seconds. A rejected key (401 or 403) does not count. An order the caller or the project set moves an open provider only on a hard signal: a quota or capacity answer, or the 3 failures in a row. A route with one provider is never reordered. Storing the key again clears it.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error
502
Bad Gateway Error