ai
POST /v1/ai/credentials/{credentialId}/test
Test a stored AI provider key now.
Аутентификација
Пошаљите API кључ као bearer токен. Кључ мора имати дозволу billing.payment.manage; кључ без ње се одбија уз 403, а не 404.
Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.
Испробајте
Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.
curl -X POST https://api.zinndigital.com/v1/ai/credentials/{credentialId}/test \
-H "Authorization: Bearer zdk_live_…"Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли
Детаљи
Runs a real, tiny completion with our own prompts and tool format on the key — not the free authentication probe. ⚖️ The owner's requirement, verbatim: "it must test it works with our system and prompts." Authenticating and working with our prompts are different claims, and a screen showing only the first as a green tick is a control that cannot see the failure it exists to catch. Costs a fraction of a cent on the customer's own key, which is why it is only ever run on save, weekly, or when a person presses the button. Requires billing.payment.manage.
Параметри
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
credentialId (path) | Uuid | Да | — |
Одговор
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
ok | boolean | Да | — |
exercised_prompt | boolean | Да | ⭐ Whether a real call with our own prompts was made. false means we proved only that the key authenticates — a narrower claim a screen showing just "working" would erase,… |
detail | string | Не | — |
model | string | Не | — |
latency_ms | integer | Не | — |
state | string<untested, working, broken> | Да | — |
Грешке које ова крајња тачка може вратити
401 · 403 · 404 · 429