Store a provider key
Tests the key against the provider, then stores it, sealed. A
judgment names a model on it as <provider>/<model id> at
current. With namespace, the credential serves that namespace
only and takes precedence there over the organization’s; without
it, it serves the whole organization and needs a key scoped *.
The same key on the same scope again returns the stored credential and runs no test, so a retry is safe. A different key on a scope that has one replaces it: the new key is tested first, and the old one is revoked when the new one is stored.
A key the provider refuses is invalid_request with
details.reason credential_rejected and the provider’s
details.status; a test_model the provider does not serve is
invalid_request with details.reason model_unavailable. When the
provider is down or limits the test, the answer is unavailable
with Retry-After and nothing is stored. Tests, here and on
POST /credentials/{provider}/test, are limited to 50 a day per
organization; past that, rate_limited with details.rate_limit
credential_tests_per_day. An organization that is not claimed yet
is claim_required.
Authorizations
An organization API key. Keys carry a role (read_write or
read_only) and may be restricted to a namespace prefix such as
acme/*, or to one namespace such as acme/prod/tenant_1. A prefix
matches on a / boundary: acme/prod/tenant_1* covers
acme/prod/tenant_1 and everything under acme/prod/tenant_1/,
never acme/prod/tenant_12.
Headers
One key per logical request, reused only on its retries. A key
belongs to one request: within your organization, the same method,
path, query and body. For 24 hours after a successful response, a
request with the key and the same body gets that response back
verbatim, with Idempotent-Replayed: true, and runs nothing. Only a
successful response is kept, so the retry of a request that failed
runs again. While the first request runs or its response is kept,
the key with a different request is idempotency_key_reused (422).
A request sent while one with its key is still running is
rate_limited with Retry-After: 1, without running: retry it to
get the first one's response. In the rare case the key can't be
checked, the request runs as if it had none.
1 - 255Path Parameters
Body
How often, in seconds, Brussle probes each model your judgments run on with this key, to see when its behaviour changes. Defaults to 300. A replaced key keeps the scope's setting unless you send one. Sending the same key with a new value changes only this.
30 <= x <= 3600Response
Stored, or already stored with this key.
A stored provider key, without the key.
How Brussle watches the models your judgments run on with this key
for a change of behaviour. It sends a fixed short set of questions,
none of your documents, to your provider on this key, each
probe_interval_s for each model in use, and your provider bills
those calls. A model that answers no decision type (an embedding
model, for example) is not sent them; Brussle watches the model id
its responses name instead.