How to execute a document using the Logic API
POST /documents/{id}/executions
endpoint to run a document with input and receive the output.
POST
request to the endpoint with your input
as the body.
Calling a document will differ depending on the input schema of your document. The following example shows how to make a request to a document of your choosing. You can see a more specific example below.
{YOUR INPUT JSON HERE}
with the correct input for your document. You can find the required fields in your document’s Input Schema.content
field. This document is used as a Redact PII API.
You pass in a string, and it will return the string with PII redacted, as well as an array of the redacted entities. The following example shows how to make a request to this document.