Maler: alle operasjoner i API v1 med scope, parametere, eksempler i curl, JavaScript og Python, og svar. Autentisering, feil, paginering, grenser og idempotens står i oversikten over API-referansen; se også SDK-ene og kommandolinjen.
Prøv med nøkkelen din: lag en API-nøkkel i konsollen, kjør
export APIDLY_API_KEY=...i terminalen og lim inn et curl-eksempel under. Eksempelverdiene er illustrasjoner. Det finnes ikke noe felt for å skrive inn en nøkkel på denne siden.
Beskrivelsene av operasjoner og felt kommer fra API-definisjonen og er på engelsk.
| Operasjon | Påkrevd scope | Sammendrag |
|---|---|---|
GET /templates |
read |
Offentlige maler og organisasjonens egne |
POST /templates |
full |
Opprett en organisasjonsmal |
GET /templates/{id} |
read |
Én mal |
PATCH /templates/{id} |
full |
Oppdater en av organisasjonens maler |
DELETE /templates/{id} |
full |
Slett en mal, eller skjul den når servere fortsatt refererer til den |
POST /templates/{id}/share |
full |
Opprett en delingslenke for en av organisasjonens maler |
DELETE /templates/{id}/share |
full |
Trekk tilbake delingslenker for en mal |
GET /templates/{id}/share |
full |
Delingslenker for en mal |
POST /templates/{id}/duplicate |
full |
Kopier en av organisasjonens maler |
GET /templates/{id}/revisions |
read |
Revisjonshistorikk for en mal, nyeste først |
POST /templates/{id}/revisions/{rev}/restore |
full |
Gjenopprett en eldre revisjon som en ny |
GET /templates/{id}/export |
full |
Eksporter en mal som en flyttbar fil |
POST /templates/import |
full |
Opprett en mal fra en eksportert fil |
POST /template-shares/{token}/import |
full |
Kopier en delt mal til organisasjonen din |
POST /template-shares/{token}/report |
servers |
Rapporter en delt mal til våre ansatte (høyst 10 i timen per organisasjon) |
GET /templates
Offentlige maler og organisasjonens egne
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.
Påkrevd scope: read
Parametere
| Navn | I | Type | Påkrevd | Beskrivelse |
|---|---|---|---|---|
limit |
query | integer | nei | |
cursor |
query | string | nei | |
q |
query | string | nei | |
category |
query | base | llm | image | notebook | training | custom |
nei | |
source |
query | builtin | own |
nei | |
vramGb |
query | integer | nei |
Eksempelforespørsel (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()Kommandolinjeverktøy: apidly templates, apidly export, apidly plan, apidly apply (CLI-referanse)
Eksempelsvar (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"
}Feilstatuser: 401, 403, 429.
POST /templates
Opprett en organisasjonsmal
Påkrevd scope: full · Skaperens rolle: admin · Trygt å gjenta med: Idempotency-Key
Forespørselskropp
| Navn | Type | Påkrevd | Beskrivelse |
|---|---|---|---|
name |
string | ja | |
summary |
string | nei | |
description |
string | nei | |
image |
string | ja | |
tag |
string | nei | |
launchMode |
ssh | jupyter | app |
ja | |
env |
object | nei | |
secretEnv |
object | nei | |
ports |
matrise av object | nei | |
startScript |
string | nei | Shell script run on the server after each start (up to 64 KB). Replaces the deprecated onStart. |
onStart |
string | nei | Deprecated name of startScript, read until 2027-05-31. Send startScript. |
args |
string | nei | |
appPort |
integer eller null | nei | |
defaultDiskGb |
integer | nei | |
minVramGb |
integer | nei | |
constraints |
object | nei | |
recommendedVramGb |
integer eller null | nei | |
inference |
object eller null | nei | |
registryId |
string eller null | nei | |
latestCudaTag |
boolean | nei | |
inheritSecretsFrom |
string | nei |
Eksempelforespørsel (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",
})Kommandolinjeverktøy: apidly templates (CLI-referanse)
Eksempelsvar (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"
}
}Feilstatuser: 400, 401, 403, 409, 429.
GET /templates/{id}
Én mal
id is a template id or the slug the catalogue lists (pytorch). Built-in templates are shown read-only (custom: false).
Påkrevd scope: read
Parametere
| Navn | I | Type | Påkrevd | Beskrivelse |
|---|---|---|---|---|
id |
path | string | ja |
Eksempelforespørsel (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")Kommandolinjeverktøy: apidly templates (CLI-referanse)
Eksempelsvar (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"
}
}Feilstatuser: 401, 403, 404, 429.
PATCH /templates/{id}
Oppdater en av organisasjonens maler
Påkrevd scope: full · Skaperens rolle: admin
Parametere
| Navn | I | Type | Påkrevd | Beskrivelse |
|---|---|---|---|---|
id |
path | string | ja |
Forespørselskropp
| Navn | Type | Påkrevd | Beskrivelse |
|---|---|---|---|
name |
string | nei | |
summary |
string | nei | |
description |
string | nei | |
image |
string | nei | |
tag |
string | nei | |
launchMode |
ssh | jupyter | app |
nei | |
env |
object | nei | |
secretEnv |
object | nei | |
ports |
matrise av object | nei | |
startScript |
string | nei | Shell script run on the server after each start (up to 64 KB). Replaces the deprecated onStart. |
onStart |
string | nei | Deprecated name of startScript, read until 2027-05-31. Send startScript. |
args |
string | nei | |
appPort |
integer eller null | nei | |
defaultDiskGb |
integer | nei | |
minVramGb |
integer | nei | |
constraints |
object | nei | |
recommendedVramGb |
integer eller null | nei | |
inference |
object eller null | nei | |
registryId |
string eller null | nei | |
latestCudaTag |
boolean | nei |
Eksempelforespørsel (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",
})Kommandolinjeverktøy: apidly templates (CLI-referanse)
Eksempelsvar (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"
}
}Feilstatuser: 400, 401, 403, 404, 429.
DELETE /templates/{id}
Slett en mal, eller skjul den når servere fortsatt refererer til den
Påkrevd scope: full · Skaperens rolle: admin
Parametere
| Navn | I | Type | Påkrevd | Beskrivelse |
|---|---|---|---|---|
id |
path | string | ja |
Eksempelforespørsel (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")Kommandolinjeverktøy: apidly templates (CLI-referanse)
Eksempelsvar (200)
{
"deleted": false,
"hidden": false
}Feilstatuser: 401, 403, 404, 429.
POST /templates/{id}/share
Opprett en delingslenke for en av organisasjonens maler
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.
Påkrevd scope: full · Tillatelse: templates.manage
Parametere
| Navn | I | Type | Påkrevd | Beskrivelse |
|---|---|---|---|---|
id |
path | string | ja |
Forespørselskropp
| Navn | Type | Påkrevd | Beskrivelse |
|---|---|---|---|
displayName |
string eller null | nei | |
includeStartScript |
boolean | nei | |
expiresInDays |
integer eller null | nei |
Eksempelforespørsel (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")Kommandolinjeverktøy: apidly templates (CLI-referanse)
Eksempelsvar (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"
}
}Feilstatuser: 400, 401, 403, 404, 409, 429.
DELETE /templates/{id}/share
Trekk tilbake delingslenker for en mal
Revokes one link with ?shareId=, or every active link of the template when omitted.
Påkrevd scope: full · Tillatelse: templates.manage
Parametere
| Navn | I | Type | Påkrevd | Beskrivelse |
|---|---|---|---|---|
id |
path | string | ja |
Eksempelforespørsel (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")Kommandolinjeverktøy: apidly templates (CLI-referanse)
Eksempelsvar (200)
{
"revoked": 1
}Feilstatuser: 401, 403, 404, 429.
GET /templates/{id}/share
Delingslenker for en mal
Påkrevd scope: full · Tillatelse: templates.manage
Parametere
| Navn | I | Type | Påkrevd | Beskrivelse |
|---|---|---|---|---|
id |
path | string | ja |
Eksempelforespørsel (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")Kommandolinjeverktøy: apidly templates (CLI-referanse)
Eksempelsvar (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"
}
]
}Feilstatuser: 401, 403, 404, 429.
POST /templates/{id}/duplicate
Kopier en av organisasjonens maler
Påkrevd scope: full · Tillatelse: templates.manage
Parametere
| Navn | I | Type | Påkrevd | Beskrivelse |
|---|---|---|---|---|
id |
path | string | ja |
Eksempelforespørsel (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")Kommandolinjeverktøy: apidly templates (CLI-referanse)
Eksempelsvar (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"
}
}Feilstatuser: 401, 403, 404, 409, 429.
GET /templates/{id}/revisions
Revisjonshistorikk for en mal, nyeste først
Secret values are never included.
Påkrevd scope: read
Parametere
| Navn | I | Type | Påkrevd | Beskrivelse |
|---|---|---|---|---|
id |
path | string | ja |
Eksempelforespørsel (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")Kommandolinjeverktøy: apidly templates (CLI-referanse)
Eksempelsvar (200)
{
"revisions": [
{
"rev": 1,
"kind": "example",
"restoredFrom": 1,
"createdAt": "2026-11-21T10:00:00.000Z",
"createdByName": "example",
"current": false,
"servers": 1,
"snapshot": {
"key": null
}
}
]
}Feilstatuser: 401, 403, 404, 429.
POST /templates/{id}/revisions/{rev}/restore
Gjenopprett en eldre revisjon som en ny
History is never rewritten: the restored copy becomes the newest revision.
Påkrevd scope: full · Tillatelse: templates.manage
Parametere
| Navn | I | Type | Påkrevd | Beskrivelse |
|---|---|---|---|---|
id |
path | string | ja | |
rev |
path | string | ja |
Eksempelforespørsel (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")Kommandolinjeverktøy: apidly templates (CLI-referanse)
Eksempelsvar (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
}Feilstatuser: 401, 403, 404, 429.
GET /templates/{id}/export
Eksporter en mal som en flyttbar fil
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}).
Påkrevd scope: full · Tillatelse: templates.manage
Parametere
| Navn | I | Type | Påkrevd | Beskrivelse |
|---|---|---|---|---|
id |
path | string | ja |
Eksempelforespørsel (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")Kommandolinjeverktøy: apidly templates (CLI-referanse)
Eksempelsvar (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
}
}Feilstatuser: 401, 403, 404, 409, 429.
POST /templates/import
Opprett en mal fra en eksportert fil
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.
Påkrevd scope: full · Tillatelse: templates.manage · Trygt å gjenta med: Idempotency-Key
Forespørselskropp
| Navn | Type | Påkrevd | Beskrivelse |
|---|---|---|---|
json |
string | ja |
Eksempelforespørsel (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")Kommandolinjeverktøy: apidly templates (CLI-referanse)
Eksempelsvar (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"
}
}Feilstatuser: 400, 401, 403, 409, 429.
POST /template-shares/{token}/import
Kopier en delt mal til organisasjonen din
token is the 32-character token of a share link (/t/{token}). 404 when the link is revoked, expired or unknown.
Påkrevd scope: full · Tillatelse: templates.manage · Trygt å gjenta med: Idempotency-Key
Parametere
| Navn | I | Type | Påkrevd | Beskrivelse |
|---|---|---|---|---|
token |
path | string | ja |
Eksempelforespørsel (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")Kommandolinjeverktøy: apidly templates (CLI-referanse)
Eksempelsvar (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"
}
}Feilstatuser: 401, 403, 404, 409, 429.
POST /template-shares/{token}/report
Rapporter en delt mal til våre ansatte (høyst 10 i timen per organisasjon)
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.
Påkrevd scope: servers · Trygt å gjenta med: Idempotency-Key
Parametere
| Navn | I | Type | Påkrevd | Beskrivelse |
|---|---|---|---|---|
token |
path | string | ja |
Forespørselskropp
| Navn | Type | Påkrevd | Beskrivelse |
|---|---|---|---|
details |
string | nei | |
reason |
malware | illegal | secrets | other |
ja |
Eksempelforespørsel (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")Kommandolinjeverktøy: apidly templates (CLI-referanse)
Eksempelsvar (201)
{
"ticketId": "id_example"
}Feilstatuser: 400, 401, 403, 404, 429.
Klar til å prøve?
Opprett en gratis konto og legg til kreditt når du vil starte en server. Den minste påfyllingen er 10 $.
Var dette nyttig?