Documentation
Guides, API reference and events for DMS.
On this page
Rules shared by every R&D Copilot API are in the Developer guide.
Get started
- Overview: What the DMS API does, how a call is built and where to go next.
- Quickstart: Create an invoice from a file, read its values, settle them and send it to approval with five requests.
- Authentication: Get client credentials, request a token and call the DMS API with it.
- Sandbox and live: Build and test against a test company, then move the same calls to your live company.
- Go-live checklist: What to check in your integration before it works on your live company.
Concepts
- Documents and versions: How a document moves from draft to archive, what a version is, what a revision is and which change each status allows.
- Classes and properties: What a class decides, how the class and the amount of a document give its approvers, and which properties of a draft you can change.
- Views and search: Which filters of
listDocumentsmake a saved view, how to page through a list and howsearchDocumentsfinds a document by its words. - Permissions: Who opens a document, what your API token reaches, which people a request may name and who may submit, approve, archive or send for signature.
- Retention: How the keep-until date of a document follows from its date and its class, what archiving does and why nothing is deleted through the API.
Guides
- Upload and classify: Create a draft from one file and a class, read the result and change its properties before it goes to approval.
- Extract data: Read the nine values taken from an invoice, accept the ones that are right and correct the others until the invoice can be submitted.
- Approvals: Submit a document to the approvers of its class and amount, approve it in order or return it with a reason, and follow what each step changes.
- Signature: Send an approved contract or offer to its recipients, follow each recipient and archive the document once everyone has signed.
- Bulk import: File documents that were approved elsewhere straight into the archive, one request per document, and run the import again safely after a failure.
Reference
- Errors: The error object of the DMS API and the codes that say what went wrong.
- Idempotency and concurrency: Repeat a request without applying it twice, and refuse a change made on an out-of-date record.
- Pagination: Lists come in pages. Follow the cursor until it is empty.
- Limits: The limits of the DMS API, with their values and what happens over them.
- Versioning: The version is in the path. Additions keep it; a change that could break a caller gets a new one.
- Changelog: The versions of the DMS API contract, newest first, with what each one changed.
API reference
- Documents: Create a document from a file, read it, revise it, archive it, import an archive and read the versions.
- Properties and classes: Change the properties of a draft and read the classes: their approvers by amount, whether they are signed, how long they are kept and who opens them.
- Search: Find documents by what they say about themselves: name, number, counterparty, project and the extracted values of an invoice.
- Extraction: Read the values taken from an invoice, accept them and correct them.
- Approval: Submit a document to its approvers, approve it or return it with a reason.
- Signatures: Send an approved contract or offer for signature and read the state of each recipient.
- Audit: Read the trail of what happened to a document: who did what, and when.
- Events and subscriptions: Register an endpoint for events, read the events and their delivery state, and replay a parked event.
- Operations: A request that changes data is accepted once and answered with an operation result you can read again.
Events
- Event envelope: Every DMS event has the same envelope; only
datachanges with the type of the event. - Event catalogue: Every event DMS sends, when it is sent and what its
dataholds. - Subscriptions: Register an HTTPS endpoint and DMS sends your events to it, each one signed.
- Verify signatures: Every delivery is signed. Check the signature on the raw body before you trust the event.
- Delivery and retries: An event is sent again when your endpoint does not confirm it, and is kept for replay after the last attempt.
- Replay: Send a parked event again once your endpoint is ready to take it.