Saltar al contenido principal
Apidly Cloud
Política de cookies

Las cookies de analítica y publicidad siguen desactivadas salvo que las aceptes. Política de cookies

Queremos usar Google Analytics y Microsoft Clarity para entender cómo se usan las páginas públicas, incluidas las visitas y las grabaciones de sesión, y Reddit Pixel para medir si nuestros anuncios en Reddit generan visitas y registros. Tú eliges aquí si están activadas. Rechazar no cambia el funcionamiento del sitio.

Referencia de la API: Cuenta y equipo

Operaciones de la API v1 de Cuenta y equipo: scope, parámetros, ejemplos en curl, JavaScript y Python, y respuestas.

Última actualización: 21 de noviembre de 202614 min de lectura
Ver como Markdown

Cuenta y equipo: todas las operaciones de la API v1 con su scope, parámetros, ejemplos en curl, JavaScript y Python, y respuestas. La autenticación, los errores, la paginación, los límites y la idempotencia están en la vista general de la referencia de la API; consulta también los SDK y la línea de comandos.

Pruébalo con tu clave: crea una clave de API en la consola, ejecuta export APIDLY_API_KEY=... en tu terminal y pega cualquier ejemplo de curl de abajo. Los valores de ejemplo son ilustrativos. En esta página no hay ningún campo para introducir una clave.

Las descripciones de las operaciones y de los campos vienen de la definición de la API y están en inglés.

Operación Scope necesario Resumen
GET /me read La organización, la clave y el monedero
GET /team/members read Miembros de la organización
GET /team/roles full Roles integrados y personalizados con sus permisos
POST /team/roles full Crear un rol personalizado
GET /notification-preferences read Interruptores de notificación
PUT /notification-preferences full Cambiar los interruptores de notificación
GET /activity read El registro de actividad de la organización, del más reciente al más antiguo
GET /team/invitations full Invitaciones pendientes, de la más reciente a la más antigua
POST /team/invitations full Invitar a una persona por correo electrónico
DELETE /team/invitations/{id} full Revocar una invitación pendiente
PATCH /team/members/{userId} full Cambiar el rol de un miembro
DELETE /team/members/{userId} full Quitar a un miembro de la organización
PUT /team/members/{userId}/spending-limit full Fijar o quitar el límite de gasto mensual de un miembro
PATCH /team/roles/{id} full Reemplazar nombre, descripción y permisos de un rol personalizado
DELETE /team/roles/{id} full Eliminar un rol personalizado
POST /team/invitations/{id}/resend full Reenviar una invitación
GET /notifications read Notificaciones dentro de la aplicación del miembro en cuyo nombre actúa la clave
POST /notifications/read servers Marcar como leídas todas las notificaciones dentro de la aplicación
PATCH /organization full Cambiar el nombre de la organización o su correo de facturación o su país
GET /organization/defaults read Valores predeterminados de lanzamiento de la organización
PATCH /organization/defaults full Cambiar los valores predeterminados de lanzamiento
GET /me/profile full El perfil del miembro de la clave
PATCH /me/profile full Cambiar el nombre visible, el idioma o la zona horaria
GET /activity/export read El registro de actividad como archivo CSV
GET /openapi.json read Este documento

Cuenta

GET /me

La organización, la clave y el monedero

A per-server token (apc_srv_..., from "Allow this server to stop itself") may call this too; it then gets { org, key: { kind: "server" }, server } without a balance.

Scope necesario: read

Solicitud de ejemplo (curl)

curl "https://apidly.com/api/v1/me" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

Python (SDK)

client.me()

Herramienta de línea de comandos: apidly init, apidly status, apidly login, apidly whoami, apidly doctor (Referencia de la CLI)

Respuesta de ejemplo (200)

