Перейти к основному содержимому
Apidly Cloud
Политика в отношении cookie

Аналитические и рекламные cookie остаются выключенными, пока вы их не примете. Политика в отношении cookie

Мы хотели бы использовать Google Analytics и Microsoft Clarity, чтобы понимать, как используются публичные страницы, включая просмотры страниц и записи сеансов, а также Reddit Pixel, чтобы измерять, приводят ли наши объявления в Reddit к посещениям и регистрациям. Здесь вы выбираете, включены ли они. Отказ никак не влияет на работу сайта.

Справочник API: Шаблоны

Операции API v1 для раздела «Шаблоны»: scope, параметры, примеры на curl, JavaScript и Python и ответы.

Обновлено 21 ноября 2026 г.8 мин чтения
Открыть как Markdown

Шаблоны: все операции 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 $.

Создать бесплатный аккаунт

Это было полезно?

Всё ещё не получается? Напишите нам