Developers

Build on DENDAT in five minutes

A REST API with scoped keys, cursor pagination and signed webhooks. Read and write contacts, deals, tasks, notes and more from any language.

REST + JSONBearer key auth
Cursorpagination, up to 100 per page
HMACsigned webhooks, 5 retries
600/mindefault limit per key
Quickstart

Your first call in three steps

Base URL https://dendat.com/api/v3. Create a key, export it, and make your first call.

  1. Create a key. Sign in to DENDAT, open Developers, API keys, and create a restricted key with contacts:read and contacts:write. Copy it when it is shown.
  2. Export it. export DENDAT_API_KEY=sk_live_...
  3. Call the API. Pick a language below.
List five contacts, then create one
curl "https://dendat.com/api/v3/contacts?limit=5" \
  -H "Authorization: Bearer $DENDAT_API_KEY"

curl -X POST "https://dendat.com/api/v3/contacts" \
  -H "Authorization: Bearer $DENDAT_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"email":"[email protected]","first_name":"Jane","last_name":"Doe"}'

Without a key the API answers with a clean JSON error, which is a quick way to check connectivity:

curl -i https://dendat.com/api/v3/contacts
# HTTP/2 401
# {"error":{"type":"authentication_error","code":"api_key_missing","message":"Missing Authorization header.","request_id":"req_..."}}
Reference

The basics

Authentication

Send Authorization: Bearer <key>. Secret keys (sk_) have full access. Restricted keys (rk_) carry only the scopes you pick, such as deals:read. A key can also be limited to an IP allow-list.

Pagination

Lists take limit (1 to 100, default 25) and starting_after (the id of the last item). Each response has has_more and a data array.

Errors

Failures return {"error": {"type", "code", "message", "request_id"}}, plus param on validation errors. Statuses: 400, 401, 403, 404, 409, 422, 429.

Rate limits

600 requests per minute per key by default. Every response carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset. A 429 includes Retry-After.

Idempotency

Add an Idempotency-Key header to POST, PATCH and PUT. A repeat with the same payload replays the first response and sets Idempotency-Replayed: 1.

Filtering

Lists accept sort, fields for sparse responses and q for search, plus per-resource filters such as status on contacts.

API surface

Resources

Summary of the main resources. The full list is in the interactive docs. Each path is under https://dendat.com/api/v3.

ResourcePathMethodsScopes
Contacts/contactsGET, POST, PATCH, DELETEcontacts:read contacts:write
Clients/clientsGET, POST, PATCH, DELETEclients:read clients:write
Deals/dealsGET, POST, PATCH, DELETEdeals:read deals:write
Tasks/tasksGET, POST, PATCH, DELETEtasks:read tasks:write
Notes/notesGET, POST, PATCH, DELETEnotes:read notes:write
Appointments/appointmentsGET, POST, PATCH, DELETEappointments:read appointments:write
Invoices/invoicesGET, POST, PATCH, DELETEinvoices:read invoices:write
Files/filesGETfiles:read
Webhooks/webhook_endpointsGET, POST, PATCH, DELETEwebhooks:read webhooks:write
Events/eventsGETevents:read
Search/searchGETsearch:read

Open the interactive docs to try every operation, or fetch the OpenAPI spec to generate a client.

Events

Webhooks

Register an endpoint with POST /webhook_endpoints and a list of enabled_events such as contact.created, deal.stage_changed, invoice.paid or task.completed. Changes made in the app fire events too. The signing secret (whsec_...) is shown once at creation and can be rolled at any time.

curl -X POST "https://dendat.com/api/v3/webhook_endpoints" \
  -H "Authorization: Bearer $DENDAT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/hooks/dendat",
       "enabled_events":["contact.created","deal.stage_changed"]}'
  • Each delivery is a signed POST with the header X-DENCRM-Signature: t=<unix>,v1=<hex>.
  • The signed message is t + "." + raw body, HMAC-SHA256 with your whsec_ secret.
  • Failed deliveries retry with backoff at 1 minute, 5 minutes, 30 minutes, 2 hours and 12 hours.
  • Always verify against the raw bytes, and reject timestamps older than 5 minutes.
import hmac, hashlib, time

def verify_webhook(raw_body: bytes, header: str, secret: str,
                   tolerance: int = 300) -> bool:
    parts = dict(p.split("=", 1) for p in header.split(",") if "=" in p)
    t, v1 = parts.get("t"), parts.get("v1")
    if not t or not v1 or abs(time.time() - int(t)) > tolerance:
        return False
    expected = hmac.new(secret.encode(), f"{t}.".encode() + raw_body,
                        hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, v1)
Start

Get your key

Keys are created from the Developers area after you sign in. Start with a restricted key that has only the scopes you need.