{
  "org": {
    "id": "example",
    "name": "example",
    "slug": "example",
    "status": "example",
    "requireTwoFactor": false,
    "memberEmailsVisible": false
  },
  "key": {
    "id": "example",
    "name": "example",
    "prefix": "example",
    "scope": "read",
    "expiresAt": "2026-11-21T10:00:00.000Z",
    "createdAt": "2026-11-21T10:00:00.000Z",
    "creatorRole": "owner",
    "permissions": [
      "example"
    ],
    "permissionList": [
      "example"
    ]
  },
  "balance": {
    "balanceMicros": "1000000",
    "balanceUsd": "1.000000",
    "burnPerHourMicros": "1000000",
    "burnPerHourUsd": "1.000000",
    "runwayHours": 1,
    "state": "ok",
    "graceUntil": "2026-11-21T10:00:00.000Z",
    "monthToDateMicros": "1000000",
    "monthToDateUsd": "1.000000"
  }
}

Estados de error: 401, 403, 429.

GET /team/members

Miembros de la organización

Scope necesario: read

Parámetros

Nombre En Tipo Obligatorio Descripción
limit query integer no
cursor query string no

Solicitud de ejemplo (curl)

curl "https://apidly.com/api/v1/team/members?limit=20" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

Python (SDK)

client.team.list_members()

Herramienta de línea de comandos: apidly team (Referencia de la CLI)

Respuesta de ejemplo (200)

{
  "members": [
    {
      "userId": "id_example",
      "name": "example",
      "email": "dev@example.com",
      "role": "owner",
      "roleId": "id_example",
      "roleName": "example",
      "permissions": [
        "example"
      ],
      "joinedAt": "2026-11-21T10:00:00.000Z",
      "spendingLimit": {
        "monthlyLimitMicros": "1000000",
        "monthlyLimitUsd": "1.000000",
        "monthToDateMicros": "1000000",
        "monthToDateUsd": "1.000000"
      }
    }
  ],
  "nextCursor": "example"
}

Estados de error: 401, 403, 429.

GET /team/roles

Roles integrados y personalizados con sus permisos

Scope necesario: full · Permiso: team.manage

Solicitud de ejemplo (curl)

curl "https://apidly.com/api/v1/team/roles" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

Python (SDK)

client.team.list_roles()

Herramienta de línea de comandos: apidly team (Referencia de la CLI)

Respuesta de ejemplo (200)

{
  "roles": [
    {
      "id": "example",
      "name": "example",
      "description": "example",
      "builtin": false,
      "permissions": [
        "example"
      ],
      "memberCount": 1
    }
  ]
}

Estados de error: 401, 403, 429.

POST /team/roles

Crear un rol personalizado

At most 10 per organization. The key's creator must be the owner, and cannot grant permissions they lack.

Scope necesario: full · Permiso: team.manage

Cuerpo de la solicitud

Nombre Tipo Obligatorio Descripción
name string sí
description string no
permissions array de servers.view | servers.deploy | servers.manage | servers.destroy | servers.exec | templates.manage | endpoints.manage | endpoints.invoke | storage.manage | ssh_keys.manage | secrets.manage | api_keys.manage | webhooks.manage | automation.manage | billing.view | billing.topup | billing.manage | team.manage | settings.manage | activity.view sí

Solicitud de ejemplo (curl)

curl -X POST "https://apidly.com/api/v1/team/roles" \
  -H "Authorization: Bearer $APIDLY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"example","permissions":["servers.view"]}'

Python (SDK)

client.team.create_role(name="example", permissions=["servers.view"])

Herramienta de línea de comandos: apidly team (Referencia de la CLI)

Respuesta de ejemplo (201)

{
  "role": {
    "id": "example",
    "name": "example",
    "description": "example",
    "builtin": false,
    "permissions": [
      "example"
    ],
    "memberCount": 1
  }
}

Estados de error: 400, 401, 403, 409, 429.

GET /notification-preferences

Interruptores de notificación

Email and in-app switches and the running-server reminder belong to the member the key acts as; the webhook switch belongs to the organization.

Scope necesario: read

Solicitud de ejemplo (curl)

curl "https://apidly.com/api/v1/notification-preferences" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

JavaScript (SDK)

await apidly.notifications.get();

Python (SDK)

client.notifications.get()

Herramienta de línea de comandos: apidly notifications (Referencia de la CLI)

Respuesta de ejemplo (200)

{
  "categories": [
    {
      "id": "example",
      "forcedMail": false,
      "email": {
        "value": false
      },
      "inApp": {
        "value": false
      },
      "webhook": {
        "value": false
      },
      "webhookEvents": [
        "example"
      ]
    }
  ],
  "runningReminderHours": 1,
  "weeklySummary": false,
  "canEditWebhooks": false
}

