Modèles : toutes les opérations de l'API v1 avec leur scope, leurs paramètres, des exemples en curl, JavaScript et Python, et les réponses. L'authentification, les erreurs, la pagination, les limites et l'idempotence sont décrites dans l'aperçu de la référence de l'API ; voir aussi les SDK et la ligne de commande.
Essayez avec votre clé : créez une clé d'API dans la console, exécutez
export APIDLY_API_KEY=...dans votre terminal, puis collez un des exemples curl ci-dessous. Les valeurs d'exemple sont illustratives. Cette page ne contient aucun champ pour saisir une clé.
Les descriptions des opérations et des champs viennent de la définition de l'API et sont en anglais.
| Opération | Scope requis | Résumé |
|---|---|---|
GET /templates |
read |
Modèles publics et ceux de votre organisation |
POST /templates |
full |
Créer un modèle d'organisation |
GET /templates/{id} |
read |
Un modèle |
PATCH /templates/{id} |
full |
Mettre à jour un modèle de votre organisation |
DELETE /templates/{id} |
full |
Supprimer un modèle, ou le masquer quand des serveurs y font encore référence |
POST /templates/{id}/share |
full |
Créer un lien de partage pour un modèle de votre organisation |
DELETE /templates/{id}/share |
full |
Révoquer les liens de partage d'un modèle |
GET /templates/{id}/share |
full |
Liens de partage d'un modèle |
POST /templates/{id}/duplicate |
full |
Copier un modèle de votre organisation |
GET /templates/{id}/revisions |
read |
Historique des révisions d'un modèle, de la plus récente à la plus ancienne |
POST /templates/{id}/revisions/{rev}/restore |
full |
Restaurer une ancienne révision comme nouvelle révision |
GET /templates/{id}/export |
full |
Exporter un modèle dans un fichier portable |
POST /templates/import |
full |
Créer un modèle à partir d'un fichier exporté |
POST /template-shares/{token}/import |
full |
Copier un modèle partagé dans votre organisation |
POST /template-shares/{token}/report |
servers |
Signaler un modèle partagé à notre équipe (10 par heure au maximum par organisation) |
GET /templates
Modèles publics et ceux de votre organisation
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 requis: read
Paramètres
| Nom | Dans | Type | Obligatoire | Description |
|---|---|---|---|---|
limit |
query | integer | non | |
cursor |
query | string | non | |
q |
query | string | non | |
category |
query | base | llm | image | notebook | training | custom |
non | |
source |
query | builtin | own |
non | |
vramGb |
query | integer | non |
Exemple de requête (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()Outil en ligne de commande: apidly templates, apidly export, apidly plan, apidly apply (Référence de la CLI)
Exemple de réponse (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"
}Statuts d'erreur: 401, 403, 429.
POST /templates
Créer un modèle d'organisation
Scope requis: full · Rôle du créateur: admin · Répétable en toute sécurité avec: Idempotency-Key
Corps de la requête
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
name |
string | oui | |
summary |
string | non | |
description |
string | non | |
image |
string | oui | |
tag |
string | non | |
launchMode |
ssh | jupyter | app |
oui | |
env |
object | non | |
secretEnv |
object | non | |
ports |
tableau de object | non | |
startScript |
string | non | Shell script run on the server after each start (up to 64 KB). Replaces the deprecated onStart. |
onStart |
string | non | Deprecated name of startScript, read until 2027-05-31. Send startScript. |
args |
string | non | |
appPort |
integer ou null | non | |
defaultDiskGb |
integer | non | |
minVramGb |
integer | non | |
constraints |
object | non | |
recommendedVramGb |
integer ou null | non | |
inference |
object ou null | non | |
registryId |
string ou null | non | |
latestCudaTag |
boolean | non | |
inheritSecretsFrom |
string | non |
Exemple de requête (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",
})Outil en ligne de commande: apidly templates (Référence de la CLI)
Exemple de réponse (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"
}
}Statuts d'erreur: 400, 401, 403, 409, 429.
GET /templates/{id}
Un modèle
id is a template id or the slug the catalogue lists (pytorch). Built-in templates are shown read-only (custom: false).
Scope requis: read
Paramètres
| Nom | Dans | Type | Obligatoire | Description |
|---|---|---|---|---|
id |
path | string | oui |
Exemple de requête (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")Outil en ligne de commande: apidly templates (Référence de la CLI)
Exemple de réponse (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"
}
}Statuts d'erreur: 401, 403, 404, 429.
PATCH /templates/{id}
Mettre à jour un modèle de votre organisation
Scope requis: full · Rôle du créateur: admin
Paramètres
| Nom | Dans | Type | Obligatoire | Description |
|---|---|---|---|---|
id |
path | string | oui |
Corps de la requête
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
name |
string | non | |
summary |
string | non | |
description |
string | non | |
image |
string | non | |
tag |
string | non | |
launchMode |
ssh | jupyter | app |
non | |
env |
object | non | |
secretEnv |
object | non | |
ports |
tableau de object | non | |
startScript |
string | non | Shell script run on the server after each start (up to 64 KB). Replaces the deprecated onStart. |
onStart |
string | non | Deprecated name of startScript, read until 2027-05-31. Send startScript. |
args |
string | non | |
appPort |
integer ou null | non | |
defaultDiskGb |
integer | non | |
minVramGb |
integer | non | |
constraints |
object | non | |
recommendedVramGb |
integer ou null | non | |
inference |
object ou null | non | |
registryId |
string ou null | non | |
latestCudaTag |
boolean | non |
Exemple de requête (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",
})Outil en ligne de commande: apidly templates (Référence de la CLI)
Exemple de réponse (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"
}
}Statuts d'erreur: 400, 401, 403, 404, 429.
DELETE /templates/{id}
Supprimer un modèle, ou le masquer quand des serveurs y font encore référence
Scope requis: full · Rôle du créateur: admin
Paramètres
| Nom | Dans | Type | Obligatoire | Description |
|---|---|---|---|---|
id |
path | string | oui |
Exemple de requête (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")Outil en ligne de commande: apidly templates (Référence de la CLI)
Exemple de réponse (200)
{
"deleted": false,
"hidden": false
}Statuts d'erreur: 401, 403, 404, 429.
POST /templates/{id}/share
Créer un lien de partage pour un modèle de votre organisation
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 requis: full · Permission: templates.manage
Paramètres
| Nom | Dans | Type | Obligatoire | Description |
|---|---|---|---|---|
id |
path | string | oui |
Corps de la requête
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
displayName |
string ou null | non | |
includeStartScript |
boolean | non | |
expiresInDays |
integer ou null | non |
Exemple de requête (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")Outil en ligne de commande: apidly templates (Référence de la CLI)
Exemple de réponse (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"
}
}Statuts d'erreur: 400, 401, 403, 404, 409, 429.
DELETE /templates/{id}/share
Révoquer les liens de partage d'un modèle
Revokes one link with ?shareId=, or every active link of the template when omitted.
Scope requis: full · Permission: templates.manage
Paramètres
| Nom | Dans | Type | Obligatoire | Description |
|---|---|---|---|---|
id |
path | string | oui |
Exemple de requête (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")Outil en ligne de commande: apidly templates (Référence de la CLI)
Exemple de réponse (200)
{
"revoked": 1
}Statuts d'erreur: 401, 403, 404, 429.
GET /templates/{id}/share
Liens de partage d'un modèle
Scope requis: full · Permission: templates.manage
Paramètres
| Nom | Dans | Type | Obligatoire | Description |
|---|---|---|---|---|
id |
path | string | oui |
Exemple de requête (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")Outil en ligne de commande: apidly templates (Référence de la CLI)
Exemple de réponse (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"
}
]
}Statuts d'erreur: 401, 403, 404, 429.
POST /templates/{id}/duplicate
Copier un modèle de votre organisation
Scope requis: full · Permission: templates.manage
Paramètres
| Nom | Dans | Type | Obligatoire | Description |
|---|---|---|---|---|
id |
path | string | oui |
Exemple de requête (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")Outil en ligne de commande: apidly templates (Référence de la CLI)
Exemple de réponse (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"
}
}Statuts d'erreur: 401, 403, 404, 409, 429.
GET /templates/{id}/revisions
Historique des révisions d'un modèle, de la plus récente à la plus ancienne
Secret values are never included.
Scope requis: read
Paramètres
| Nom | Dans | Type | Obligatoire | Description |
|---|---|---|---|---|
id |
path | string | oui |
Exemple de requête (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")Outil en ligne de commande: apidly templates (Référence de la CLI)
Exemple de réponse (200)
{
"revisions": [
{
"rev": 1,
"kind": "example",
"restoredFrom": 1,
"createdAt": "2026-11-21T10:00:00.000Z",
"createdByName": "example",
"current": false,
"servers": 1,
"snapshot": {
"key": null
}
}
]
}Statuts d'erreur: 401, 403, 404, 429.
POST /templates/{id}/revisions/{rev}/restore
Restaurer une ancienne révision comme nouvelle révision
History is never rewritten: the restored copy becomes the newest revision.
Scope requis: full · Permission: templates.manage
Paramètres
| Nom | Dans | Type | Obligatoire | Description |
|---|---|---|---|---|
id |
path | string | oui | |
rev |
path | string | oui |
Exemple de requête (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")Outil en ligne de commande: apidly templates (Référence de la CLI)
Exemple de réponse (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
}Statuts d'erreur: 401, 403, 404, 429.
GET /templates/{id}/export
Exporter un modèle dans un fichier portable
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 requis: full · Permission: templates.manage
Paramètres
| Nom | Dans | Type | Obligatoire | Description |
|---|---|---|---|---|
id |
path | string | oui |
Exemple de requête (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")Outil en ligne de commande: apidly templates (Référence de la CLI)
Exemple de réponse (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
}
}Statuts d'erreur: 401, 403, 404, 409, 429.
POST /templates/import
Créer un modèle à partir d'un fichier exporté
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 requis: full · Permission: templates.manage · Répétable en toute sécurité avec: Idempotency-Key
Corps de la requête
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
json |
string | oui |
Exemple de requête (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")Outil en ligne de commande: apidly templates (Référence de la CLI)
Exemple de réponse (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"
}
}Statuts d'erreur: 400, 401, 403, 409, 429.
POST /template-shares/{token}/import
Copier un modèle partagé dans votre organisation
token is the 32-character token of a share link (/t/{token}). 404 when the link is revoked, expired or unknown.
Scope requis: full · Permission: templates.manage · Répétable en toute sécurité avec: Idempotency-Key
Paramètres
| Nom | Dans | Type | Obligatoire | Description |
|---|---|---|---|---|
token |
path | string | oui |
Exemple de requête (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")Outil en ligne de commande: apidly templates (Référence de la CLI)
Exemple de réponse (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"
}
}Statuts d'erreur: 401, 403, 404, 409, 429.
POST /template-shares/{token}/report
Signaler un modèle partagé à notre équipe (10 par heure au maximum par organisation)
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 requis: servers · Répétable en toute sécurité avec: Idempotency-Key
Paramètres
| Nom | Dans | Type | Obligatoire | Description |
|---|---|---|---|---|
token |
path | string | oui |
Corps de la requête
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
details |
string | non | |
reason |
malware | illegal | secrets | other |
oui |
Exemple de requête (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")Outil en ligne de commande: apidly templates (Référence de la CLI)
Exemple de réponse (201)
{
"ticketId": "id_example"
}Statuts d'erreur: 400, 401, 403, 404, 429.
Prêt à l’essayer ?
Créez un compte gratuit et ajoutez du crédit quand vous voulez démarrer un serveur. La recharge minimale est de 10 $.
Cette page vous a-t-elle été utile ?