API reference
Current release · Updated October 4, 2026
Base URL and scope
Use https://app.drykraft.com/api for browser/session routes, and /api/v1 for service-account CRM access with scoped Bearer keys. The complete current reference includes public provider callbacks. It is not a promise that the full PRD is implemented. Signed customer webhooks are managed in Settings - Webhooks. The external SDK remains outstanding. OpenAPI includes customer session, service-account key and separate platform session schemes.
Service-account access
Owners/admins configure explicit object/action permissions and expiring keys in Settings - Developer access. Use Authorization: Bearer; a cookie cannot substitute under /api/v1. The key is fixed to its workspace, and X-Workspace-ID or another workspace hostname cannot switch it. Browser/account/billing/provider/administrator routes do not accept this key. GET /api/v1/me shows effective permissions and expiry. Each authorized object includes all its fields and owners.
Versioned CRM reads use the shared cursor/filter contract; PATCH requires the current version and preserves omitted fields. Every POST/PATCH/DELETE requires a stable UUID Idempotency-Key. Identical retries on that service account/path/payload return the original result with Idempotency-Replayed=true. A different request conflicts. Preserve field order when retrying; the validated serialized JSON must match. Current permission and active billing are checked before replay. Financial access is Read/Add notes only. Business events/audit identify the service account separately from users.
Authenticate and select a workspace
POST /api/auth/login with email/password or use signup. For an MFA-enabled account, login returns a five-minute challenge and creates no session; POST /api/auth/mfa with that challenge and a new authenticator or unused recovery code. After success retain the HTTP-only drykraft_session cookie. Production uses Secure, SameSite=Lax and a seven-day lifetime. Browser clients should make same-origin requests with credentials included. State-changing Origin headers must match the request host; cross-origin browser integration is not enabled.
Read /api/session to get accessible workspace IDs and current role. Use /api/session/workspace to select a member workspace. X-Workspace-ID can select another workspace you belong to per request, but cannot bypass membership or workspace hostname checks. A tenant_id in a request body does not grant access. Account-security endpoints require an account session even before onboarding; most other protected endpoints require a selected workspace.
Roles, billing and state
Workspace member means owner/admin/member/viewer can read. Owner, admin or member can change business data; viewer is read-only. Configuration/launch generally needs owner/admin. Only owner manages billing and administrators. Endpoint descriptions name finer constraints. Most writes need active trial/paid access; account security, billing and access removal remain available after expiry.
For versioned records, smart lists, dashboards and member changes, read the latest version and submit it. A 409 must trigger a refresh and review. Record PUT replaces complete data; bulk update merges specified fields. Financial records must use Finance, not generic record writes. Launched outreach/immutable workflow versions cannot be rewritten.
Pagination and request limits
Use next_cursor as an opaque token and keep search/filter settings unchanged while paging. Records default to 50 rows, max 100; team/session pages use 25. Some history endpoints intentionally return only a recent bounded list and have no next page. Returned metadata can include additional row fields; do not depend on fields outside documented contracts.
JSON request bodies are capped at 512 KB. General /api has 300 requests/minute per client IP; authentication and generic workflow hooks share 30 attempts/15 minutes. Raw Dodo and Meta notifications each have a separate 120 requests/minute per IP. Calendar adds 120 requests/minute; public booking and guest changes share 15 attempts/15 minutes. These counters use shared Redis across API servers and survive an API restart. IPv6 addresses share their /56 subnet allowance.
Account password changes additionally allow ten attempts per account/15 minutes; authenticator setup/management and MFA proofs share another ten attempts per account/15 minutes; service-account requests have 120/minute per key, and access approval has 30 attempts per administrator/15 minutes. Fixed windows begin with the first attempt; unsuccessful requests count too. IP limits return RateLimit and RateLimit-Policy headers; blocked requests include Retry-After. Wait for the indicated window. Sending quotas for providers/connections are separate. A 413 can have a non-JSON parser response.
Errors and safe retry
Normal errors and blocked requests are {error:{message,request_id}} with X-Request-ID; parser/provider ingress responses can differ. 400 input validation, 401 sign-in/signature, 402 subscription, 403 permission, 404 resource, 409 conflict, 410 invitation expiry, 413 body size, 429 rate limit and 5xx server/provider failure. Preserve the request ID when requesting support.
If shared request protection is unavailable or stalls, affected API requests return 503 with Retry-After: 5 instead of proceeding without protection. The business handler does not run. A timed-out counter may still consume an attempt. Do not rapidly retry. Public HTML remains available; Redis service failure or loss is separate from an API restart.
Use a stable UUID for CSV commit/payment entry retries with identical content. Generic workflow hooks accept Idempotency-Key. Versioned CRM mutations require a UUID Idempotency-Key. Other browser creates/launches do not have a universal idempotency key. A network failure is not proof of failure: refresh state before retrying payment checkout, outreach launch or external execution. Unknown outreach results require provider inspection; do not blindly resend.
curl --request POST \
--url 'https://app.drykraft.com/api/auth/login' \
--cookie-jar ./drykraft-session.txt \
--header 'Content-Type: application/json' \
--data '{"email":"you@example.com","password":"<YOUR_PASSWORD>"}'
curl --url 'https://app.drykraft.com/api/session' \
--cookie ./drykraft-session.txtThe example uses your private account only. Keep the local cookie file private and delete it when done. Never paste credentials into shared docs, logs or screenshots. Replace angle-bracket placeholders before running examples.
MCP