Estados de error: 401, 403, 429.

PUT /notification-preferences

Cambiar los interruptores de notificación

org rows (webhook) need webhook management; categories you leave out are unchanged.

Scope necesario: full

Cuerpo de la solicitud

Nombre Tipo Obligatorio Descripción
weeklySummary boolean no
runningReminderHours integer o null no
user object no
org object no

Solicitud de ejemplo (curl)

curl -X PUT "https://apidly.com/api/v1/notification-preferences" \
  -H "Authorization: Bearer $APIDLY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"weeklySummary":false,"runningReminderHours":1,"user":{}}'

JavaScript (SDK)

await apidly.notifications.set({
  weeklySummary: false,
  runningReminderHours: 1,
  user: {}
});

Python (SDK)

client.notifications.set(body={
    "weeklySummary": False,
    "runningReminderHours": 1,
    "user": {},
})

Herramienta de línea de comandos: apidly notifications (Referencia de la CLI)

Respuesta de ejemplo (200)

{
  "categories": [
    {
      "id": "example",
      "forcedMail": false,
      "email": {
        "value": false
      },
      "inApp": {
        "value": false
      },
      "webhook": {
        "value": false
      },
      "webhookEvents": [
        "example"
      ]
    }
  ],
  "runningReminderHours": 1,
  "weeklySummary": false,
  "canEditWebhooks": false
}

Estados de error: 400, 401, 403, 429.

GET /activity

El registro de actividad de la organización, del más reciente al más antiguo

Addresses are masked to the /24 unless the key's creator is the owner.

Scope necesario: read · Permiso: activity.view

Parámetros

Nombre En Tipo Obligatorio Descripción
actor query string no Exactly one actor id: a member user id or an API key id.
category query signIn | team | keys | servers | billing | settings no
cursor query string no
from query string no YYYY-MM-DD, UTC.
to query string no YYYY-MM-DD, UTC, inclusive.
limit query integer no

Solicitud de ejemplo (curl)

curl "https://apidly.com/api/v1/activity?limit=20" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

JavaScript (SDK)

await apidly.activity.list({ limit: 20 });

Python (SDK)

client.activity.list()

Herramienta de línea de comandos: apidly activity (Referencia de la CLI)

Respuesta de ejemplo (200)

{
  "activity": [
    {
      "id": "example",
      "at": "2026-11-21T10:00:00.000Z",
      "category": "signIn",
      "action": "example",
      "actor": {
        "kind": "example",
        "label": "example"
      },
      "ip": "example",
      "params": {
        "key": null
      }
    }
  ],
  "nextCursor": "example"
}

Estados de error: 401, 403, 429.

GET /team/invitations

Invitaciones pendientes, de la más reciente a la más antigua

Scope necesario: full · Permiso: team.manage

Parámetros

Nombre En Tipo Obligatorio Descripción
limit query integer no
cursor query string no

Solicitud de ejemplo (curl)

curl "https://apidly.com/api/v1/team/invitations?limit=20" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

Python (SDK)

client.team.list_invitations()

Herramienta de línea de comandos: apidly team (Referencia de la CLI)

Respuesta de ejemplo (200)

{
  "invitations": [
    {
      "id": "example",
      "email": "dev@example.com",
      "role": "owner",
      "roleKey": "example",
      "roleName": "example",
      "customRoleId": "id_example",
      "customRoleName": "example",
      "invitedByName": "example",
      "invitedByEmail": "dev@example.com",
      "expiresAt": "2026-11-21T10:00:00.000Z",
      "createdAt": "2026-11-21T10:00:00.000Z",
      "expired": false,
      "mailSent": false
    }
  ],
  "nextCursor": "example"
}

Estados de error: 401, 403, 429.

POST /team/invitations

Invitar a una persona por correo electrónico

role is admin, member (default) or a custom role id from GET /team/roles. The key's creator cannot grant permissions they lack (403 role_escalation). The invitation mail is sent and the link is valid for 7 days.

