Skip to content
view raw .md

Commands platform

The command platform (scheduling, storage, events, activity). All endpoints are API-key + Exchange-Token only.

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.

Errors

StatusWhen
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'

Try it

This is a copy-only helper — the request is not sent from your browser. Paste the command into your terminal to execute it.

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.

Errors

StatusWhen
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'

Try it

This is a copy-only helper — the request is not sent from your browser. Paste the command into your terminal to execute it.

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.

Errors

StatusWhen
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'

Try it

This is a copy-only helper — the request is not sent from your browser. Paste the command into your terminal to execute it.

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.

Path parameters

NameTypeRequiredDescription
pkstring (uuid)Required

Errors

StatusWhen
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'

Try it

This is a copy-only helper — the request is not sent from your browser. Paste the command into your terminal to execute it.

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.

Path parameters

NameTypeRequiredDescription
pkstring (uuid)Required

Errors

StatusWhen
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'

Try it

This is a copy-only helper — the request is not sent from your browser. Paste the command into your terminal to execute it.

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.

Path parameters

NameTypeRequiredDescription
pkstring (uuid)Required

Errors

StatusWhen
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'

Try it

This is a copy-only helper — the request is not sent from your browser. Paste the command into your terminal to execute it.

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.

Errors

StatusWhen
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'

Try it

This is a copy-only helper — the request is not sent from your browser. Paste the command into your terminal to execute it.

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.

Errors

StatusWhen
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'

Try it

This is a copy-only helper — the request is not sent from your browser. Paste the command into your terminal to execute it.

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.

Errors

StatusWhen
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'

Try it

This is a copy-only helper — the request is not sent from your browser. Paste the command into your terminal to execute it.

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.

Errors

StatusWhen
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'

Try it

This is a copy-only helper — the request is not sent from your browser. Paste the command into your terminal to execute it.

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.

Errors

StatusWhen
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'

Try it

This is a copy-only helper — the request is not sent from your browser. Paste the command into your terminal to execute it.

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.

Errors

StatusWhen
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'

Try it

This is a copy-only helper — the request is not sent from your browser. Paste the command into your terminal to execute it.

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.

Errors

StatusWhen
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'

Try it

This is a copy-only helper — the request is not sent from your browser. Paste the command into your terminal to execute it.

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.

Errors

StatusWhen
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'

Try it

This is a copy-only helper — the request is not sent from your browser. Paste the command into your terminal to execute it.

Commands platform

Public API endpoints for scheduled command execution, storage, event subscription, activity tracking, and fetching an exchange token. All require X-API-KEY header. Many endpoints require an exchange token (from command context or POST /v1/auth/fetch-command-exchange-token/).

Endpoints summary

Method Endpoint Description
POST /v1/scheduler/ Schedule a command to run at a future time
GET /v1/scheduler/ List scheduled command jobs
GET /v1/scheduler/{id}/ Get a scheduled job
DELETE /v1/scheduler/{id}/ Cancel a scheduled job
POST /v1/storage/ Write a key-value pair
GET /v1/storage/{key}/ Read a key-value pair
DELETE /v1/storage/{key}/ Delete a key-value pair
POST /v1/events/subscribe/ Subscribe to an event
DELETE /v1/events/subscribe/{id}/ Unsubscribe from an event
POST /v1/activity/ Submit an activity entry
POST /v1/auth/fetch-command-exchange-token/ Fetch an exchange token for a user

Scheduling

POST /v1/scheduler/

Schedules a command to run at a future time.

curl -X POST "https://api.dailybot.com/v1/scheduler/" \
  -H "X-API-KEY: your_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" }
  }'

Response (201 Created):

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

GET /v1/scheduler/

Lists all scheduled command jobs for the organization.

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

DELETE /v1/scheduler/{id}/

Cancels a scheduled job.

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

Storage

POST /v1/storage/

Writes a key-value pair. Data is scoped to the user and organization.

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

GET /v1/storage/{key}/

Reads a key-value pair.

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

Response (200 OK):

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

DELETE /v1/storage/{key}/

Deletes a key-value pair.

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

Event subscription

POST /v1/events/subscribe/

Subscribes to an event type for the authenticated user.

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

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

Unsubscribes from an event.

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

Activity

POST /v1/activity/

Submits an activity entry linked to the authenticated user.

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

Response (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/

Fetches an exchange token that allows making API calls on behalf of a specific user. Requires your API key to have the necessary permissions.

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

Response (200 OK):

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

Exchange Token authentication is disabled by default. Contact support to enable it for your organization.