Felo API PlatformFelo API Platform

Data API / Exa / Agent

Submit an asynchronous research Agent run.

Submit an asynchronous research task. query and Idempotency-Key are required. Configure effort, outputSchema, dataSources and previousRunId as needed. HTTP 202 returns a job; poll get_exa_agent_run until completed, failed or cancelled. Completed output contains text, structured data and grounding. Reusing an Idempotency-Key returns the existing job. Job pricing fields are provider metadata, not Felo billing records.

Параметры

заголовок

  • Idempotency-KeystringОбязательный

    Unique key (1 to 191 characters) that makes the submit idempotent. Re-submitting with the same key and request fingerprint returns the original run.

Тело запроса

  • querystringОбязательный

    The natural-language research query.

  • outputSchemaobjectНеобязательный

    JSON Schema used to validate the structured output.

  • inputobjectНеобязательный

    Row-processing input: rows to process and exclusions.

  • dataarrayНеобязательный

    Input rows for the run.

  • exclusionНеобязательный

    Items to exclude from processing.

  • effortstringНеобязательный

    Compute/depth tier for the run.

  • previousRunIdstringНеобязательный

    Continue from a previously completed run.

  • dataSourcesarrayНеобязательный

    Third-party data sources (Exa Connect) the Agent is granted access to.

Пример запроса

curl -X POST "https://openapi.felo.ai/v1/beta/exa/agent/runs" \
  -H "Authorization: Bearer $FELO_API_KEY" \
  -H "Idempotency-Key: <string>" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "<string>",
  "outputSchema": {},
  "input": {},
  "effort": "<string>",
  "previousRunId": "<string>",
  "dataSources": "<string>"
}'

Ответ

Поля ответа

  • idstringНеобязательный

    Job identifier. Use it with the corresponding Felo polling endpoint.

  • objectstringНеобязательный

    Always "integration_async_job".

  • endpointstringНеобязательный

    Provider operation identifier stored with the job. This metadata is not a Felo polling URL; use the documented Felo job path or Location header.

  • statusstringНеобязательный

    Допустимые значения: queued · running · completed · failed · cancelled

    Customer-facing lifecycle status. queued and running are non-terminal; completed, failed, and cancelled are terminal.

  • createdAtstringНеобязательный

    When the job was accepted.

  • completedAtНеобязательный

    When the job reached a terminal status. Null while the job is still queued or running.

  • pricingobjectНеобязательный
  • currencystringНеобязательный
  • authorizedMicrosUSDintegerНеобязательный

    Provider authorization metadata in micro-USD. This is not a Felo credit hold or billing record.

  • finalMicrosUSDНеобязательный

    Provider settlement metadata in micro-USD, nullable before settlement. This is not the Felo charge.

  • billingModestringНеобязательный

    Provider job billing mode. Felo charges follow Felo billing records.

  • outputНеобязательный

    Job result payload. Present only once status is completed. For Agent Runs this is the structured research result.

  • outputExpiredbooleanНеобязательный

    True when the result has been retained past its retention window and is no longer retrievable.

  • errorНеобязательный

    Present when status is failed. Null otherwise.