When you create a document in Logic, it is assigned a unique identifier known as the document ID. This ID is used to reference the document in API requests and is essential for executing, updating, or deleting the document.You can find the document ID in the Logic dashboard, or you can retrieve it using the Logic API. The document ID is a UUID (Universally Unique Identifier) that looks like this: a901abfe-398d-447d-a0cc-c071b40339f3. You can also use the document slug, which is a human-readable version of the document ID that might look like this: analyze-invoice-po-notes.
You can find the document slug in the Logic dashboard by selection the document you want to work with. The document slug is displayed in the URL of the document editor, and it is also shown in the document’s integration tab.
Retrieving a List of Available Documents with the API
To retrieve a list of the documents available on your dashboard, you can use the /v1/documents endpoint. This will return a JSON object containing the ID of your document, created and updated dates, the slug you can use to refer to it for API requests, and more.