Skip to content

API and integrations

Ask questions and fetch results from your own systems (Pro Max).

Basics

REST under /v1, described by OpenAPI 3.1.

Link to Basics
TopicDetail
Base URLhttps://app.danphecouncil.com/api/v1
AuthenticationAuthorization: Bearer dk_live_… with a key from Settings → API keys (Pro Max)
WritesSend an Idempotency-Key header so a retried request never runs twice
ErrorsRFC 9457 application/problem+json
ListsCursor pagination with cursor and limit
Rate limits60 requests a minute on Free, 300 on Pro, 1,200 on Pro Max

Ask a question

Start a run, then follow it.

Link to Ask a question

Request

curl -X POST https://app.danphecouncil.com/api/v1/deliberations \
  -H "Authorization: Bearer $DANPHE_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"workspace_id": "…", "question": "Can the supplier share our data with affiliates?", "mode": "auto"}'

The answer is 202 with the run's id. Follow it with GET /deliberations/{id}/events (server-sent events) or poll GET /deliberations/{id}.

Main resources

What the API covers.

Link to Main resources
  • /files: upload documents; /collections: large document sets
  • /deliberations: ask and read checked answers
  • /audit-records: fetch and verify audit records
  • /review-items, /feedback: human review
  • /usage, /api-keys

Note: Webhook delivery and published SDKs are not available yet; the OpenAPI document at /v1/openapi.yaml is the reference.