Scope necesario: full · Permiso: team.manage · Se puede repetir con: Idempotency-Key

Cuerpo de la solicitud

Nombre Tipo Obligatorio Descripción
email string sí
role string no

Solicitud de ejemplo (curl)

curl -X POST "https://apidly.com/api/v1/team/invitations" \
  -H "Authorization: Bearer $APIDLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"email":"dev@example.com"}'

Python (SDK)

client.team.invite(email="dev@example.com")

Herramienta de línea de comandos: apidly team (Referencia de la CLI)

Respuesta de ejemplo (201)

{
  "invitation": {
    "id": "example",
    "email": "dev@example.com",
    "role": "owner",
    "roleKey": "example",
    "roleName": "example",
    "customRoleId": "id_example",
    "customRoleName": "example",
    "invitedByName": "example",
    "invitedByEmail": "dev@example.com",
    "expiresAt": "2026-11-21T10:00:00.000Z",
    "createdAt": "2026-11-21T10:00:00.000Z",
    "expired": false,
    "mailSent": false
  }
}

Estados de error: 400, 401, 403, 409, 422, 429.

DELETE /team/invitations/{id}

Revocar una invitación pendiente

Scope necesario: full · Permiso: team.manage

Parámetros

Nombre En Tipo Obligatorio Descripción
id path string sí

Solicitud de ejemplo (curl)

curl -X DELETE "https://apidly.com/api/v1/team/invitations/team_example" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

Python (SDK)

client.team.revoke_invitation("team_example")

Herramienta de línea de comandos: apidly team (Referencia de la CLI)

Respuesta de ejemplo (200)

{
  "deleted": false,
  "id": "example"
}

Estados de error: 401, 403, 404, 429.

PATCH /team/members/{userId}

Cambiar el rol de un miembro

Same rules as the console: no escalation beyond the key creator's own permissions (403 role_escalation), the last owner keeps the role (403 last_owner).

Scope necesario: full · Permiso: team.manage

Parámetros

Nombre En Tipo Obligatorio Descripción
userId path string sí

Cuerpo de la solicitud

Nombre Tipo Obligatorio Descripción
role string sí

Solicitud de ejemplo (curl)

curl -X PATCH "https://apidly.com/api/v1/team/members/team_example" \
  -H "Authorization: Bearer $APIDLY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"role":"example"}'

Python (SDK)

client.team.update_member("team_example", role="example")

Herramienta de línea de comandos: apidly team (Referencia de la CLI)

Respuesta de ejemplo (200)

{
  "userId": "id_example",
  "role": "owner",
  "roleKey": "example",
  "roleName": "example"
}

Estados de error: 400, 401, 403, 404, 429.

DELETE /team/members/{userId}

Quitar a un miembro de la organización

A key cannot remove the member who created it (403 forbidden); leave from the console.

Scope necesario: full · Permiso: team.manage

Parámetros

Nombre En Tipo Obligatorio Descripción
userId path string sí

Solicitud de ejemplo (curl)

curl -X DELETE "https://apidly.com/api/v1/team/members/team_example" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

Python (SDK)

client.team.remove_member("team_example")

Herramienta de línea de comandos: apidly team (Referencia de la CLI)

Respuesta de ejemplo (200)

{
  "deleted": false,
  "userId": "id_example"
}

Estados de error: 401, 403, 404, 429.

PUT /team/members/{userId}/spending-limit

Fijar o quitar el límite de gasto mensual de un miembro

monthlyLimitCents in US cents; null removes the limit. A member's month-to-date usage is the usage this UTC month of the servers they launched, from the console or with any key. At the limit, their new launches (servers, copies, launch again) and the starts of their stopped servers answer 403 member_limit_reached until the limit is raised or the month ends; servers already running are not stopped, and workers that a serverless endpoint or server group starts by itself are not refused. Needs team.manage and billing.manage. Only an owner may change their own limit (403 forbidden). 404 not_found for someone who is not a member; 404 feature_unavailable while spending limits are not available.

Scope necesario: full · Permiso: team.manage

Parámetros

Nombre En Tipo Obligatorio Descripción
userId path string sí

Cuerpo de la solicitud

Nombre Tipo Obligatorio Descripción
monthlyLimitCents integer o null sí

