Plataforma de comandos
A plataforma de comandos (agendamento, armazenamento, eventos, atividade). Todos os endpoints exigem chave de API + Exchange Token.
Nesta página
Mint an exchange token for command-platform calls
Body: command_uuid, target_user_uuid. Response: exchange_token, expires_at.
Erros
| Status | Quando |
|---|---|
| 401 | Missing/invalid/expired credential |
| 403 | Authenticated but not permitted |
| 429 | Throttled - Retry-After header set |
| 400 | Validation error |
curl -sS -X POST 'https://api.dailybot.com/v1/auth/fetch-command-exchange-token/' -H 'X-API-KEY: $DAILYBOT_API_KEY'Testar
Este é um ajudante apenas de cópia — a requisição não é enviada do seu navegador. Cole o comando no seu terminal para executá-lo.
List scheduled command runs
API-Key + X-EXCHANGE-TOKEN required. CLI Bearer is rejected on the platform surface.
Erros
| Status | Quando |
|---|---|
| 401 | Missing/invalid/expired credential |
| 403 | Authenticated but not permitted |
| 429 | Throttled - Retry-After header set |
| 400 | Validation error |
| 404 | Not found or not visible |
curl -sS -X GET 'https://api.dailybot.com/v1/platform/scheduling/' -H 'X-API-KEY: $DAILYBOT_API_KEY'Testar
Este é um ajudante apenas de cópia — a requisição não é enviada do seu navegador. Cole o comando no seu terminal para executá-lo.
Schedule a command run
API-Key + X-EXCHANGE-TOKEN required. CLI Bearer is rejected on the platform surface.
Erros
| Status | Quando |
|---|---|
| 401 | Missing/invalid/expired credential |
| 403 | Authenticated but not permitted |
| 429 | Throttled - Retry-After header set |
| 400 | Validation error |
| 404 | Not found or not visible |
curl -sS -X POST 'https://api.dailybot.com/v1/platform/scheduling/' -H 'X-API-KEY: $DAILYBOT_API_KEY'Testar
Este é um ajudante apenas de cópia — a requisição não é enviada do seu navegador. Cole o comando no seu terminal para executá-lo.
Retrieve a scheduled run
API-Key + X-EXCHANGE-TOKEN required. CLI Bearer is rejected on the platform surface.
Parâmetros de rota
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| pk | string (uuid) | Obrigatório | — |
Erros
| Status | Quando |
|---|---|
| 401 | Missing/invalid/expired credential |
| 403 | Authenticated but not permitted |
| 429 | Throttled - Retry-After header set |
| 400 | Validation error |
| 404 | Not found or not visible |
curl -sS -X GET 'https://api.dailybot.com/v1/platform/scheduling/{pk}/' -H 'X-API-KEY: $DAILYBOT_API_KEY'Testar
Este é um ajudante apenas de cópia — a requisição não é enviada do seu navegador. Cole o comando no seu terminal para executá-lo.
Replace a scheduled run
API-Key + X-EXCHANGE-TOKEN required. CLI Bearer is rejected on the platform surface.
Parâmetros de rota
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| pk | string (uuid) | Obrigatório | — |
Erros
| Status | Quando |
|---|---|
| 401 | Missing/invalid/expired credential |
| 403 | Authenticated but not permitted |
| 429 | Throttled - Retry-After header set |
| 400 | Validation error |
| 404 | Not found or not visible |
curl -sS -X PUT 'https://api.dailybot.com/v1/platform/scheduling/{pk}/' -H 'X-API-KEY: $DAILYBOT_API_KEY'Testar
Este é um ajudante apenas de cópia — a requisição não é enviada do seu navegador. Cole o comando no seu terminal para executá-lo.
Cancel a scheduled run
API-Key + X-EXCHANGE-TOKEN required. CLI Bearer is rejected on the platform surface.
Parâmetros de rota
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| pk | string (uuid) | Obrigatório | — |
Erros
| Status | Quando |
|---|---|
| 401 | Missing/invalid/expired credential |
| 403 | Authenticated but not permitted |
| 429 | Throttled - Retry-After header set |
| 400 | Validation error |
| 404 | Not found or not visible |
curl -sS -X DELETE 'https://api.dailybot.com/v1/platform/scheduling/{pk}/' -H 'X-API-KEY: $DAILYBOT_API_KEY'Testar
Este é um ajudante apenas de cópia — a requisição não é enviada do seu navegador. Cole o comando no seu terminal para executá-lo.
Read command-scoped storage
API-Key + X-EXCHANGE-TOKEN required. CLI Bearer is rejected on the platform surface.
Erros
| Status | Quando |
|---|---|
| 401 | Missing/invalid/expired credential |
| 403 | Authenticated but not permitted |
| 429 | Throttled - Retry-After header set |
| 400 | Validation error |
| 404 | Not found or not visible |
curl -sS -X GET 'https://api.dailybot.com/v1/platform/storage/' -H 'X-API-KEY: $DAILYBOT_API_KEY'Testar
Este é um ajudante apenas de cópia — a requisição não é enviada do seu navegador. Cole o comando no seu terminal para executá-lo.
Write command-scoped storage
API-Key + X-EXCHANGE-TOKEN required. CLI Bearer is rejected on the platform surface.
Erros
| Status | Quando |
|---|---|
| 401 | Missing/invalid/expired credential |
| 403 | Authenticated but not permitted |
| 429 | Throttled - Retry-After header set |
| 400 | Validation error |
| 404 | Not found or not visible |
curl -sS -X POST 'https://api.dailybot.com/v1/platform/storage/' -H 'X-API-KEY: $DAILYBOT_API_KEY'Testar
Este é um ajudante apenas de cópia — a requisição não é enviada do seu navegador. Cole o comando no seu terminal para executá-lo.
Clear command-scoped storage
API-Key + X-EXCHANGE-TOKEN required. CLI Bearer is rejected on the platform surface.
Erros
| Status | Quando |
|---|---|
| 401 | Missing/invalid/expired credential |
| 403 | Authenticated but not permitted |
| 429 | Throttled - Retry-After header set |
| 400 | Validation error |
| 404 | Not found or not visible |
curl -sS -X DELETE 'https://api.dailybot.com/v1/platform/storage/' -H 'X-API-KEY: $DAILYBOT_API_KEY'Testar
Este é um ajudante apenas de cópia — a requisição não é enviada do seu navegador. Cole o comando no seu terminal para executá-lo.
List command event subscriptions
API-Key + X-EXCHANGE-TOKEN required. CLI Bearer is rejected on the platform surface.
Erros
| Status | Quando |
|---|---|
| 401 | Missing/invalid/expired credential |
| 403 | Authenticated but not permitted |
| 429 | Throttled - Retry-After header set |
| 400 | Validation error |
| 404 | Not found or not visible |
curl -sS -X GET 'https://api.dailybot.com/v1/platform/event-subscription/' -H 'X-API-KEY: $DAILYBOT_API_KEY'Testar
Este é um ajudante apenas de cópia — a requisição não é enviada do seu navegador. Cole o comando no seu terminal para executá-lo.
Create a command event subscription
API-Key + X-EXCHANGE-TOKEN required. CLI Bearer is rejected on the platform surface.
Erros
| Status | Quando |
|---|---|
| 401 | Missing/invalid/expired credential |
| 403 | Authenticated but not permitted |
| 429 | Throttled - Retry-After header set |
| 400 | Validation error |
| 404 | Not found or not visible |
curl -sS -X POST 'https://api.dailybot.com/v1/platform/event-subscription/' -H 'X-API-KEY: $DAILYBOT_API_KEY'Testar
Este é um ajudante apenas de cópia — a requisição não é enviada do seu navegador. Cole o comando no seu terminal para executá-lo.
Delete a command event subscription
API-Key + X-EXCHANGE-TOKEN required. CLI Bearer is rejected on the platform surface.
Erros
| Status | Quando |
|---|---|
| 401 | Missing/invalid/expired credential |
| 403 | Authenticated but not permitted |
| 429 | Throttled - Retry-After header set |
| 400 | Validation error |
| 404 | Not found or not visible |
curl -sS -X DELETE 'https://api.dailybot.com/v1/platform/event-subscription/' -H 'X-API-KEY: $DAILYBOT_API_KEY'Testar
Este é um ajudante apenas de cópia — a requisição não é enviada do seu navegador. Cole o comando no seu terminal para executá-lo.
Read command activity feed
API-Key + X-EXCHANGE-TOKEN required. CLI Bearer is rejected on the platform surface.
Erros
| Status | Quando |
|---|---|
| 401 | Missing/invalid/expired credential |
| 403 | Authenticated but not permitted |
| 429 | Throttled - Retry-After header set |
| 400 | Validation error |
| 404 | Not found or not visible |
curl -sS -X GET 'https://api.dailybot.com/v1/platform/activity/' -H 'X-API-KEY: $DAILYBOT_API_KEY'Testar
Este é um ajudante apenas de cópia — a requisição não é enviada do seu navegador. Cole o comando no seu terminal para executá-lo.
Append to the command activity feed
API-Key + X-EXCHANGE-TOKEN required. CLI Bearer is rejected on the platform surface.
Erros
| Status | Quando |
|---|---|
| 401 | Missing/invalid/expired credential |
| 403 | Authenticated but not permitted |
| 429 | Throttled - Retry-After header set |
| 400 | Validation error |
| 404 | Not found or not visible |
curl -sS -X POST 'https://api.dailybot.com/v1/platform/activity/' -H 'X-API-KEY: $DAILYBOT_API_KEY'Testar
Este é um ajudante apenas de cópia — a requisição não é enviada do seu navegador. Cole o comando no seu terminal para executá-lo.
Plataforma de comandos
Endpoints públicos da API para execução agendada de comandos, armazenamento, assinatura de eventos, rastreamento de atividade e obtenção de um token de troca. Todos requerem o header X-API-KEY. Muitos endpoints requerem um token de troca (do contexto do comando ou de POST /v1/auth/fetch-command-exchange-token/).
Resumo dos endpoints
| Método | Endpoint | Descrição |
|---|---|---|
| POST | /v1/scheduler/ |
Agendar um comando para rodar em um momento futuro |
| GET | /v1/scheduler/ |
Listar trabalhos de comandos agendados |
| GET | /v1/scheduler/{id}/ |
Obter um trabalho agendado |
| DELETE | /v1/scheduler/{id}/ |
Cancelar um trabalho agendado |
| POST | /v1/storage/ |
Escrever um par chave-valor |
| GET | /v1/storage/{key}/ |
Ler um par chave-valor |
| DELETE | /v1/storage/{key}/ |
Excluir um par chave-valor |
| POST | /v1/events/subscribe/ |
Assinar um evento |
| DELETE | /v1/events/subscribe/{id}/ |
Cancelar assinatura de um evento |
| POST | /v1/activity/ |
Enviar uma entrada de atividade |
| POST | /v1/auth/fetch-command-exchange-token/ |
Obter um token de troca para um usuário |
Agendamento
POST /v1/scheduler/
Agenda um comando para rodar em um momento futuro.
curl -X POST "https://api.dailybot.com/v1/scheduler/" \
-H "X-API-KEY: sua_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" }
}'
Resposta (201 Created):
{
"id": "job-uuid",
"command_intent": "send_report",
"run_at": "2026-04-10T09:00:00Z",
"status": "scheduled"
}
GET /v1/scheduler/
Lista todos os trabalhos de comandos agendados para a organização.
curl -X GET "https://api.dailybot.com/v1/scheduler/" \
-H "X-API-KEY: sua_api_key"
DELETE /v1/scheduler/{id}/
Cancela um trabalho agendado.
curl -X DELETE "https://api.dailybot.com/v1/scheduler/job-uuid/" \
-H "X-API-KEY: sua_api_key"
Armazenamento
POST /v1/storage/
Escreve um par chave-valor. Os dados têm escopo para o usuário e a organização.
curl -X POST "https://api.dailybot.com/v1/storage/" \
-H "X-API-KEY: sua_api_key" \
-H "Content-Type: application/json" \
-d '{"key": "user_preferences", "value": {"theme": "dark"}}'
GET /v1/storage/{key}/
Lê um par chave-valor.
curl -X GET "https://api.dailybot.com/v1/storage/user_preferences/" \
-H "X-API-KEY: sua_api_key"
Resposta (200 OK):
{ "key": "user_preferences", "value": { "theme": "dark" } }
DELETE /v1/storage/{key}/
Exclui um par chave-valor.
curl -X DELETE "https://api.dailybot.com/v1/storage/user_preferences/" \
-H "X-API-KEY: sua_api_key"
Assinatura de eventos
POST /v1/events/subscribe/
Assina um tipo de evento para o usuário autenticado.
curl -X POST "https://api.dailybot.com/v1/events/subscribe/" \
-H "X-API-KEY: sua_api_key" \
-H "Content-Type: application/json" \
-d '{"event_type": "check_in.completed", "webhook_url": "https://seu-app.com/eventos"}'
DELETE /v1/events/subscribe/{id}/
Cancela a assinatura de um evento.
curl -X DELETE "https://api.dailybot.com/v1/events/subscribe/sub-uuid/" \
-H "X-API-KEY: sua_api_key"
Atividade
POST /v1/activity/
Envia uma entrada de atividade vinculada ao usuário autenticado.
curl -X POST "https://api.dailybot.com/v1/activity/" \
-H "X-API-KEY: sua_api_key" \
-H "Content-Type: application/json" \
-d '{
"activity_type": "commit",
"description": "Pushed 3 commits to main",
"metadata": { "repo": "my-repo", "commits": 3 }
}'
Resposta (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/
Obtém um token de troca que permite fazer chamadas de API em nome de um usuário específico. Requer que sua API key tenha as permissões necessárias.
curl -X POST "https://api.dailybot.com/v1/auth/fetch-command-exchange-token/" \
-H "X-API-KEY: sua_api_key" \
-H "Content-Type: application/json" \
-d '{"user_uuid": "target-user-uuid"}'
Resposta (200 OK):
{
"exchange_token": "eyJ...",
"expires_at": "2026-04-06T11:00:00Z"
}
A autenticação por Token de Troca está desabilitada por padrão. Entre em contato com o suporte para habilitá-la na sua organização.