Skip to content
ver .md sin procesar

Plataforma de comandos

La plataforma de comandos (programación, almacenamiento, eventos, actividad). Todos los endpoints requieren API key + Exchange Token.

POST/v1/auth/fetch-command-exchange-token/API key

Mint an exchange token for command-platform calls

Body: command_uuid, target_user_uuid. Response: exchange_token, expires_at.

Errores

EstadoCuándo
401Missing/invalid/expired credential
403Authenticated but not permitted
429Throttled - Retry-After header set
400Validation error
curl -sS -X POST 'https://api.dailybot.com/v1/auth/fetch-command-exchange-token/' -H 'X-API-KEY: $DAILYBOT_API_KEY'

Probarlo

Este es un asistente de solo copia — la solicitud no se envía desde tu navegador. Pega el comando en tu terminal para ejecutarlo.

GET/v1/platform/scheduling/API keyExchange token

List scheduled command runs

API-Key + X-EXCHANGE-TOKEN required. CLI Bearer is rejected on the platform surface.

Errores

EstadoCuándo
401Missing/invalid/expired credential
403Authenticated but not permitted
429Throttled - Retry-After header set
400Validation error
404Not found or not visible
curl -sS -X GET 'https://api.dailybot.com/v1/platform/scheduling/' -H 'X-API-KEY: $DAILYBOT_API_KEY'

Probarlo

Este es un asistente de solo copia — la solicitud no se envía desde tu navegador. Pega el comando en tu terminal para ejecutarlo.

POST/v1/platform/scheduling/API keyExchange token

Schedule a command run

API-Key + X-EXCHANGE-TOKEN required. CLI Bearer is rejected on the platform surface.

Errores

EstadoCuándo
401Missing/invalid/expired credential
403Authenticated but not permitted
429Throttled - Retry-After header set
400Validation error
404Not found or not visible
curl -sS -X POST 'https://api.dailybot.com/v1/platform/scheduling/' -H 'X-API-KEY: $DAILYBOT_API_KEY'

Probarlo

Este es un asistente de solo copia — la solicitud no se envía desde tu navegador. Pega el comando en tu terminal para ejecutarlo.

GET/v1/platform/scheduling/{pk}/API keyExchange token

Retrieve a scheduled run

API-Key + X-EXCHANGE-TOKEN required. CLI Bearer is rejected on the platform surface.

Parámetros de ruta

NombreTipoRequeridoDescripción
pkstring (uuid)Requerido

Errores

EstadoCuándo
401Missing/invalid/expired credential
403Authenticated but not permitted
429Throttled - Retry-After header set
400Validation error
404Not found or not visible
curl -sS -X GET 'https://api.dailybot.com/v1/platform/scheduling/{pk}/' -H 'X-API-KEY: $DAILYBOT_API_KEY'

Probarlo

Este es un asistente de solo copia — la solicitud no se envía desde tu navegador. Pega el comando en tu terminal para ejecutarlo.

PUT/v1/platform/scheduling/{pk}/API keyExchange token

Replace a scheduled run

API-Key + X-EXCHANGE-TOKEN required. CLI Bearer is rejected on the platform surface.

Parámetros de ruta

NombreTipoRequeridoDescripción
pkstring (uuid)Requerido

Errores

EstadoCuándo
401Missing/invalid/expired credential
403Authenticated but not permitted
429Throttled - Retry-After header set
400Validation error
404Not found or not visible
curl -sS -X PUT 'https://api.dailybot.com/v1/platform/scheduling/{pk}/' -H 'X-API-KEY: $DAILYBOT_API_KEY'

Probarlo

Este es un asistente de solo copia — la solicitud no se envía desde tu navegador. Pega el comando en tu terminal para ejecutarlo.

DELETE/v1/platform/scheduling/{pk}/API keyExchange token

Cancel a scheduled run

API-Key + X-EXCHANGE-TOKEN required. CLI Bearer is rejected on the platform surface.

Parámetros de ruta

NombreTipoRequeridoDescripción
pkstring (uuid)Requerido

Errores

EstadoCuándo
401Missing/invalid/expired credential
403Authenticated but not permitted
429Throttled - Retry-After header set
400Validation error
404Not found or not visible
curl -sS -X DELETE 'https://api.dailybot.com/v1/platform/scheduling/{pk}/' -H 'X-API-KEY: $DAILYBOT_API_KEY'

Probarlo

Este es un asistente de solo copia — la solicitud no se envía desde tu navegador. Pega el comando en tu terminal para ejecutarlo.

GET/v1/platform/storage/API keyExchange token

Read command-scoped storage

API-Key + X-EXCHANGE-TOKEN required. CLI Bearer is rejected on the platform surface.

Errores

EstadoCuándo
401Missing/invalid/expired credential
403Authenticated but not permitted
429Throttled - Retry-After header set
400Validation error
404Not found or not visible
curl -sS -X GET 'https://api.dailybot.com/v1/platform/storage/' -H 'X-API-KEY: $DAILYBOT_API_KEY'