Solicitud de ejemplo (curl)

curl -X PUT "https://apidly.com/api/v1/team/members/team_example/spending-limit" \
  -H "Authorization: Bearer $APIDLY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"monthlyLimitCents":1}'

Python (SDK)

client.team.set_member_spending_limit("team_example", monthly_limit_cents=1)

Herramienta de línea de comandos: apidly team (Referencia de la CLI)

Respuesta de ejemplo (200)

{
  "userId": "id_example",
  "spendingLimit": {
    "monthlyLimitMicros": "1000000",
    "monthlyLimitUsd": "1.000000",
    "monthToDateMicros": "1000000",
    "monthToDateUsd": "1.000000"
  }
}

Estados de error: 400, 401, 403, 404, 429.

PATCH /team/roles/{id}

Reemplazar nombre, descripción y permisos de un rol personalizado

Every member who holds the role follows the new permissions on their next request. Owner only.

Scope necesario: full · Permiso: team.manage

Parámetros

Nombre En Tipo Obligatorio Descripción
id path string sí

Cuerpo de la solicitud

Nombre Tipo Obligatorio Descripción
name string sí
description string no
permissions array de servers.view | servers.deploy | servers.manage | servers.destroy | servers.exec | templates.manage | endpoints.manage | endpoints.invoke | storage.manage | ssh_keys.manage | secrets.manage | api_keys.manage | webhooks.manage | automation.manage | billing.view | billing.topup | billing.manage | team.manage | settings.manage | activity.view sí

Solicitud de ejemplo (curl)

curl -X PATCH "https://apidly.com/api/v1/team/roles/team_example" \
  -H "Authorization: Bearer $APIDLY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"example","permissions":["servers.view"]}'

Python (SDK)

client.team.update_role("team_example", name="example", permissions=["servers.view"])

Herramienta de línea de comandos: apidly team (Referencia de la CLI)

Respuesta de ejemplo (200)

{
  "role": {
    "id": "example",
    "name": "example",
    "description": "example",
    "builtin": false,
    "permissions": [
      "example"
    ],
    "memberCount": 1
  }
}

Estados de error: 400, 401, 403, 404, 429.

DELETE /team/roles/{id}

Eliminar un rol personalizado

409 role_in_use while members or invitations hold it. Owner only.

Scope necesario: full · Permiso: team.manage

Parámetros

Nombre En Tipo Obligatorio Descripción
id path string sí

Solicitud de ejemplo (curl)

curl -X DELETE "https://apidly.com/api/v1/team/roles/team_example" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

Python (SDK)

client.team.delete_role("team_example")

Herramienta de línea de comandos: apidly team (Referencia de la CLI)

Respuesta de ejemplo (200)

{
  "ok": false
}

Estados de error: 401, 403, 404, 409, 429.

POST /team/invitations/{id}/resend

Reenviar una invitación

A fresh link valid for 7 days; the old link stops working.

Scope necesario: full · Permiso: team.manage

Parámetros

Nombre En Tipo Obligatorio Descripción
id path string sí

Solicitud de ejemplo (curl)

curl -X POST "https://apidly.com/api/v1/team/invitations/team_example/resend" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

Python (SDK)

client.team.resend_invitation("team_example")

Herramienta de línea de comandos: apidly team (Referencia de la CLI)

Respuesta de ejemplo (200)

{
  "id": "example",
  "expiresAt": "2026-11-21T10:00:00.000Z",
  "mailSent": false
}

Estados de error: 401, 403, 404, 429.

GET /notifications

Notificaciones dentro de la aplicación del miembro en cuyo nombre actúa la clave

Newest first, with the unread count.

Scope necesario: read

Parámetros

Nombre En Tipo Obligatorio Descripción
limit query integer no

Solicitud de ejemplo (curl)

curl "https://apidly.com/api/v1/notifications?limit=20" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

JavaScript (SDK)

await apidly.notifications.inbox({ limit: 20 });

Python (SDK)

client.notifications.inbox()

Herramienta de línea de comandos: apidly notifications (Referencia de la CLI)

Respuesta de ejemplo (200)

