- Help centre
- Getting started
Task guide
The Docavra API
Connect the firm's own tools to Docavra with an API key that works as the person who made it, and be told by a webhook when a matter opens, a document is filed or a bill is posted.
The firm's own tools (a dashboard, a finance system, a document assembly service) can read and change Docavra's records through its API, the same interface Docavra's own screens use. An integration calls it with a key, and a webhook tells it when something happens.
Make an API key
Under Settings > API and webhooks, API keys lists your keys. Choose Make a key, name the integration, and for each area choose whether the key reaches it: Read, or Read and change.
- Areas. Matters, parties, time, tasks, calendar, deadlines, documents, and billing (read only).
- It works as you. A key never does more than you may do on screen: your roles, the matters you can open and every ethical wall apply. When you leave the firm, or no longer hold the right to use keys, your keys stop working.
- Shown once. The key is shown when it is made and never again; only a fingerprint of it is kept. Copy it into the integration straight away.
- An end date. A key can be given a last day, at most a year away, or work until it is revoked.
Partners and the firm administrator make keys. The firm administrator also sees everyone's keys and can revoke any, saying why.
Calling the API
The integration sends the key with every call, from its own server, as an Authorization: Bearer header to the firm's own Docavra address. A browser page never sends a key.
- What it can reach. The list of everything a key can call is published at
/api/v1/public-api/openapi.jsonon the firm's address, readable without a key. - Pages. Lists come a page at a time, with
pageandlimit, and say how many there are in all. - Changes. A change sends the record's
version, and is refused if someone changed the record first. - Limits. A key may make 120 calls a minute; past that the API answers 429 and says when to try again.
- Refusals. A key that is unknown, revoked or ended is refused with
API_KEY_INVALID; a call outside the key's areas withAPI_SCOPE.
Everything a key changes is recorded in the audit log as the person who made the key, marked as made through the key.
Webhooks
Webhooks, for the firm administrator, registers an address that Docavra tells when something happens: a matter is opened or its status changes, a party is added, a document is filed or has a new version, a task is done, a bill is posted or credited.
- What arrives. A short message with the event's name and time and the record's id. The integration then reads the record through the API with its own key, so nothing is sent that its person could not read.
- Signed. Each delivery carries a
Docavra-Signatureheader,t=the time andv1=an HMAC-SHA256 of the time, a full stop and the body, made with the webhook's signing secret. Check it, and the time, before trusting a delivery. - Retried. An address that does not answer with success is tried again after 1, 5, 30, 120 and 720 minutes. After 20 deliveries in a row fail, the webhook is paused and the person who registered it is told.
- Kept thirty days. The webhook's page lists each delivery with what the address answered, and sends a failed one again.
Send a test event, Pause, Resume, Rotate the secret and Remove are on the webhook's own page. Docavra sends only to addresses on the public internet, over https.
Was this helpful?