Templat: semua operasi API v1 dengan scope yang diperlukan, parameter, contoh dalam curl, JavaScript, dan Python, serta responsnya. Autentikasi, kesalahan, penomoran halaman, batas laju, dan idempotensi ada di ikhtisar referensi API; lihat juga SDK dan baris perintah.
Coba dengan kunci Anda: buat kunci API di konsol, jalankan
export APIDLY_API_KEY=...di terminal, lalu tempel salah satu contoh curl di bawah. Nilai contoh hanya ilustrasi. Halaman ini tidak memiliki kolom untuk memasukkan kunci.
Deskripsi operasi dan kolom berasal dari definisi API dan berbahasa Inggris.
| Operasi | Scope yang diperlukan | Ringkasan |
|---|---|---|
GET /templates |
read |
Templat publik dan templat milik organisasi Anda |
POST /templates |
full |
Buat templat organisasi |
GET /templates/{id} |
read |
Satu templat |
PATCH /templates/{id} |
full |
Perbarui salah satu templat organisasi Anda |
DELETE /templates/{id} |
full |
Hapus templat, atau sembunyikan bila server masih merujuknya |
POST /templates/{id}/share |
full |
Buat tautan berbagi untuk salah satu templat organisasi Anda |
DELETE /templates/{id}/share |
full |
Cabut tautan berbagi sebuah templat |
GET /templates/{id}/share |
full |
Tautan berbagi sebuah templat |
POST /templates/{id}/duplicate |
full |
Salin salah satu templat organisasi Anda |
GET /templates/{id}/revisions |
read |
Riwayat revisi sebuah templat, terbaru lebih dulu |
POST /templates/{id}/revisions/{rev}/restore |
full |
Pulihkan revisi lama sebagai revisi baru |
GET /templates/{id}/export |
full |
Ekspor templat sebagai file portabel |
POST /templates/import |
full |
Buat templat dari file hasil ekspor |
POST /template-shares/{token}/import |
full |
Salin templat yang dibagikan ke organisasi Anda |
POST /template-shares/{token}/report |
servers |
Laporkan templat bersama ke staf kami (maksimal 10 per jam per organisasi) |
GET /templates
Templat publik dan templat milik organisasi Anda
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 yang diperlukan: read
Parameter
| Nama | Di | Tipe | Wajib | Deskripsi |
|---|---|---|---|---|
limit |
query | integer | tidak | |
cursor |
query | string | tidak | |
q |
query | string | tidak | |
category |
query | base | llm | image | notebook | training | custom |
tidak | |
source |
query | builtin | own |
tidak | |
vramGb |
query | integer | tidak |
Contoh permintaan (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()Alat baris perintah: apidly templates, apidly export, apidly plan, apidly apply (Referensi CLI)
Contoh respons (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"
}Status kesalahan: 401, 403, 429.
POST /templates
Buat templat organisasi
Scope yang diperlukan: full · Peran pembuat: admin · Aman diulang dengan: Idempotency-Key
Isi permintaan
| Nama | Tipe | Wajib | Deskripsi |
|---|---|---|---|
name |
string | ya | |
summary |
string | tidak | |
description |
string | tidak | |
image |
string | ya | |
tag |
string | tidak | |
launchMode |
ssh | jupyter | app |
ya | |
env |
object | tidak | |
secretEnv |
object | tidak | |
ports |
array object | tidak | |
startScript |
string | tidak | Shell script run on the server after each start (up to 64 KB). Replaces the deprecated onStart. |
onStart |
string | tidak | Deprecated name of startScript, read until 2027-05-31. Send startScript. |
args |
string | tidak | |
appPort |
integer atau null | tidak | |
defaultDiskGb |
integer | tidak | |
minVramGb |
integer | tidak | |
constraints |
object | tidak | |
recommendedVramGb |
integer atau null | tidak | |
inference |
object atau null | tidak | |
registryId |
string atau null | tidak | |
latestCudaTag |
boolean | tidak | |
inheritSecretsFrom |
string | tidak |
Contoh permintaan (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",
})Alat baris perintah: apidly templates (Referensi CLI)
Contoh respons (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"
}
}Status kesalahan: 400, 401, 403, 409, 429.
GET /templates/{id}
Satu templat
id is a template id or the slug the catalogue lists (pytorch). Built-in templates are shown read-only (custom: false).
Scope yang diperlukan: read
Parameter
| Nama | Di | Tipe | Wajib | Deskripsi |
|---|---|---|---|---|
id |
path | string | ya |
Contoh permintaan (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")Alat baris perintah: apidly templates (Referensi CLI)
Contoh respons (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"
}
}Status kesalahan: 401, 403, 404, 429.
PATCH /templates/{id}
Perbarui salah satu templat organisasi Anda
Scope yang diperlukan: full · Peran pembuat: admin
Parameter
| Nama | Di | Tipe | Wajib | Deskripsi |
|---|---|---|---|---|
id |
path | string | ya |
Isi permintaan
| Nama | Tipe | Wajib | Deskripsi |
|---|---|---|---|
name |
string | tidak | |
summary |
string | tidak | |
description |
string | tidak | |
image |
string | tidak | |
tag |
string | tidak | |
launchMode |
ssh | jupyter | app |
tidak | |
env |
object | tidak | |
secretEnv |
object | tidak | |
ports |
array object | tidak | |
startScript |
string | tidak | Shell script run on the server after each start (up to 64 KB). Replaces the deprecated onStart. |
onStart |
string | tidak | Deprecated name of startScript, read until 2027-05-31. Send startScript. |
args |
string | tidak | |
appPort |
integer atau null | tidak | |
defaultDiskGb |
integer | tidak | |
minVramGb |
integer | tidak | |
constraints |
object | tidak | |
recommendedVramGb |
integer atau null | tidak | |
inference |
object atau null | tidak | |
registryId |
string atau null | tidak | |
latestCudaTag |
boolean | tidak |
Contoh permintaan (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",
})Alat baris perintah: apidly templates (Referensi CLI)
Contoh respons (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"
}
}Status kesalahan: 400, 401, 403, 404, 429.
DELETE /templates/{id}
Hapus templat, atau sembunyikan bila server masih merujuknya
Scope yang diperlukan: full · Peran pembuat: admin
Parameter
| Nama | Di | Tipe | Wajib | Deskripsi |
|---|---|---|---|---|
id |
path | string | ya |
Contoh permintaan (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")Alat baris perintah: apidly templates (Referensi CLI)
Contoh respons (200)
{
"deleted": false,
"hidden": false
}Status kesalahan: 401, 403, 404, 429.
POST /templates/{id}/share
Buat tautan berbagi untuk salah satu templat organisasi Anda
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 yang diperlukan: full · Izin: templates.manage
Parameter
| Nama | Di | Tipe | Wajib | Deskripsi |
|---|---|---|---|---|
id |
path | string | ya |
Isi permintaan
| Nama | Tipe | Wajib | Deskripsi |
|---|---|---|---|
displayName |
string atau null | tidak | |
includeStartScript |
boolean | tidak | |
expiresInDays |
integer atau null | tidak |
Contoh permintaan (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")Alat baris perintah: apidly templates (Referensi CLI)
Contoh respons (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"
}
}Status kesalahan: 400, 401, 403, 404, 409, 429.
DELETE /templates/{id}/share
Cabut tautan berbagi sebuah templat
Revokes one link with ?shareId=, or every active link of the template when omitted.
Scope yang diperlukan: full · Izin: templates.manage
Parameter
| Nama | Di | Tipe | Wajib | Deskripsi |
|---|---|---|---|---|
id |
path | string | ya |
Contoh permintaan (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")Alat baris perintah: apidly templates (Referensi CLI)
Contoh respons (200)
{
"revoked": 1
}Status kesalahan: 401, 403, 404, 429.
GET /templates/{id}/share
Tautan berbagi sebuah templat
Scope yang diperlukan: full · Izin: templates.manage
Parameter
| Nama | Di | Tipe | Wajib | Deskripsi |
|---|---|---|---|---|
id |
path | string | ya |
Contoh permintaan (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")Alat baris perintah: apidly templates (Referensi CLI)
Contoh respons (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"
}
]
}Status kesalahan: 401, 403, 404, 429.
POST /templates/{id}/duplicate
Salin salah satu templat organisasi Anda
Scope yang diperlukan: full · Izin: templates.manage
Parameter
| Nama | Di | Tipe | Wajib | Deskripsi |
|---|---|---|---|---|
id |
path | string | ya |
Contoh permintaan (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")Alat baris perintah: apidly templates (Referensi CLI)
Contoh respons (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"
}
}Status kesalahan: 401, 403, 404, 409, 429.
GET /templates/{id}/revisions
Riwayat revisi sebuah templat, terbaru lebih dulu
Secret values are never included.
Scope yang diperlukan: read
Parameter
| Nama | Di | Tipe | Wajib | Deskripsi |
|---|---|---|---|---|
id |
path | string | ya |
Contoh permintaan (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")Alat baris perintah: apidly templates (Referensi CLI)
Contoh respons (200)
{
"revisions": [
{
"rev": 1,
"kind": "example",
"restoredFrom": 1,
"createdAt": "2026-11-21T10:00:00.000Z",
"createdByName": "example",
"current": false,
"servers": 1,
"snapshot": {
"key": null
}
}
]
}Status kesalahan: 401, 403, 404, 429.
POST /templates/{id}/revisions/{rev}/restore
Pulihkan revisi lama sebagai revisi baru
History is never rewritten: the restored copy becomes the newest revision.
Scope yang diperlukan: full · Izin: templates.manage
Parameter
| Nama | Di | Tipe | Wajib | Deskripsi |
|---|---|---|---|---|
id |
path | string | ya | |
rev |
path | string | ya |
Contoh permintaan (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")Alat baris perintah: apidly templates (Referensi CLI)
Contoh respons (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
}Status kesalahan: 401, 403, 404, 429.
GET /templates/{id}/export
Ekspor templat sebagai file portabel
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 yang diperlukan: full · Izin: templates.manage
Parameter
| Nama | Di | Tipe | Wajib | Deskripsi |
|---|---|---|---|---|
id |
path | string | ya |
Contoh permintaan (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")Alat baris perintah: apidly templates (Referensi CLI)
Contoh respons (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
}
}Status kesalahan: 401, 403, 404, 409, 429.
POST /templates/import
Buat templat dari file hasil ekspor
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 yang diperlukan: full · Izin: templates.manage · Aman diulang dengan: Idempotency-Key
Isi permintaan
| Nama | Tipe | Wajib | Deskripsi |
|---|---|---|---|
json |
string | ya |
Contoh permintaan (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")Alat baris perintah: apidly templates (Referensi CLI)
Contoh respons (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"
}
}Status kesalahan: 400, 401, 403, 409, 429.
POST /template-shares/{token}/import
Salin templat yang dibagikan ke organisasi Anda
token is the 32-character token of a share link (/t/{token}). 404 when the link is revoked, expired or unknown.
Scope yang diperlukan: full · Izin: templates.manage · Aman diulang dengan: Idempotency-Key
Parameter
| Nama | Di | Tipe | Wajib | Deskripsi |
|---|---|---|---|---|
token |
path | string | ya |
Contoh permintaan (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")Alat baris perintah: apidly templates (Referensi CLI)
Contoh respons (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"
}
}Status kesalahan: 401, 403, 404, 409, 429.
POST /template-shares/{token}/report
Laporkan templat bersama ke staf kami (maksimal 10 per jam per organisasi)
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 yang diperlukan: servers · Aman diulang dengan: Idempotency-Key
Parameter
| Nama | Di | Tipe | Wajib | Deskripsi |
|---|---|---|---|---|
token |
path | string | ya |
Isi permintaan
| Nama | Tipe | Wajib | Deskripsi |
|---|---|---|---|
details |
string | tidak | |
reason |
malware | illegal | secrets | other |
ya |
Contoh permintaan (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")Alat baris perintah: apidly templates (Referensi CLI)
Contoh respons (201)
{
"ticketId": "id_example"
}Status kesalahan: 400, 401, 403, 404, 429.
Siap mencobanya?
Buat akun gratis dan tambahkan kredit saat Anda ingin menjalankan server. Top-up terkecil adalah $10.
Apakah ini membantu?