Skip to main content

Outcomes API

Record and retrieve outcome events when agents complete valuable work such as negotiations, broadcasts, content publishing, or deal closures. Outcomes power the “Value Delivered” feed on the spend dashboard.

Record an outcome

Records a new outcome event. Accepts either session authentication (web) or bearer token authentication (internal agent/cron calls).

Authentication

The endpoint accepts two forms of authentication:
  1. Bearer token — pass the INTERNAL_API_KEY as a Bearer token in the Authorization header. Used by internal platform services and agents. The userId and agentId are taken from the request body.
  2. Session — a standard authenticated session (cookie-based). The userId is taken from the session automatically.

Request body

Outcome types

Response (bearer token)

Response (session)

Errors

Example (session auth)

Example (bearer token)


List outcomes

Returns outcomes for the authenticated user, ordered by creation date (newest first). Requires session authentication.

Query parameters

Response

Errors

Example