Probarlo

Este es un asistente de solo copia — la solicitud no se envía desde tu navegador. Pega el comando en tu terminal para ejecutarlo.

POST/v1/platform/storage/API keyExchange token

Write command-scoped storage

API-Key + X-EXCHANGE-TOKEN required. CLI Bearer is rejected on the platform surface.

Errores

EstadoCuándo
401Missing/invalid/expired credential
403Authenticated but not permitted
429Throttled - Retry-After header set
400Validation error
404Not found or not visible
curl -sS -X POST 'https://api.dailybot.com/v1/platform/storage/' -H 'X-API-KEY: $DAILYBOT_API_KEY'

Probarlo

Este es un asistente de solo copia — la solicitud no se envía desde tu navegador. Pega el comando en tu terminal para ejecutarlo.

DELETE/v1/platform/storage/API keyExchange token

Clear command-scoped storage

API-Key + X-EXCHANGE-TOKEN required. CLI Bearer is rejected on the platform surface.

Errores

EstadoCuándo
401Missing/invalid/expired credential
403Authenticated but not permitted
429Throttled - Retry-After header set
400Validation error
404Not found or not visible
curl -sS -X DELETE 'https://api.dailybot.com/v1/platform/storage/' -H 'X-API-KEY: $DAILYBOT_API_KEY'

Probarlo

Este es un asistente de solo copia — la solicitud no se envía desde tu navegador. Pega el comando en tu terminal para ejecutarlo.

GET/v1/platform/event-subscription/API keyExchange token

List command event subscriptions

API-Key + X-EXCHANGE-TOKEN required. CLI Bearer is rejected on the platform surface.

Errores

EstadoCuándo
401Missing/invalid/expired credential
403Authenticated but not permitted
429Throttled - Retry-After header set
400Validation error
404Not found or not visible
curl -sS -X GET 'https://api.dailybot.com/v1/platform/event-subscription/' -H 'X-API-KEY: $DAILYBOT_API_KEY'

Probarlo

Este es un asistente de solo copia — la solicitud no se envía desde tu navegador. Pega el comando en tu terminal para ejecutarlo.

POST/v1/platform/event-subscription/API keyExchange token

Create a command event subscription

API-Key + X-EXCHANGE-TOKEN required. CLI Bearer is rejected on the platform surface.

Errores

EstadoCuándo
401Missing/invalid/expired credential
403Authenticated but not permitted
429Throttled - Retry-After header set
400Validation error
404Not found or not visible
curl -sS -X POST 'https://api.dailybot.com/v1/platform/event-subscription/' -H 'X-API-KEY: $DAILYBOT_API_KEY'

Probarlo

Este es un asistente de solo copia — la solicitud no se envía desde tu navegador. Pega el comando en tu terminal para ejecutarlo.

DELETE/v1/platform/event-subscription/API keyExchange token

Delete a command event subscription

API-Key + X-EXCHANGE-TOKEN required. CLI Bearer is rejected on the platform surface.

Errores

EstadoCuándo
401Missing/invalid/expired credential
403Authenticated but not permitted
429Throttled - Retry-After header set
400Validation error
404Not found or not visible
curl -sS -X DELETE 'https://api.dailybot.com/v1/platform/event-subscription/' -H 'X-API-KEY: $DAILYBOT_API_KEY'

Probarlo

Este es un asistente de solo copia — la solicitud no se envía desde tu navegador. Pega el comando en tu terminal para ejecutarlo.

GET/v1/platform/activity/API keyExchange token

Read command activity feed

API-Key + X-EXCHANGE-TOKEN required. CLI Bearer is rejected on the platform surface.

Errores

EstadoCuándo
401Missing/invalid/expired credential
403Authenticated but not permitted
429Throttled - Retry-After header set
400Validation error
404Not found or not visible
curl -sS -X GET 'https://api.dailybot.com/v1/platform/activity/' -H 'X-API-KEY: $DAILYBOT_API_KEY'

Probarlo

Este es un asistente de solo copia — la solicitud no se envía desde tu navegador. Pega el comando en tu terminal para ejecutarlo.

POST/v1/platform/activity/API keyExchange token

Append to the command activity feed

API-Key + X-EXCHANGE-TOKEN required. CLI Bearer is rejected on the platform surface.

Errores

EstadoCuándo
401Missing/invalid/expired credential
403Authenticated but not permitted
429Throttled - Retry-After header set
400Validation error
404Not found or not visible
curl -sS -X POST 'https://api.dailybot.com/v1/platform/activity/' -H 'X-API-KEY: $DAILYBOT_API_KEY'

Probarlo

Este es un asistente de solo copia — la solicitud no se envía desde tu navegador. Pega el comando en tu terminal para ejecutarlo.

Plataforma de comandos

