Blooio API Reference
Webhooks

Create a webhook

Create a new webhook subscription.

POST
/webhooks

Authorization

BearerAuth
AuthorizationBearer <token>

API key authentication. Use your API key as the bearer token.

In: header

Request Body

application/json

webhook_url*string

URL to receive webhook events

Formaturi
webhook_type?string

Type of events to receive

Default"message"
Value in"message" | "status" | "all"
valid_until?integer

Expiration timestamp (-1 for no expiration)

Default-1
Formatint64

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://backend.blooio.com/v2/api/webhooks" \  -H "Content-Type: application/json" \  -d '{    "webhook_url": "https://example.com/webhook"  }'
{
  "webhook_id": "string",
  "webhook_url": "string",
  "message": "string"
}
{
  "webhook_id": "string",
  "webhook_url": "http://example.com",
  "webhook_type": "message",
  "scope": "api_key",
  "api_key_name": "string",
  "integration_name": "string",
  "created_at": 0,
  "deprecated_at": 0,
  "valid_until": 0,
  "last_triggered": 0,
  "failure_count": 0
}
{
  "error": "string",
  "status": 0
}
{
  "error": "string",
  "status": 0
}