This guide provides practical examples of common Agent API requests. All examples require authentication via API key.Documentation Index
Fetch the complete documentation index at: https://docs.tryprofound.com/llms.txt
Use this file to discover all available pages before exploring further.
Replace
your_api_key, your_agent_id, and your_run_id with your actual values. Use the list endpoint first to discover the agents available to your organization.Starter Template walkthrough
Suppose you created an agent using Profound’s Starter Template. This agent has one required text input labeled Any Text (This is an example input). This is the typical flow:- Use List Agents to find the agent 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 agent you want to run:2. Get an Agent
Next, retrieve the agent and inspect its schema. This response gives you the agent’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 agent. 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.