Endpoints públicos de la API para ejecución programada de comandos, almacenamiento, suscripción a eventos, seguimiento de actividad y obtención de un token de intercambio. Todos requieren el header X-API-KEY. Muchos endpoints requieren un token de intercambio (del contexto del comando o de POST /v1/auth/fetch-command-exchange-token/).

Resumen de endpoints

Método Endpoint Descripción
POST /v1/scheduler/ Programar un comando para ejecutarse en un momento futuro
GET /v1/scheduler/ Listar trabajos de comandos programados
GET /v1/scheduler/{id}/ Obtener un trabajo programado
DELETE /v1/scheduler/{id}/ Cancelar un trabajo programado
POST /v1/storage/ Escribir un par clave-valor
GET /v1/storage/{key}/ Leer un par clave-valor
DELETE /v1/storage/{key}/ Eliminar un par clave-valor
POST /v1/events/subscribe/ Suscribirse a un evento
DELETE /v1/events/subscribe/{id}/ Cancelar suscripción a un evento
POST /v1/activity/ Enviar una entrada de actividad
POST /v1/auth/fetch-command-exchange-token/ Obtener un token de intercambio para un usuario

Programación

POST /v1/scheduler/

Programa un comando para ejecutarse en un momento futuro.

curl -X POST "https://api.dailybot.com/v1/scheduler/" \
  -H "X-API-KEY: tu_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "command_intent": "send_report",
    "run_at": "2026-04-10T09:00:00Z",
    "user_uuid": "user-uuid",
    "params": { "report_type": "weekly" }
  }'

Respuesta (201 Created):

{
  "id": "job-uuid",
  "command_intent": "send_report",
  "run_at": "2026-04-10T09:00:00Z",
  "status": "scheduled"
}

GET /v1/scheduler/

Lista todos los trabajos de comandos programados para la organización.

curl -X GET "https://api.dailybot.com/v1/scheduler/" \
  -H "X-API-KEY: tu_api_key"

DELETE /v1/scheduler/{id}/

Cancela un trabajo programado.

curl -X DELETE "https://api.dailybot.com/v1/scheduler/job-uuid/" \
  -H "X-API-KEY: tu_api_key"

Almacenamiento

POST /v1/storage/

Escribe un par clave-valor. Los datos tienen ámbito para el usuario y la organización.

curl -X POST "https://api.dailybot.com/v1/storage/" \
  -H "X-API-KEY: tu_api_key" \
  -H "Content-Type: application/json" \
  -d '{"key": "user_preferences", "value": {"theme": "dark"}}'

GET /v1/storage/{key}/

Lee un par clave-valor.

curl -X GET "https://api.dailybot.com/v1/storage/user_preferences/" \
  -H "X-API-KEY: tu_api_key"

Respuesta (200 OK):

{ "key": "user_preferences", "value": { "theme": "dark" } }

DELETE /v1/storage/{key}/

Elimina un par clave-valor.

curl -X DELETE "https://api.dailybot.com/v1/storage/user_preferences/" \
  -H "X-API-KEY: tu_api_key"

Suscripción a eventos

POST /v1/events/subscribe/

Suscribe a un tipo de evento para el usuario autenticado.

curl -X POST "https://api.dailybot.com/v1/events/subscribe/" \
  -H "X-API-KEY: tu_api_key" \
  -H "Content-Type: application/json" \
  -d '{"event_type": "check_in.completed", "webhook_url": "https://tu-app.com/eventos"}'

DELETE /v1/events/subscribe/{id}/

Cancela la suscripción a un evento.

curl -X DELETE "https://api.dailybot.com/v1/events/subscribe/sub-uuid/" \
  -H "X-API-KEY: tu_api_key"

Actividad

POST /v1/activity/

Envía una entrada de actividad vinculada al usuario autenticado.

curl -X POST "https://api.dailybot.com/v1/activity/" \
  -H "X-API-KEY: tu_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "activity_type": "commit",
    "description": "Pushed 3 commits to main",
    "metadata": { "repo": "my-repo", "commits": 3 }
  }'

Respuesta (201 Created):

{
  "id": "activity-uuid",
  "activity_type": "commit",
  "description": "Pushed 3 commits to main",
  "created_at": "2026-04-06T10:00:00Z"
}

POST /v1/auth/fetch-command-exchange-token/

Obtiene un token de intercambio que permite hacer llamadas API en nombre de un usuario específico. Requiere que tu API key tenga los permisos necesarios.

curl -X POST "https://api.dailybot.com/v1/auth/fetch-command-exchange-token/" \
  -H "X-API-KEY: tu_api_key" \
  -H "Content-Type: application/json" \
  -d '{"user_uuid": "target-user-uuid"}'

Respuesta (200 OK):

{
  "exchange_token": "eyJ...",
  "expires_at": "2026-04-06T11:00:00Z"
}

La autenticación por Token de Intercambio está deshabilitada por defecto. Contacta a soporte para habilitarla en tu organización.