The endpoints are named agents, but they list and run Workflows, the node-based automations from the Workflow Builder. Agents built with AI Marketer (Aim) aren’t available through the API yet.
Replace
your_api_key, your_agent_id, and your_run_id with your actual values. Use the list endpoint first to discover the Workflows available to your organization.Starter Template walkthrough
Suppose you created a Workflow using Profound’s Starter Template. This Workflow has one required text input labeled Any Text (This is an example input). This is the typical flow:- Use List Agents to find the Workflow ID.
- Use Get an Agent to inspect the input schema.
- Use Run an Agent with an
inputsobject keyed by the schema’s property names. - Use Get an Agent Run to check whether the run succeeded or failed.
1. List Agents
First, identify the Workflow you want to run:2. Get an Agent
Next, retrieve the Workflow and inspect its schema. This response gives you the Workflow’s input schema and output schema as JSON Schema. You useschema.input to determine which fields are required and which variable IDs to send in the inputs object when you run the Workflow. You can also use schema.output to understand the shape of the result you’ll get back from the run.
3. Run an Agent
Now start a run using that input key:This endpoint returns
202 Accepted. A successful submission only means the run was accepted; you still need to fetch the run to see whether it ultimately succeeded or failed.