{
  "items": [
    {
      "id": "example",
      "category": "example",
      "title": "example",
      "path": "example",
      "readAt": "2026-11-21T10:00:00.000Z",
      "createdAt": "2026-11-21T10:00:00.000Z"
    }
  ],
  "unread": 1
}

Estados de error: 400, 401, 403, 429.

POST /notifications/read

Marcar como leídas todas las notificaciones dentro de la aplicación

Scope necesario: servers

Solicitud de ejemplo (curl)

curl -X POST "https://apidly.com/api/v1/notifications/read" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

JavaScript (SDK)

await apidly.notifications.markRead();

Python (SDK)

client.notifications.mark_read()

Herramienta de línea de comandos: apidly notifications (Referencia de la CLI)

Respuesta de ejemplo (200)

{
  "ok": false
}

Estados de error: 401, 403, 429.

PATCH /organization

Cambiar el nombre de la organización o su correo de facturación o su país

Send only the fields to change. country is a two-letter code; billingEmail and country take null to clear.

Scope necesario: full · Permiso: settings.manage

Cuerpo de la solicitud

Nombre Tipo Obligatorio Descripción
name string no
billingEmail string o null no
country string o null no

Solicitud de ejemplo (curl)

curl -X PATCH "https://apidly.com/api/v1/organization" \
  -H "Authorization: Bearer $APIDLY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"example","billingEmail":"dev@example.com","country":"example"}'

JavaScript (SDK)

await apidly.organization.update({
  name: "example",
  billingEmail: "dev@example.com",
  country: "example"
});

Python (SDK)

client.organization.update()

Herramienta de línea de comandos: apidly org (Referencia de la CLI)

Respuesta de ejemplo (200)

{
  "organization": {
    "id": "example",
    "name": "example",
    "billingEmail": "dev@example.com",
    "country": "example"
  }
}

Estados de error: 400, 401, 403, 429.

GET /organization/defaults

Valores predeterminados de lanzamiento de la organización

What every launch starts with when the request leaves it out: sshKeyIds (installed by POST /servers without sshKeyIds, preselected in the console), autoStopHours (when 1 or more, added by POST /servers without automation, and prefilled in the console; 0 and null add no automatic stop to an API launch. The 2-hour stop on an account's first server is a console form default only: while this is null, Quick start and the deploy wizard switch it on in the form and set it on the new server after the launch; POST /servers itself never adds it) and region (a soft preference: Quick start and GET /quickstart suggest a plan offered there when one fits; it never limits where a server runs). Any key may read them.

Scope necesario: read

Solicitud de ejemplo (curl)

curl "https://apidly.com/api/v1/organization/defaults" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

JavaScript (SDK)

await apidly.organization.defaults();

Python (SDK)

client.organization.defaults()

Herramienta de línea de comandos: apidly org (Referencia de la CLI)

Respuesta de ejemplo (200)

{
  "defaults": {
    "sshKeyIds": [
      "example"
    ],
    "autoStopHours": 1,
    "region": "na"
  }
}

Estados de error: 401, 403, 429.

PATCH /organization/defaults

Cambiar los valores predeterminados de lanzamiento

Send only the fields to change; null resets one to not chosen. 400 invalid_ssh_key for a key that is not in this organization.

Scope necesario: full · Permiso: settings.manage

Cuerpo de la solicitud

Nombre Tipo Obligatorio Descripción
sshKeyIds array de string o null no SSH keys preselected on every launch (ids from GET /ssh-keys), used by POST /servers when the request has no sshKeyIds. [] = none; null = not chosen.
autoStopHours integer o null no Automatic stop for new servers after this many hours of running (1 to 720), applied when a launch sends no automation. 0 = no automatic stop; null = not chosen: an API launch then gets no automatic stop (the console's Quick start and deploy wizard still switch on a 2-hour stop in the form for an account's first server and set it after the launch).
region na | eu | ap | other o null no Preferred region (na, eu, ap, other). Soft: only orders plan suggestions, never limits where a server runs. null = no preference.

Solicitud de ejemplo (curl)

curl -X PATCH "https://apidly.com/api/v1/organization/defaults" \
  -H "Authorization: Bearer $APIDLY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sshKeyIds":["example"],"autoStopHours":0,"region":"na"}'

