DialerBee APIv1 · 1.0.0-rc6

Callbacks

Cancel a pending callback

POST /v1/callbacks/{callback_id}/cancel

Scope
callbacks:cancel
Tier
Tier 1
Data
Account data
Idempotency
Idempotency-Key: required

Cancelling only removes a planned call, so it is Tier 1: the callback is cancelled and the lead is no longer scheduled for it. Cancelling a callback that is already cancelled answers 200 and changes nothing. The body must be empty or {}.

Parameters

NameInTypeRequiredDescription
callback_idpathstring (CallbackId)yes
Idempotency-KeyheaderstringyesYour unique value for this logical operation (a UUID is fine). Scoped to your API client, kept 24 hours. (min length 1; max length 255)
X-Correlation-IDheaderstringnoYour own trace value, logged with the request. Metadata only, never identity. (min length 1; max length 128)

Request body

Empty, or {}.

JSON: EmptyRequest (optional)

Response

200: The callback, now cancelled.

HeaderMeaning
X-Request-IDThe DialerBee request id. Quote it to support. Every response carries X-Request-ID: req_<ULID>, or edge_<32 hex> when the edge answered before the request reached the API.
Cache-ControlAlways no-store.
Idempotency-Replayedtrue when this answer is the stored answer of an earlier request with the same Idempotency-Key.

Examples

Request example

curl

curl -sS -X POST \
  "https://app.dialerbee.com/api/v1/callbacks/cb_0f8fad5b-d9cb-469f-a165-70867728950e/cancel" \
  -H "Authorization: Bearer $DIALERBEE_API_KEY" \
  -H 'Idempotency-Key: 5f2b7c1e-8a3d-4c6f-9b0e-2d4a6c8e1f3a' \
  -H "Content-Type: application/json" \
  --data '{}'

Python (SDK)

from dialerbee import DialerBee

db = DialerBee()  # reads DIALERBEE_API_KEY from the environment

result = db.callbacks.cancel(
    "cb_0f8fad5b-d9cb-469f-a165-70867728950e",
    idempotency_key="5f2b7c1e-8a3d-4c6f-9b0e-2d4a6c8e1f3a",
)

Response example

200

{
  "id": "cb_0f8fad5b-d9cb-469f-a165-70867728950e",
  "lead_id": "lead_0f8fad5b-d9cb-469f-a165-70867728950e",
  "campaign_id": "cmp_0f8fad5b-d9cb-469f-a165-70867728950e",
  "scheduled_at": "2026-10-01T14:00:00Z",
  "status": "cancelled",
  "notes": "Prefers calls after 5 pm.",
  "created_at": "2026-09-29T09:15:00Z"
}

Error examples

409 callback_not_pending

{
  "type": "https://docs.dialerbee.com/errors/callback-not-pending",
  "title": "Callback not pending",
  "status": 409,
  "detail": "Only a pending callback can be cancelled or rescheduled.",
  "instance": "urn:dialerbee:request:req_01K6BZ3M9X4T7Q2V8N5R6P1W0C",
  "code": "callback_not_pending",
  "request_id": "req_01K6BZ3M9X4T7Q2V8N5R6P1W0C"
}

403 insufficient_scope

{
  "type": "https://docs.dialerbee.com/errors/insufficient-scope",
  "title": "Not permitted",
  "status": 403,
  "detail": "The API client does not hold the scope this operation requires.",
  "instance": "urn:dialerbee:request:req_01K6BZ3M9X4T7Q2V8N5R6P1W0C",
  "code": "insufficient_scope",
  "request_id": "req_01K6BZ3M9X4T7Q2V8N5R6P1W0C"
}

409 outcome_unknown

{
  "type": "https://docs.dialerbee.com/errors/outcome-unknown",
  "title": "Outcome unknown",
  "status": 409,
  "detail": "An earlier request with this Idempotency-Key may or may not have taken effect: the platform did not confirm it.",
  "instance": "urn:dialerbee:request:req_01K6BZ3M9X4T7Q2V8N5R6P1W0C",
  "code": "outcome_unknown",
  "request_id": "req_01K6BZ3M9X4T7Q2V8N5R6P1W0C"
}

Errors

StatusCodeTitle
401invalid_api_keyInvalid API key
403api_access_disabledAPI access disabled
403ip_not_allowedIP address not allowed
403insufficient_scopeNot permitted
400credential_in_urlCredential in URL
400credential_in_bodyCredential in body
400, 422validation_failedInvalid request
413payload_too_largePayload too large
415unsupported_media_typeUnsupported media type
400idempotency_key_requiredIdempotency-Key required
404not_foundNot found
409callback_not_pendingCallback not pending
409conflictRequest in progress
409idempotency_conflictIdempotency key reused
409outcome_unknownOutcome unknown
429rate_limit_exceededToo many requests
503temporarily_unavailableTemporarily unavailable
503upstream_unavailableTemporarily unavailable
502upstream_invalid_responseUpstream error
500internal_errorInternal error

Objects

EmptyRequest

An empty JSON object.

Callback

FieldTypeRequiredDescription
idstring (CallbackId)yesA scheduled callback. cb_ + a lower-case UUID.
lead_idstring (LeadId) or nullyesThe lead, or null when the lead was deleted after the callback was scheduled.
campaign_idstring (CampaignId)yesA campaign. cmp_ + a lower-case UUID.
scheduled_atstring (date-time)yes
statusstringyes
notesstring or nullyes
created_atstring (date-time)yes