Messaging API - DailyBot Developers

DailyBot API endpoints for sending messages to users, teams, and channels, sending emails, and opening conversations.

Messaging

Send messages to individuals, teams, or channels through DailyBot. These endpoints support text messages, images, buttons, and email delivery. Messages are delivered through the platform your organization uses (Slack, Microsoft Teams, Google Chat, or DailyBot's native chat).

Send Message

POST /v1/send-message/

Delivers messages to users, teams, or channels. At least one target (user, team, or channel) must be provided.

Body Parameters

Name Type Required Description
message string Optional The message text to send.
target_users array Optional Array of user UUIDs to receive the message.
target_teams array Optional Array of team UUIDs to receive the message.
target_channels array Optional Array of channel objects with id and is_channel_message flag.
image_url string Optional URL of an image to attach to the message.
buttons array Optional Array of command button objects to include.
exchange_token string Optional Exchange token to send message on behalf of another user.
Request
curl -X POST "https://api.dailybot.com/v1/send-message/" \
  -H "X-API-KEY: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "message": "Deployment completed successfully! ✅",
    "target_users": ["a1b2c3d4-e5f6-7890-abcd-ef1234567890"],
    "target_teams": ["team-1234-abcd"]
  }'
Response 204 No Content
json

Tip

You can target multiple users, teams, and channels in a single request. The message will be delivered to all specified targets.

Send Email

POST /v1/send-email/

Sends email messages to specified users using their registered email addresses.

Body Parameters

Name Type Required Description
users_uuids array Required Array of user UUIDs to receive the email.
email_subject string Required Subject line of the email.
email_content string Required HTML or plain text email body.
exchange_token string Optional Exchange token to send email on behalf of another user.
Request
curl -X POST "https://api.dailybot.com/v1/send-email/" \
  -H "X-API-KEY: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "users_uuids": ["a1b2c3d4-e5f6-7890-abcd-ef1234567890"],
    "email_subject": "Weekly Report Ready",
    "email_content": "Your weekly team report is now available. Check your dashboard."
  }'
Response 204 No Content
json

Open Conversation

POST /v1/open-conversation/

Creates a private group conversation in Slack with the specified users.

Body Parameters

Name Type Required Description
users_uuids array Required Array of user UUIDs to include in the conversation.
exchange_token string Optional Exchange token for acting on behalf of a user.
Request
curl -X POST "https://api.dailybot.com/v1/open-conversation/" \
  -H "X-API-KEY: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "users_uuids": [
      "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "b2c3d4e5-f6a7-8901-bcde-f12345678901"
    ]
  }'
Response 200 OK
json
{
  "channel_id": "C0123456789"
}

Info

The Open Conversation endpoint is currently available only for organizations using Slack as their platform.