JavaScript (SDK)

await apidly.organization.setDefaults({
  sshKeyIds: [
    "example"
  ],
  autoStopHours: 0,
  region: "na"
});

Python (SDK)

client.organization.set_defaults()

Herramienta de línea de comandos: apidly org (Referencia de la CLI)

Respuesta de ejemplo (200)

{
  "defaults": {
    "sshKeyIds": [
      "example"
    ],
    "autoStopHours": 1,
    "region": "na"
  }
}

Estados de error: 400, 401, 403, 429.

GET /me/profile

El perfil del miembro de la clave

Display name, language and time zone of the member who created the key. The e-mail address, password, two-factor and passkeys are never readable or changeable with an API key: change them in the console, signed in. Notification switches: GET /notification-preferences.

Scope necesario: full

Solicitud de ejemplo (curl)

curl "https://apidly.com/api/v1/me/profile" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

JavaScript (SDK)

await apidly.profile.get();

Python (SDK)

client.profile.get()

Herramienta de línea de comandos: apidly profile (Referencia de la CLI)

Respuesta de ejemplo (200)

{
  "profile": {
    "name": "example",
    "locale": "example",
    "timeZone": "example"
  }
}

Estados de error: 401, 403, 429.

PATCH /me/profile

Cambiar el nombre visible, el idioma o la zona horaria

Send only the fields to change. locale is one of the site's languages; timeZone an IANA name such as Europe/Berlin (null = UTC). Nothing else of the account can change through an API key.

Scope necesario: full

Cuerpo de la solicitud

Nombre Tipo Obligatorio Descripción
name string no Display name, 1 to 80 characters.
locale en | nl | it | es | id | fr | pt-BR | ru | uk | nb | ro | fi | sv | da | cs | hu | tr | ar | vi | th | ko | ja | pl | el | de no Language of mail sent without a request (for example de, pt-BR).
timeZone string o null no IANA time zone (for example Europe/Berlin) for dates in mail; null = UTC. The console shows times in the browser's zone.

Solicitud de ejemplo (curl)

curl -X PATCH "https://apidly.com/api/v1/me/profile" \
  -H "Authorization: Bearer $APIDLY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"example","locale":"en","timeZone":"example"}'

JavaScript (SDK)

await apidly.profile.update({
  name: "example",
  locale: "en",
  timeZone: "example"
});

Python (SDK)

client.profile.update()

Herramienta de línea de comandos: apidly profile (Referencia de la CLI)

Respuesta de ejemplo (200)

{
  "profile": {
    "name": "example",
    "locale": "example",
    "timeZone": "example"
  }
}

Estados de error: 400, 401, 403, 429.

GET /activity/export

El registro de actividad como archivo CSV

Returns text/csv with the same filters as GET /activity (limit is ignored), at most 5,000 rows. Ten exports an hour per key and twenty an hour per organization, across all its keys.

Scope necesario: read · Permiso: activity.view

Parámetros

Nombre En Tipo Obligatorio Descripción
actor query string no
category query signIn | team | keys | servers | billing | settings no
from query string no
to query string no

Solicitud de ejemplo (curl)

curl "https://apidly.com/api/v1/activity/export" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

JavaScript (SDK)

await apidly.activity.export();

Python (SDK)

client.activity.export()

Herramienta de línea de comandos: apidly export (Referencia de la CLI)

Respuesta de ejemplo (200)

text/csv

Estados de error: 400, 401, 403, 429.

Descripción de la API

GET /openapi.json

Este documento

Public: no API key needed.

Scope necesario: read

Solicitud de ejemplo (curl)

curl "https://apidly.com/api/v1/openapi.json" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

Python (SDK)

client.openapi()

Herramienta de línea de comandos: apidly openapi (Referencia de la CLI)

Respuesta de ejemplo (200)

{
  "key": null
}

Estados de error: 401, 403, 429.

¿Listo para probarlo?

Crea una cuenta gratuita y añade crédito cuando quieras iniciar un servidor. La recarga mínima es de 10 $.

Crear una cuenta gratuita

¿Te resultó útil?

¿Sigues atascado? Contáctanos