You can pass files as the input to an Automation. Each file is first uploaded to Guru, and then the file IDs passed to the invocation endpoint to use as input.

First, complete the following two steps for each file that you wish to upload:

  1. Create a file ID with Guru.
  2. Upload the file.

The File IDs returned from the first step are then used below to invoke the Automation.

POST https://api.getguru.ai/automations/<automation_id>/invocations

After the invocation has begun, invoke the Invocation Status endpoint to check on progress and fetch the output.

Request

automation_id
string

The ID of the automation to invoke. This value can be retrieved from the details page of the Automation on the Guru Console.

files
array

Array of objects. Each object has a file_id property, which is the value returned when the file was created, and an extension property, indicating the type of the file. Accepted values are pdf or txt.

Response

id
string

The unique identifier for this invocation. This value can be used to check the status of the invocation.