Шаблони: усі операції API v1 з потрібним scope, параметрами, прикладами на curl, JavaScript і Python та відповідями. Автентифікацію, помилки, посторінкову видачу, ліміти та ідемпотентність описано в огляді довідника API; див. також SDK і командний рядок.
Спробуйте зі своїм ключем: створіть API-ключ у консолі, виконайте в терміналі
export APIDLY_API_KEY=...і вставте будь-який приклад curl нижче. Значення в прикладах умовні. На цій сторінці немає поля для введення ключа.
Описи операцій і полів узято з визначення API, вони англійською.
| Операція | Потрібний scope | Опис |
|---|---|---|
GET /templates |
read |
Публічні шаблони та шаблони вашої організації |
POST /templates |
full |
Створити шаблон організації |
GET /templates/{id} |
read |
Один шаблон |
PATCH /templates/{id} |
full |
Оновити шаблон вашої організації |
DELETE /templates/{id} |
full |
Видалити шаблон або сховати його, якщо на нього ще посилаються сервери |
POST /templates/{id}/share |
full |
Створити посилання для спільного доступу до шаблону вашої організації |
DELETE /templates/{id}/share |
full |
Скасувати посилання для спільного доступу до шаблону |
GET /templates/{id}/share |
full |
Посилання для спільного доступу до шаблону |
POST /templates/{id}/duplicate |
full |
Скопіювати шаблон вашої організації |
GET /templates/{id}/revisions |
read |
Історія ревізій шаблону, спочатку нові |
POST /templates/{id}/revisions/{rev}/restore |
full |
Відновити стару ревізію як нову |
GET /templates/{id}/export |
full |
Експортувати шаблон у переносний файл |
POST /templates/import |
full |
Створити шаблон з експортованого файлу |
POST /template-shares/{token}/import |
full |
Скопіювати спільний шаблон у вашу організацію |
POST /template-shares/{token}/report |
servers |
Поскаржитися на спільний шаблон нашим працівникам (не більше 10 на годину на організацію) |
GET /templates
Публічні шаблони та шаблони вашої організації
Optional filters: q (up to 60 characters, case-insensitive, found in the name, slug, summary, image or category), category, source (builtin for the public catalogue, own for your organization's templates) and vramGb (only templates whose minVramGb is at most this, so they run on a GPU with that much memory). Repeat the same filters on every page so the cursor stays valid.
Потрібний scope: read
Параметри
| Ім'я | Де | Тип | Обов'язковий | Опис |
|---|---|---|---|---|
limit |
query | integer | ні | |
cursor |
query | string | ні | |
q |
query | string | ні | |
category |
query | base | llm | image | notebook | training | custom |
ні | |
source |
query | builtin | own |
ні | |
vramGb |
query | integer | ні |
Приклад запиту (curl)
curl "https://apidly.com/api/v1/templates?limit=20" \
-H "Authorization: Bearer $APIDLY_API_KEY"JavaScript (SDK)
await apidly.templates.list({ limit: 20 });Python (SDK)
client.templates.list()Утиліта командного рядка: apidly templates, apidly export, apidly plan, apidly apply (Довідник CLI)
Приклад відповіді (200)
{
"templates": [
{
"id": "example",
"slug": "example",
"name": "example",
"summary": "example",
"category": "example",
"image": "docker.io/library/ubuntu",
"tag": "example",
"launchMode": "ssh",
"env": {
"key": "example"
},
"ports": [
{
"port": null,
"protocol": null,
"label": null
}
],
"startScript": "example",
"onStart": "example",
"args": "example",
"description": "example",
"secretEnvKeys": [
"example"
],
"registryId": "id_example",
"appPort": 1,
"defaultDiskGb": 1,
"minVramGb": 1,
"recommendedVramGb": 1,
"constraints": {
"key": null
},
"latestCudaTag": false,
"inference": {
"api": "http",
"healthPath": "example",
"port": 1
},
"custom": false,
"firstBootMinutes": 1,
"revision": 1,
"sort": 1,
"createdAt": "2026-11-21T10:00:00.000Z"
}
],
"nextCursor": "example"
}Статуси помилок: 401, 403, 429.
POST /templates
Створити шаблон організації
Потрібний scope: full · Роль творця: admin · Безпечний повтор з: Idempotency-Key
Тіло запиту
| Ім'я | Тип | Обов'язковий | Опис |
|---|---|---|---|
name |
string | так | |
summary |
string | ні | |
description |
string | ні | |
image |
string | так | |
tag |
string | ні | |
launchMode |
ssh | jupyter | app |
так | |
env |
object | ні | |
secretEnv |
object | ні | |
ports |
масив із object | ні | |
startScript |
string | ні | Shell script run on the server after each start (up to 64 KB). Replaces the deprecated onStart. |
onStart |
string | ні | Deprecated name of startScript, read until 2027-05-31. Send startScript. |
args |
string | ні | |
appPort |
integer або null | ні | |
defaultDiskGb |
integer | ні | |
minVramGb |
integer | ні | |
constraints |
object | ні | |
recommendedVramGb |
integer або null | ні | |
inference |
object або null | ні | |
registryId |
string або null | ні | |
latestCudaTag |
boolean | ні | |
inheritSecretsFrom |
string | ні |
Приклад запиту (curl)
curl -X POST "https://apidly.com/api/v1/templates" \
-H "Authorization: Bearer $APIDLY_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"name":"example","image":"docker.io/library/ubuntu","launchMode":"ssh"}'JavaScript (SDK)
await apidly.templates.create({
name: "example",
image: "docker.io/library/ubuntu",
launchMode: "ssh"
});Python (SDK)
client.templates.create(body={
"name": "example",
"image": "docker.io/library/ubuntu",
"launchMode": "ssh",
})Утиліта командного рядка: apidly templates (Довідник CLI)
Приклад відповіді (201)
{
"template": {
"id": "example",
"slug": "example",
"name": "example",
"summary": "example",
"category": "example",
"image": "docker.io/library/ubuntu",
"tag": "example",
"launchMode": "ssh",
"env": {
"key": "example"
},
"ports": [
{
"port": 1,
"protocol": "tcp",
"label": "example"
}
],
"startScript": "example",
"onStart": "example",
"args": "example",
"description": "example",
"secretEnvKeys": [
"example"
],
"registryId": "id_example",
"appPort": 1,
"defaultDiskGb": 1,
"minVramGb": 1,
"recommendedVramGb": 1,
"constraints": {
"key": null
},
"latestCudaTag": false,
"inference": {
"api": "http",
"healthPath": "example",
"port": 1
},
"custom": false,
"firstBootMinutes": 1,
"revision": 1,
"sort": 1,
"createdAt": "2026-11-21T10:00:00.000Z"
}
}Статуси помилок: 400, 401, 403, 409, 429.
GET /templates/{id}
Один шаблон
id is a template id or the slug the catalogue lists (pytorch). Built-in templates are shown read-only (custom: false).
Потрібний scope: read
Параметри
| Ім'я | Де | Тип | Обов'язковий | Опис |
|---|---|---|---|---|
id |
path | string | так |
Приклад запиту (curl)
curl "https://apidly.com/api/v1/templates/tpl_example" \
-H "Authorization: Bearer $APIDLY_API_KEY"JavaScript (SDK)
await apidly.templates.get("tpl_example");Python (SDK)
client.templates.get("tpl_example")Утиліта командного рядка: apidly templates (Довідник CLI)
Приклад відповіді (200)
{
"template": {
"id": "example",
"slug": "example",
"name": "example",
"summary": "example",
"category": "example",
"image": "docker.io/library/ubuntu",
"tag": "example",
"launchMode": "ssh",
"env": {
"key": "example"
},
"ports": [
{
"port": 1,
"protocol": "tcp",
"label": "example"
}
],
"startScript": "example",
"onStart": "example",
"args": "example",
"description": "example",
"secretEnvKeys": [
"example"
],
"registryId": "id_example",
"appPort": 1,
"defaultDiskGb": 1,
"minVramGb": 1,
"recommendedVramGb": 1,
"constraints": {
"key": null
},
"latestCudaTag": false,
"inference": {
"api": "http",
"healthPath": "example",
"port": 1
},
"custom": false,
"firstBootMinutes": 1,
"revision": 1,
"sort": 1,
"createdAt": "2026-11-21T10:00:00.000Z"
}
}Статуси помилок: 401, 403, 404, 429.
PATCH /templates/{id}
Оновити шаблон вашої організації
Потрібний scope: full · Роль творця: admin
Параметри
| Ім'я | Де | Тип | Обов'язковий | Опис |
|---|---|---|---|---|
id |
path | string | так |
Тіло запиту
| Ім'я | Тип | Обов'язковий | Опис |
|---|---|---|---|
name |
string | ні | |
summary |
string | ні | |
description |
string | ні | |
image |
string | ні | |
tag |
string | ні | |
launchMode |
ssh | jupyter | app |
ні | |
env |
object | ні | |
secretEnv |
object | ні | |
ports |
масив із object | ні | |
startScript |
string | ні | Shell script run on the server after each start (up to 64 KB). Replaces the deprecated onStart. |
onStart |
string | ні | Deprecated name of startScript, read until 2027-05-31. Send startScript. |
args |
string | ні | |
appPort |
integer або null | ні | |
defaultDiskGb |
integer | ні | |
minVramGb |
integer | ні | |
constraints |
object | ні | |
recommendedVramGb |
integer або null | ні | |
inference |
object або null | ні | |
registryId |
string або null | ні | |
latestCudaTag |
boolean | ні |
Приклад запиту (curl)
curl -X PATCH "https://apidly.com/api/v1/templates/tpl_example" \
-H "Authorization: Bearer $APIDLY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"example","summary":"example","description":"example"}'JavaScript (SDK)
await apidly.templates.update("tpl_example", {
name: "example",
summary: "example",
description: "example"
});Python (SDK)
client.templates.update("tpl_example", body={
"name": "example",
"summary": "example",
"description": "example",
})Утиліта командного рядка: apidly templates (Довідник CLI)
Приклад відповіді (200)
{
"template": {
"id": "example",
"slug": "example",
"name": "example",
"summary": "example",
"category": "example",
"image": "docker.io/library/ubuntu",
"tag": "example",
"launchMode": "ssh",
"env": {
"key": "example"
},
"ports": [
{
"port": 1,
"protocol": "tcp",
"label": "example"
}
],
"startScript": "example",
"onStart": "example",
"args": "example",
"description": "example",
"secretEnvKeys": [
"example"
],
"registryId": "id_example",
"appPort": 1,
"defaultDiskGb": 1,
"minVramGb": 1,
"recommendedVramGb": 1,
"constraints": {
"key": null
},
"latestCudaTag": false,
"inference": {
"api": "http",
"healthPath": "example",
"port": 1
},
"custom": false,
"firstBootMinutes": 1,
"revision": 1,
"sort": 1,
"createdAt": "2026-11-21T10:00:00.000Z"
}
}Статуси помилок: 400, 401, 403, 404, 429.
DELETE /templates/{id}
Видалити шаблон або сховати його, якщо на нього ще посилаються сервери
Потрібний scope: full · Роль творця: admin
Параметри
| Ім'я | Де | Тип | Обов'язковий | Опис |
|---|---|---|---|---|
id |
path | string | так |
Приклад запиту (curl)
curl -X DELETE "https://apidly.com/api/v1/templates/tpl_example" \
-H "Authorization: Bearer $APIDLY_API_KEY"JavaScript (SDK)
await apidly.templates.delete("tpl_example");Python (SDK)
client.templates.delete("tpl_example")Утиліта командного рядка: apidly templates (Довідник CLI)
Приклад відповіді (200)
{
"deleted": false,
"hidden": false
}Статуси помилок: 401, 403, 404, 429.
POST /templates/{id}/share
Створити посилання для спільного доступу до шаблону вашої організації
Anyone with the link sees the template's name, description, image, ports, minimum GPU memory and the NAMES of its plain environment variables, and can copy it into their own organization. Secret values, registry logins and (unless includeStartScript is true) the start script are never shared.
Потрібний scope: full · Дозвіл: templates.manage
Параметри
| Ім'я | Де | Тип | Обов'язковий | Опис |
|---|---|---|---|---|
id |
path | string | так |
Тіло запиту
| Ім'я | Тип | Обов'язковий | Опис |
|---|---|---|---|
displayName |
string або null | ні | |
includeStartScript |
boolean | ні | |
expiresInDays |
integer або null | ні |
Приклад запиту (curl)
curl -X POST "https://apidly.com/api/v1/templates/tpl_example/share" \
-H "Authorization: Bearer $APIDLY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"displayName":"example","includeStartScript":false,"expiresInDays":null}'JavaScript (SDK)
await apidly.templates.share("tpl_example");Python (SDK)
client.templates.share("tpl_example")Утиліта командного рядка: apidly templates (Довідник CLI)
Приклад відповіді (201)
{
"share": {
"id": "example",
"templateId": "id_example",
"token": "example",
"displayName": "example",
"includeStartScript": false,
"expiresAt": "2026-11-21T10:00:00.000Z",
"status": "active",
"viewCount": 1,
"importCount": 1,
"createdAt": "2026-11-21T10:00:00.000Z"
}
}Статуси помилок: 400, 401, 403, 404, 409, 429.
DELETE /templates/{id}/share
Скасувати посилання для спільного доступу до шаблону
Revokes one link with ?shareId=, or every active link of the template when omitted.
Потрібний scope: full · Дозвіл: templates.manage
Параметри
| Ім'я | Де | Тип | Обов'язковий | Опис |
|---|---|---|---|---|
id |
path | string | так |
Приклад запиту (curl)
curl -X DELETE "https://apidly.com/api/v1/templates/tpl_example/share" \
-H "Authorization: Bearer $APIDLY_API_KEY"JavaScript (SDK)
await apidly.templates.unshare("tpl_example");Python (SDK)
client.templates.unshare("tpl_example")Утиліта командного рядка: apidly templates (Довідник CLI)
Приклад відповіді (200)
{
"revoked": 1
}Статуси помилок: 401, 403, 404, 429.
GET /templates/{id}/share
Посилання для спільного доступу до шаблону
Потрібний scope: full · Дозвіл: templates.manage
Параметри
| Ім'я | Де | Тип | Обов'язковий | Опис |
|---|---|---|---|---|
id |
path | string | так |
Приклад запиту (curl)
curl "https://apidly.com/api/v1/templates/tpl_example/share" \
-H "Authorization: Bearer $APIDLY_API_KEY"JavaScript (SDK)
await apidly.templates.listShares("tpl_example");Python (SDK)
client.templates.list_shares("tpl_example")Утиліта командного рядка: apidly templates (Довідник CLI)
Приклад відповіді (200)
{
"shares": [
{
"id": "example",
"templateId": "id_example",
"token": "example",
"displayName": "example",
"includeStartScript": false,
"expiresAt": "2026-11-21T10:00:00.000Z",
"status": "active",
"viewCount": 1,
"importCount": 1,
"createdAt": "2026-11-21T10:00:00.000Z"
}
]
}Статуси помилок: 401, 403, 404, 429.
POST /templates/{id}/duplicate
Скопіювати шаблон вашої організації
Потрібний scope: full · Дозвіл: templates.manage
Параметри
| Ім'я | Де | Тип | Обов'язковий | Опис |
|---|---|---|---|---|
id |
path | string | так |
Приклад запиту (curl)
curl -X POST "https://apidly.com/api/v1/templates/tpl_example/duplicate" \
-H "Authorization: Bearer $APIDLY_API_KEY"JavaScript (SDK)
await apidly.templates.duplicate("tpl_example");Python (SDK)
client.templates.duplicate("tpl_example")Утиліта командного рядка: apidly templates (Довідник CLI)
Приклад відповіді (201)
{
"template": {
"id": "example",
"slug": "example",
"name": "example",
"summary": "example",
"category": "example",
"image": "docker.io/library/ubuntu",
"tag": "example",
"launchMode": "ssh",
"env": {
"key": "example"
},
"ports": [
{
"port": 1,
"protocol": "tcp",
"label": "example"
}
],
"startScript": "example",
"onStart": "example",
"args": "example",
"description": "example",
"secretEnvKeys": [
"example"
],
"registryId": "id_example",
"appPort": 1,
"defaultDiskGb": 1,
"minVramGb": 1,
"recommendedVramGb": 1,
"constraints": {
"key": null
},
"latestCudaTag": false,
"inference": {
"api": "http",
"healthPath": "example",
"port": 1
},
"custom": false,
"firstBootMinutes": 1,
"revision": 1,
"sort": 1,
"createdAt": "2026-11-21T10:00:00.000Z"
}
}Статуси помилок: 401, 403, 404, 409, 429.
GET /templates/{id}/revisions
Історія ревізій шаблону, спочатку нові
Secret values are never included.
Потрібний scope: read
Параметри
| Ім'я | Де | Тип | Обов'язковий | Опис |
|---|---|---|---|---|
id |
path | string | так |
Приклад запиту (curl)
curl "https://apidly.com/api/v1/templates/tpl_example/revisions" \
-H "Authorization: Bearer $APIDLY_API_KEY"JavaScript (SDK)
await apidly.templates.listRevisions("tpl_example");Python (SDK)
client.templates.list_revisions("tpl_example")Утиліта командного рядка: apidly templates (Довідник CLI)
Приклад відповіді (200)
{
"revisions": [
{
"rev": 1,
"kind": "example",
"restoredFrom": 1,
"createdAt": "2026-11-21T10:00:00.000Z",
"createdByName": "example",
"current": false,
"servers": 1,
"snapshot": {
"key": null
}
}
]
}Статуси помилок: 401, 403, 404, 429.
POST /templates/{id}/revisions/{rev}/restore
Відновити стару ревізію як нову
History is never rewritten: the restored copy becomes the newest revision.
Потрібний scope: full · Дозвіл: templates.manage
Параметри
| Ім'я | Де | Тип | Обов'язковий | Опис |
|---|---|---|---|---|
id |
path | string | так | |
rev |
path | string | так |
Приклад запиту (curl)
curl -X POST "https://apidly.com/api/v1/templates/tpl_example/revisions/1/restore" \
-H "Authorization: Bearer $APIDLY_API_KEY"JavaScript (SDK)
await apidly.templates.restoreRevision("tpl_example", "1");Python (SDK)
client.templates.restore_revision("tpl_example", "1")Утиліта командного рядка: apidly templates (Довідник CLI)
Приклад відповіді (200)
{
"template": {
"id": "example",
"slug": "example",
"name": "example",
"summary": "example",
"category": "example",
"image": "docker.io/library/ubuntu",
"tag": "example",
"launchMode": "ssh",
"env": {
"key": "example"
},
"ports": [
{
"port": 1,
"protocol": "tcp",
"label": "example"
}
],
"startScript": "example",
"onStart": "example",
"args": "example",
"description": "example",
"secretEnvKeys": [
"example"
],
"registryId": "id_example",
"appPort": 1,
"defaultDiskGb": 1,
"minVramGb": 1,
"recommendedVramGb": 1,
"constraints": {
"key": null
},
"latestCudaTag": false,
"inference": {
"api": "http",
"healthPath": "example",
"port": 1
},
"custom": false,
"firstBootMinutes": 1,
"revision": 1,
"sort": 1,
"createdAt": "2026-11-21T10:00:00.000Z"
},
"revision": 1
}Статуси помилок: 401, 403, 404, 429.
GET /templates/{id}/export
Експортувати шаблон у переносний файл
The file the console downloads. Secret variables appear as names in secretEnvNames, never with values; the registry login is never included. Send its text to POST /templates/import to copy it into an organization. Only your organization's own templates can be exported: a built-in template answers 409 invalid_state (read it with GET /templates/{id}).
Потрібний scope: full · Дозвіл: templates.manage
Параметри
| Ім'я | Де | Тип | Обов'язковий | Опис |
|---|---|---|---|---|
id |
path | string | так |
Приклад запиту (curl)
curl "https://apidly.com/api/v1/templates/tpl_example/export" \
-H "Authorization: Bearer $APIDLY_API_KEY"JavaScript (SDK)
await apidly.templates.export("tpl_example");Python (SDK)
client.templates.export("tpl_example")Утиліта командного рядка: apidly templates (Довідник CLI)
Приклад відповіді (200)
{
"format": "apidly-template",
"version": 1,
"template": {
"name": "example",
"summary": "example",
"description": "example",
"image": "docker.io/library/ubuntu",
"tag": "example",
"launchMode": "ssh",
"env": {
"key": "example"
},
"secretEnvNames": [
"example"
],
"ports": [
{
"port": 1,
"protocol": "tcp",
"label": "example"
}
],
"appPort": 1,
"inference": {
"key": null
},
"startScript": "example",
"onStart": "example",
"args": "example",
"defaultDiskGb": 1,
"minVramGb": 1
}
}Статуси помилок: 401, 403, 404, 409, 429.
POST /templates/import
Створити шаблон з експортованого файлу
json is the text of a file from GET /templates/{id}/export (or the console's Export). Secret variables arrive blank and the registry unset. 400 invalid_file when it is not such a file.
Потрібний scope: full · Дозвіл: templates.manage · Безпечний повтор з: Idempotency-Key
Тіло запиту
| Ім'я | Тип | Обов'язковий | Опис |
|---|---|---|---|
json |
string | так |
Приклад запиту (curl)
curl -X POST "https://apidly.com/api/v1/templates/import" \
-H "Authorization: Bearer $APIDLY_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"json":"example"}'JavaScript (SDK)
await apidly.templates.import("example");Python (SDK)
client.templates.import_file(file="example")Утиліта командного рядка: apidly templates (Довідник CLI)
Приклад відповіді (201)
{
"template": {
"id": "example",
"slug": "example",
"name": "example",
"summary": "example",
"category": "example",
"image": "docker.io/library/ubuntu",
"tag": "example",
"launchMode": "ssh",
"env": {
"key": "example"
},
"ports": [
{
"port": 1,
"protocol": "tcp",
"label": "example"
}
],
"startScript": "example",
"onStart": "example",
"args": "example",
"description": "example",
"secretEnvKeys": [
"example"
],
"registryId": "id_example",
"appPort": 1,
"defaultDiskGb": 1,
"minVramGb": 1,
"recommendedVramGb": 1,
"constraints": {
"key": null
},
"latestCudaTag": false,
"inference": {
"api": "http",
"healthPath": "example",
"port": 1
},
"custom": false,
"firstBootMinutes": 1,
"revision": 1,
"sort": 1,
"createdAt": "2026-11-21T10:00:00.000Z"
}
}Статуси помилок: 400, 401, 403, 409, 429.
POST /template-shares/{token}/import
Скопіювати спільний шаблон у вашу організацію
token is the 32-character token of a share link (/t/{token}). 404 when the link is revoked, expired or unknown.
Потрібний scope: full · Дозвіл: templates.manage · Безпечний повтор з: Idempotency-Key
Параметри
| Ім'я | Де | Тип | Обов'язковий | Опис |
|---|---|---|---|---|
token |
path | string | так |
Приклад запиту (curl)
curl -X POST "https://apidly.com/api/v1/template-shares/templateshare_example/import" \
-H "Authorization: Bearer $APIDLY_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"JavaScript (SDK)
await apidly.templates.importShared("templateshare_example");Python (SDK)
client.templates.import_shared("templateshare_example")Утиліта командного рядка: apidly templates (Довідник CLI)
Приклад відповіді (201)
{
"template": {
"id": "example",
"slug": "example",
"name": "example",
"summary": "example",
"category": "example",
"image": "docker.io/library/ubuntu",
"tag": "example",
"launchMode": "ssh",
"env": {
"key": "example"
},
"ports": [
{
"port": 1,
"protocol": "tcp",
"label": "example"
}
],
"startScript": "example",
"onStart": "example",
"args": "example",
"description": "example",
"secretEnvKeys": [
"example"
],
"registryId": "id_example",
"appPort": 1,
"defaultDiskGb": 1,
"minVramGb": 1,
"recommendedVramGb": 1,
"constraints": {
"key": null
},
"latestCudaTag": false,
"inference": {
"api": "http",
"healthPath": "example",
"port": 1
},
"custom": false,
"firstBootMinutes": 1,
"revision": 1,
"sort": 1,
"createdAt": "2026-11-21T10:00:00.000Z"
}
}Статуси помилок: 401, 403, 404, 409, 429.
POST /template-shares/{token}/report
Поскаржитися на спільний шаблон нашим працівникам (не більше 10 на годину на організацію)
Opens a support ticket for staff with the reason (malware, illegal, secrets, other) and your details. Five reports an hour per key and ten an hour per organization, across all its keys.
Потрібний scope: servers · Безпечний повтор з: Idempotency-Key
Параметри
| Ім'я | Де | Тип | Обов'язковий | Опис |
|---|---|---|---|---|
token |
path | string | так |
Тіло запиту
| Ім'я | Тип | Обов'язковий | Опис |
|---|---|---|---|
details |
string | ні | |
reason |
malware | illegal | secrets | other |
так |
Приклад запиту (curl)
curl -X POST "https://apidly.com/api/v1/template-shares/templateshare_example/report" \
-H "Authorization: Bearer $APIDLY_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"reason":"malware"}'JavaScript (SDK)
await apidly.templates.reportShared("templateshare_example", {
reason: "malware"
});Python (SDK)
client.templates.report_shared("templateshare_example", reason="malware")Утиліта командного рядка: apidly templates (Довідник CLI)
Приклад відповіді (201)
{
"ticketId": "id_example"
}Статуси помилок: 400, 401, 403, 404, 429.
Готові спробувати?
Створіть безкоштовний обліковий запис і поповніть баланс, коли захочете запустити сервер. Мінімальне поповнення — 10 $.
Це було корисно?