API reference navigation
POST /v1/agents/{agentName}/jobs

Run an agent

Access
Authenticated
agent:create
Cost
1 credit per result returned
Rate limit
20 / minute per account
Quota
None

Create a job for a task agent. The job is debited at creation (the catalog price) and runs asynchronously: poll GET /v1/agents/jobs/{jobId} for the result. A job that fails before the agent starts is auto-refunded; agent-side failures are not.

Path parameters

  • agentName string required
    company-discoveryrole-discoverysearch-selectreportdeepsearchcompany-contextcard-copytag-developersummarize-developerscore-fitwrite-dossierwrite-dossier-in-contextcold-email-drafteropener-splicerkeyword-chipssearch-anglesshortlist-scout

Request body CreateAgentJobRequest

  • input object default: {}

    The agent’s input, matching its published `inputSchema`. Defaults to an empty object for an agent that needs none.

Responses

  • 200 A sync-tier agent ran in-band; the result is returned here
    • jobId string required

      The created job, for later reference.

    • agent string required

      Which agent ran.

    • status string required

      The final job status. This agent ran in-band, so it is already terminal.

    • result object | null required

      The agent’s output, shaped by its `outputSchema`. Null when the run failed.

  • 202 The job was created (queued, or failed if dispatch broke synchronously)
    • jobId string required

      The created job. Poll `GET` on it for the result.

    • agent string required

      Which agent is running.

    • status string required

      The job status at creation. The work has not finished yet — this response acknowledges the job, it does not carry a result.

  • 401 No or invalid credential
    • code string required

      Stable machine-readable error code. Branch on this, never on the numeric status.

      bad_requestunauthorizedsignature_requiredpayment_requiredforbiddennot_foundconflictgonepayload_too_largeunprocessable_entitytoo_many_requestsinternal_errornot_implementedbilling_unavailablenot_contactablemailbox_link_unavailablemailbox_requiredmail_engine_unavailablewebhook_publisher_unavailabledatabase_unavailableclient_error
    • message string required

      Human-readable explanation of the refusal.

    • status integer required

      The HTTP status code, repeated in the body.

    • remedy object

      A self-serve path forward, when one exists (a 402 points at the credit top-up).

      • kind string required

        What kind of remedy this is, so a client can route it: whether the caller can clear the condition through the API, or a person must act in the web app.

        topupconnect_mailbox
      • url string required

        Where to go to clear the condition: an API path, or a web app page when only a person can.

  • 403 Missing agent:create
    • code string required

      Stable machine-readable error code. Branch on this, never on the numeric status.

      bad_requestunauthorizedsignature_requiredpayment_requiredforbiddennot_foundconflictgonepayload_too_largeunprocessable_entitytoo_many_requestsinternal_errornot_implementedbilling_unavailablenot_contactablemailbox_link_unavailablemailbox_requiredmail_engine_unavailablewebhook_publisher_unavailabledatabase_unavailableclient_error
    • message string required

      Human-readable explanation of the refusal.

    • status integer required

      The HTTP status code, repeated in the body.

    • remedy object

      A self-serve path forward, when one exists (a 402 points at the credit top-up).

      • kind string required

        What kind of remedy this is, so a client can route it: whether the caller can clear the condition through the API, or a person must act in the web app.

        topupconnect_mailbox
      • url string required

        Where to go to clear the condition: an API path, or a web app page when only a person can.

  • 429 Rate limit exceeded
    • code string required

      Stable machine-readable error code. Branch on this, never on the numeric status.

      bad_requestunauthorizedsignature_requiredpayment_requiredforbiddennot_foundconflictgonepayload_too_largeunprocessable_entitytoo_many_requestsinternal_errornot_implementedbilling_unavailablenot_contactablemailbox_link_unavailablemailbox_requiredmail_engine_unavailablewebhook_publisher_unavailabledatabase_unavailableclient_error
    • message string required

      Human-readable explanation of the refusal.

    • status integer required

      The HTTP status code, repeated in the body.

    • remedy object

      A self-serve path forward, when one exists (a 402 points at the credit top-up).

      • kind string required

        What kind of remedy this is, so a client can route it: whether the caller can clear the condition through the API, or a person must act in the web app.

        topupconnect_mailbox
      • url string required

        Where to go to clear the condition: an API path, or a web app page when only a person can.