Skip to content
view raw .md

CLI

CLI-only endpoints — the OTP login flow, chat completions, and status pings. Only callable with a CLI Bearer token (except the anonymous OTP endpoints).

POST/v1/cli/chat/completions/CLI Auth

CLI chat completions (CLI Bearer only)

Body: message, history, session_id, reset_thread, available_commands.

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/cli/chat/completions/' -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/cli/updates/CLI Auth

CLI updates (CLI Bearer only)

CLI updates (CLI Bearer only)

Errors

StatusWhen
401Missing/invalid/expired credential
403Authenticated but not permitted
429Throttled - Retry-After header set
curl -sS -X POST 'https://api.dailybot.com/v1/cli/updates/' -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/cli/status/Anonymous

CLI status (anonymous)

CLI status (anonymous)

Errors

StatusWhen
401Missing/invalid/expired credential
403Authenticated but not permitted
429Throttled - Retry-After header set
curl -sS -X GET 'https://api.dailybot.com/v1/cli/status/' -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/cli/auth/request-code/Anonymousanon_strict_auth

Request an email OTP code (anonymous)

Body: email; optional organization_uuid on multi-org resend.

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/cli/auth/request-code/' -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/cli/auth/verify-code/Anonymousanon_strict_auth

Verify an OTP code and return CLI Bearer tokens (anonymous)

Body: email, code. Response: access_token, refresh_token, token_type, expires_in, user, organization.

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/cli/auth/verify-code/' -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/cli/auth/status/CLI Auth

Check CLI Bearer status

Check CLI Bearer status

Errors

StatusWhen
401Missing/invalid/expired credential
403Authenticated but not permitted
429Throttled - Retry-After header set
curl -sS -X GET 'https://api.dailybot.com/v1/cli/auth/status/' -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/cli/auth/logout/CLI Auth

End CLI Bearer session

End CLI Bearer session

Errors

StatusWhen
401Missing/invalid/expired credential
403Authenticated but not permitted
429Throttled - Retry-After header set
curl -sS -X POST 'https://api.dailybot.com/v1/cli/auth/logout/' -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.