POST
/
v1
/
reports
curl --request POST \
  --url https://api.extruct.ai/v1/reports \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "column_configs": [
    {
      "kind": "agent",
      "name": "Company Description",
      "key": "description",
      "value": {
        "agent_type": "research_pro",
        "prompt": "Research the company {company_name} ({company_website}) and provide a short description.",
        "output_format": "text"
      }
    }
  ],
  "inputs": {
    "company_name": "Extruct",
    "company_website": "https://extruct.ai"
  }
}'
{
  "id": "<string>",
  "name": "<string>",
  "status": "created",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "column_configs": [
    {
      "kind": "input",
      "name": "<string>",
      "key": "<string>"
    }
  ],
  "inputs": {},
  "results": {}
}

Examples

Single Data Point Example

Basic Company Research Report

Detailed Company Analysis Report

These examples demonstrate key features of the Reports API:

  • Simple output formats: text, number, url
  • Basic JSON schemas for structured data
  • Single company focus with specific data points
  • Clear, focused prompts for each data point

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
column_configs
object[]
required
inputs
object
required
name
string | null

Response

200
application/json
Successful Response
id
string
required
status
enum<string>
required
Available options:
created,
in_progress,
done,
failed
created_at
string
required
updated_at
string
required
column_configs
object[]
required
inputs
object
required
name
string | null
results
object | null