Document Executions

A document execution represents a single run of a document—including the time it ran, its status, and the input/output. You can review document executions to monitor how your document has been used over time.

Get Document Executions

To get the document executions for all your documents, you can use the GET /document_executions/ endpoint.

Example for All Documents

curl https://api.logic.inc/2024-03-01/document_executions/
  -H "Authorization: Bearer $LOGIC_API_TOKEN"
This will return a list of all the executions for the documents in your organization.

List All Document Executions for a Specific Document

To get the document executions for a specific document, you can use the GET /documents/{document_id}/executions endpoint. This will return a list of all the executions for the specified document. You can learn more about how to get the document ID in the Document IDs section.

Example for a Specific Document

curl https://api.logic.inc/2024-03-01/documents/{document_id}/executions/
  -H "Authorization: Bearer $LOGIC_API_TOKEN"
This will return a list of all the executions for a specified document in your organization.
Replace any {id} in the example code, such as {document_id} with the ID you need for your specific API call.