Șabloane: toate operațiunile API v1 cu scope, parametri, exemple în curl, JavaScript și Python și răspunsuri. Autentificarea, erorile, paginarea, limitele și idempotența sunt în prezentarea referinței API; vezi și SDK-urile și linia de comandă.
Încearcă cu cheia ta: creează o cheie API în consolă, rulează
export APIDLY_API_KEY=...în terminal, apoi lipește un exemplu curl de mai jos. Valorile din exemple sunt orientative. Pe această pagină nu există un câmp pentru introducerea unei chei.
Descrierile operațiilor și ale câmpurilor provin din definiția API-ului și sunt în engleză.
| Operațiune | Scope necesar | Rezumat |
|---|---|---|
GET /templates |
read |
Șabloane publice și cele ale organizației tale |
POST /templates |
full |
Creează un șablon de organizație |
GET /templates/{id} |
read |
Un șablon |
PATCH /templates/{id} |
full |
Actualizează un șablon al organizației tale |
DELETE /templates/{id} |
full |
Șterge un șablon sau ascunde-l când servere încă îl folosesc |
POST /templates/{id}/share |
full |
Creează un link de partajare pentru un șablon al organizației tale |
DELETE /templates/{id}/share |
full |
Revocă linkurile de partajare ale unui șablon |
GET /templates/{id}/share |
full |
Linkurile de partajare ale unui șablon |
POST /templates/{id}/duplicate |
full |
Copiază un șablon al organizației tale |
GET /templates/{id}/revisions |
read |
Istoricul reviziilor unui șablon, cele mai noi primele |
POST /templates/{id}/revisions/{rev}/restore |
full |
Restaurează o revizie veche ca revizie nouă |
GET /templates/{id}/export |
full |
Exportă un șablon ca fișier portabil |
POST /templates/import |
full |
Creează un șablon dintr-un fișier exportat |
POST /template-shares/{token}/import |
full |
Copiază un șablon partajat în organizația ta |
POST /template-shares/{token}/report |
servers |
Raportează un șablon partajat echipei noastre (cel mult 10 pe oră per organizație) |
GET /templates
Șabloane publice și cele ale organizației tale
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 necesar: read
Parametri
| Nume | În | Tip | Obligatoriu | Descriere |
|---|---|---|---|---|
limit |
query | integer | nu | |
cursor |
query | string | nu | |
q |
query | string | nu | |
category |
query | base | llm | image | notebook | training | custom |
nu | |
source |
query | builtin | own |
nu | |
vramGb |
query | integer | nu |
Exemplu de cerere (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()Instrument de linie de comandă: apidly templates, apidly export, apidly plan, apidly apply (Referință CLI)
Exemplu de răspuns (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"
}Stări de eroare: 401, 403, 429.
POST /templates
Creează un șablon de organizație
Scope necesar: full · Rolul creatorului: admin · Se poate repeta în siguranță cu: Idempotency-Key
Corpul cererii
| Nume | Tip | Obligatoriu | Descriere |
|---|---|---|---|
name |
string | da | |
summary |
string | nu | |
description |
string | nu | |
image |
string | da | |
tag |
string | nu | |
launchMode |
ssh | jupyter | app |
da | |
env |
object | nu | |
secretEnv |
object | nu | |
ports |
listă de object | nu | |
startScript |
string | nu | Shell script run on the server after each start (up to 64 KB). Replaces the deprecated onStart. |
onStart |
string | nu | Deprecated name of startScript, read until 2027-05-31. Send startScript. |
args |
string | nu | |
appPort |
integer sau null | nu | |
defaultDiskGb |
integer | nu | |
minVramGb |
integer | nu | |
constraints |
object | nu | |
recommendedVramGb |
integer sau null | nu | |
inference |
object sau null | nu | |
registryId |
string sau null | nu | |
latestCudaTag |
boolean | nu | |
inheritSecretsFrom |
string | nu |
Exemplu de cerere (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",
})Instrument de linie de comandă: apidly templates (Referință CLI)
Exemplu de răspuns (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"
}
}Stări de eroare: 400, 401, 403, 409, 429.
GET /templates/{id}
Un șablon
id is a template id or the slug the catalogue lists (pytorch). Built-in templates are shown read-only (custom: false).
Scope necesar: read
Parametri
| Nume | În | Tip | Obligatoriu | Descriere |
|---|---|---|---|---|
id |
path | string | da |
Exemplu de cerere (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")Instrument de linie de comandă: apidly templates (Referință CLI)
Exemplu de răspuns (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"
}
}Stări de eroare: 401, 403, 404, 429.
PATCH /templates/{id}
Actualizează un șablon al organizației tale
Scope necesar: full · Rolul creatorului: admin
Parametri
| Nume | În | Tip | Obligatoriu | Descriere |
|---|---|---|---|---|
id |
path | string | da |
Corpul cererii
| Nume | Tip | Obligatoriu | Descriere |
|---|---|---|---|
name |
string | nu | |
summary |
string | nu | |
description |
string | nu | |
image |
string | nu | |
tag |
string | nu | |
launchMode |
ssh | jupyter | app |
nu | |
env |
object | nu | |
secretEnv |
object | nu | |
ports |
listă de object | nu | |
startScript |
string | nu | Shell script run on the server after each start (up to 64 KB). Replaces the deprecated onStart. |
onStart |
string | nu | Deprecated name of startScript, read until 2027-05-31. Send startScript. |
args |
string | nu | |
appPort |
integer sau null | nu | |
defaultDiskGb |
integer | nu | |
minVramGb |
integer | nu | |
constraints |
object | nu | |
recommendedVramGb |
integer sau null | nu | |
inference |
object sau null | nu | |
registryId |
string sau null | nu | |
latestCudaTag |
boolean | nu |
Exemplu de cerere (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",
})Instrument de linie de comandă: apidly templates (Referință CLI)
Exemplu de răspuns (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"
}
}Stări de eroare: 400, 401, 403, 404, 429.
DELETE /templates/{id}
Șterge un șablon sau ascunde-l când servere încă îl folosesc
Scope necesar: full · Rolul creatorului: admin
Parametri
| Nume | În | Tip | Obligatoriu | Descriere |
|---|---|---|---|---|
id |
path | string | da |
Exemplu de cerere (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")Instrument de linie de comandă: apidly templates (Referință CLI)
Exemplu de răspuns (200)
{
"deleted": false,
"hidden": false
}Stări de eroare: 401, 403, 404, 429.
POST /templates/{id}/share
Creează un link de partajare pentru un șablon al organizației tale
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 necesar: full · Permisiune: templates.manage
Parametri
| Nume | În | Tip | Obligatoriu | Descriere |
|---|---|---|---|---|
id |
path | string | da |
Corpul cererii
| Nume | Tip | Obligatoriu | Descriere |
|---|---|---|---|
displayName |
string sau null | nu | |
includeStartScript |
boolean | nu | |
expiresInDays |
integer sau null | nu |
Exemplu de cerere (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")Instrument de linie de comandă: apidly templates (Referință CLI)
Exemplu de răspuns (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"
}
}Stări de eroare: 400, 401, 403, 404, 409, 429.
DELETE /templates/{id}/share
Revocă linkurile de partajare ale unui șablon
Revokes one link with ?shareId=, or every active link of the template when omitted.
Scope necesar: full · Permisiune: templates.manage
Parametri
| Nume | În | Tip | Obligatoriu | Descriere |
|---|---|---|---|---|
id |
path | string | da |
Exemplu de cerere (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")Instrument de linie de comandă: apidly templates (Referință CLI)
Exemplu de răspuns (200)
{
"revoked": 1
}Stări de eroare: 401, 403, 404, 429.
GET /templates/{id}/share
Linkurile de partajare ale unui șablon
Scope necesar: full · Permisiune: templates.manage
Parametri
| Nume | În | Tip | Obligatoriu | Descriere |
|---|---|---|---|---|
id |
path | string | da |
Exemplu de cerere (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")Instrument de linie de comandă: apidly templates (Referință CLI)
Exemplu de răspuns (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"
}
]
}Stări de eroare: 401, 403, 404, 429.
POST /templates/{id}/duplicate
Copiază un șablon al organizației tale
Scope necesar: full · Permisiune: templates.manage
Parametri
| Nume | În | Tip | Obligatoriu | Descriere |
|---|---|---|---|---|
id |
path | string | da |
Exemplu de cerere (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")Instrument de linie de comandă: apidly templates (Referință CLI)
Exemplu de răspuns (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"
}
}Stări de eroare: 401, 403, 404, 409, 429.
GET /templates/{id}/revisions
Istoricul reviziilor unui șablon, cele mai noi primele
Secret values are never included.
Scope necesar: read
Parametri
| Nume | În | Tip | Obligatoriu | Descriere |
|---|---|---|---|---|
id |
path | string | da |
Exemplu de cerere (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")Instrument de linie de comandă: apidly templates (Referință CLI)
Exemplu de răspuns (200)
{
"revisions": [
{
"rev": 1,
"kind": "example",
"restoredFrom": 1,
"createdAt": "2026-11-21T10:00:00.000Z",
"createdByName": "example",
"current": false,
"servers": 1,
"snapshot": {
"key": null
}
}
]
}Stări de eroare: 401, 403, 404, 429.
POST /templates/{id}/revisions/{rev}/restore
Restaurează o revizie veche ca revizie nouă
History is never rewritten: the restored copy becomes the newest revision.
Scope necesar: full · Permisiune: templates.manage
Parametri
| Nume | În | Tip | Obligatoriu | Descriere |
|---|---|---|---|---|
id |
path | string | da | |
rev |
path | string | da |
Exemplu de cerere (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")Instrument de linie de comandă: apidly templates (Referință CLI)
Exemplu de răspuns (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
}Stări de eroare: 401, 403, 404, 429.
GET /templates/{id}/export
Exportă un șablon ca fișier portabil
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 necesar: full · Permisiune: templates.manage
Parametri
| Nume | În | Tip | Obligatoriu | Descriere |
|---|---|---|---|---|
id |
path | string | da |
Exemplu de cerere (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")Instrument de linie de comandă: apidly templates (Referință CLI)
Exemplu de răspuns (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
}
}Stări de eroare: 401, 403, 404, 409, 429.
POST /templates/import
Creează un șablon dintr-un fișier exportat
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 necesar: full · Permisiune: templates.manage · Se poate repeta în siguranță cu: Idempotency-Key
Corpul cererii
| Nume | Tip | Obligatoriu | Descriere |
|---|---|---|---|
json |
string | da |
Exemplu de cerere (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")Instrument de linie de comandă: apidly templates (Referință CLI)
Exemplu de răspuns (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"
}
}Stări de eroare: 400, 401, 403, 409, 429.
POST /template-shares/{token}/import
Copiază un șablon partajat în organizația ta
token is the 32-character token of a share link (/t/{token}). 404 when the link is revoked, expired or unknown.
Scope necesar: full · Permisiune: templates.manage · Se poate repeta în siguranță cu: Idempotency-Key
Parametri
| Nume | În | Tip | Obligatoriu | Descriere |
|---|---|---|---|---|
token |
path | string | da |
Exemplu de cerere (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")Instrument de linie de comandă: apidly templates (Referință CLI)
Exemplu de răspuns (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"
}
}Stări de eroare: 401, 403, 404, 409, 429.
POST /template-shares/{token}/report
Raportează un șablon partajat echipei noastre (cel mult 10 pe oră per organizație)
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 necesar: servers · Se poate repeta în siguranță cu: Idempotency-Key
Parametri
| Nume | În | Tip | Obligatoriu | Descriere |
|---|---|---|---|---|
token |
path | string | da |
Corpul cererii
| Nume | Tip | Obligatoriu | Descriere |
|---|---|---|---|
details |
string | nu | |
reason |
malware | illegal | secrets | other |
da |
Exemplu de cerere (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")Instrument de linie de comandă: apidly templates (Referință CLI)
Exemplu de răspuns (201)
{
"ticketId": "id_example"
}Stări de eroare: 400, 401, 403, 404, 429.
Gata să încerci?
Creează un cont gratuit și adaugă credit când vrei să pornești un server. Cea mai mică alimentare este 10 $.
A fost util?