DialerBee APIv1 · 1.0.0-rc6

Account

Who am I: the API client, the account and the granted scopes

GET /v1/me

Scope
No scope needed (any active key)
Tier
Tier 1
Data
Account data
Idempotency
Idempotency-Key: not used

Answers from the authentication step only; it calls no platform service. Every active key can call it, even one with no scopes, so use it to check a new key. It never returns an internal account id.

Parameters

NameInTypeRequiredDescription
X-Correlation-IDheaderstringnoYour own trace value, logged with the request. Metadata only, never identity. (min length 1; max length 128)

Response

200: The calling API client.

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.

Examples

Request example

curl

curl -sS -X GET \
  "https://app.dialerbee.com/api/v1/me" \
  -H "Authorization: Bearer $DIALERBEE_API_KEY"

Python (SDK)

from dialerbee import DialerBee

db = DialerBee()  # reads DIALERBEE_API_KEY from the environment

result = db.me.get()

Response example

200

{
  "client": {
    "id": "cli_0f8fad5b-d9cb-469f-a165-70867728950e",
    "name": "CRM sync (production)",
    "environment": "live"
  },
  "account": {
    "name": "Example Clinic"
  },
  "scopes": [
    "leads:read",
    "leads:write",
    "calls:read",
    "recordings:read",
    "webhooks:read"
  ],
  "tier2": {
    "campaign_resume": false,
    "callback_write": false,
    "appointment_write": false,
    "consent_write": false,
    "sms_send": false,
    "calls_originate": false
  }
}

Error examples

401 invalid_api_key

{
  "type": "https://docs.dialerbee.com/errors/invalid-api-key",
  "title": "Invalid API key",
  "status": 401,
  "detail": "The Authorization header is missing, is not Bearer dbk_live_..., or the key is not recognised, has expired or was revoked (one answer for every key problem, so a key's state is never revealed).",
  "instance": "urn:dialerbee:request:req_01K6BZ3M9X4T7Q2V8N5R6P1W0C",
  "code": "invalid_api_key",
  "request_id": "req_01K6BZ3M9X4T7Q2V8N5R6P1W0C"
}

Errors

StatusCodeTitle
401invalid_api_keyInvalid API key
403api_access_disabledAPI access disabled
403ip_not_allowedIP address not allowed
400credential_in_urlCredential in URL
400, 422validation_failedInvalid request
429rate_limit_exceededToo many requests
503temporarily_unavailableTemporarily unavailable
503upstream_unavailableTemporarily unavailable
502upstream_invalid_responseUpstream error
500internal_errorInternal error

Objects

Me

FieldTypeRequiredDescription
clientMeClientyes
accountMeAccountyes
scopesarray of one of leads:read, leads:write, campaigns:read, campaigns:pause, campaigns:resume, calls:read, recordings:read, transcripts:read, summaries:read, webhooks:read, webhooks:write, dnc:check, dnc:add, consent:write, callbacks:read, callbacks:cancel, callbacks:write, appointments:read, appointments:write, sms:read, messages:send, reports:read, calls:originate, whatsapp:sendyes
tier2Tier2StatusyesWhich Tier-2 capabilities are switched on for the account. The client still needs the matching scope.

MeClient

FieldTypeRequiredDescription
idstring (ApiClientId)yesAn API client (an integration). Its credentials (keys) belong to it. cli_ + a lower-case UUID.
namestringyes
environmentone of live, testyes

MeAccount

FieldTypeRequiredDescription
namestringyes

Tier2Status

Which Tier-2 capabilities are switched on for the account. The client still needs the matching scope.

FieldTypeRequiredDescription
campaign_resumebooleanyes
callback_writebooleanyes
appointment_writebooleanyes
consent_writebooleanyes
sms_sendbooleanyes
calls_originatebooleanyes