hosting
GET /v1/sites/{siteId}/ide-assist/models
The AI models the site's web editor may use.
Упълномощаване
Този крайpoint е публичен. Той не изисква данни за удостоверяване и организация — това е съдържанието, което нашият собствен маркетинг сайт и AI машини за отговори четат.
Този ендпойнт не изисква идентификатор на организация. Вашият ключ вече идентифицира организацията, към която принадлежи, и отговорът е ограничен до нея.
Опитайте
Заменете всичко в квадратни скоби със собствени стойности, а ключовия заместващ символ – с ключ от вашето табло за управление.
curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/ide-assist/modelsВлязохте ли в профила си? API конзолата във вашето табло за управление попълва действителното идентификационно число на вашата организация и вашия собствен ключ и изпълнява заявката спрямо реалното API, за да можете да видите действителния отговор. Отворете този крайpoint в API конзолата
Детайли
What the editor's model picker offers this organisation, **cheapest first**. The first entry is also the one marked `default`: the editor's automatic choice is computed from our published price list rather than typed into the code, so a cheaper model becomes the default when it appears and nobody has to remember to change it. Models we hold no published price for are listed last and marked `priced: false` rather than hidden — a customer running on their own provider key may spend it on anything their account can run, and removing one would look like we had withdrawn it. Authenticated by the same grant as the assistant itself. When the organisation cannot spend at all, `models` is empty **and `refusal` says why**: an empty list on its own cannot be told apart from "we could not look".
Параметри
| Име | Тип | Задължително | Какво представлява |
|---|---|---|---|
siteId (path) | Uuid | Да | Site ID (UUIDv7). |
Отговор
| Име | Тип | Задължително | Какво представлява |
|---|---|---|---|
models | IdeAssistModel[] | Да | — |
refusal | string | Да | Why `models` is empty, when it is. Empty otherwise. An empty list with no reason cannot be told apart from "we could not look", so the reason travels with it. |
Грешки, които този крайpoint може да върне
404 · 422