Lists and polling
Page through lists with cursors, and follow changes with updatedSince.
Early access
The REST API, webhooks and embedded signing are open to accounts in early access. If Settings, Developers is not in your account yet, write to contact@docudetect.com. What these pages describe can still change; breaking changes are announced on this site first.
Lists return a page of items and a nextCursor:
{ "success": true, "data": { "items": [], "nextCursor": "eyJ1IjoiMjAyNi0xMi0wNlQxMjowMDowMFoifQ" } }Pass nextCursor back as cursor until it is null. limit sets the page size, 1 to 100 (50 by default). Treat a cursor as opaque.
Following changes
List documents with updatedSince returns documents changed at or after that time, oldest change first. To keep a copy in step:
- Remember the latest
updatedAtyou have processed. - Every so often, list with
updatedSinceset to it and follow the cursors to the end. - Process each document and move your mark to its
updatedAt.
A document can appear again when it changes again, so make processing safe to repeat. For the steps in between, such as who opened or signed, read the document's history. Webhooks tell you about changes without polling.