Skip to main content
POST
/
bots
/
{botId}
/
webhooks
Upsert bot webhook
curl --request POST \
  --url https://api.helloannie.com/v1/bots/{botId}/webhooks \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "authToken": "<string>"
}
'
{
  "success": true,
  "data": {
    "webhookUrl": "<string>",
    "isAuthTokenConfigured": true,
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Path Parameters

botId
string<uuid>
required

The ID of the bot to update webhook configuration for

Body

Payload used to create or update a bot webhook configuration

url
string<uri>
required

The webhook URL to set for this bot

authToken
string | null

Response

Response returned after creating or updating a bot webhook configuration

success
enum<boolean>
required
Available options:
true
data
object
required

Webhook configuration metadata for a bot