Economic Intelligence

Update Recommendation

Changed on

Deprecated. Use POST /recommended_actions/:id/dismiss instead.Dismisses a ready recommendation. Send status: superseded. A recommendation that is already superseded stays unchanged. Other statuses and fields return a 400 that names /api/v1/recommended_actions.

patch/economic_intelligence/{id}

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    HTTP bearer

Path parameters

id, string required

Recommendation ID, prefixed reca_.

Query parameters

account_id, string

Account ID, prefixed biz_. Defaults to the API key's own account.

Headers

Api-Version-Date, string
Example:2026-11-30

Pins the request to a dated API version.

Request body

object required
status, 'superseded' required

Use superseded to dismiss a ready recommendation.

Example request

{
  "status": "superseded"
}

Response

recommendation superseded

EconomicIntelligence required
account_id, string required

ID of the account this recommendation is for, prefixed biz_.

action_type, string nullable required

Type of action recommended, or null when no type is assigned. New values may be added; handle unknown types gracefully.

created_at, string required

When the recommendation was created, as an ISO 8601 timestamp.

executed_at, string nullable required

When the recommendation was carried out, as an ISO 8601 timestamp, or null if it has not been.

id, string required

Recommendation ID, prefixed reca_.

reasoning, string nullable required

Evidence and metrics supporting the recommendation, or null when no reasoning was provided.

result_url, string nullable required

Where to view what the run produced, such as the published website or created product, or null when there is nothing to view.

run_by_user_id, string nullable required

The user who started the run, prefixed user_, or null if it has not run or was started without a user, such as with an API key.

run_ended_at, string nullable required

When the run ended, whether executed or incomplete, as an ISO 8601 timestamp, or null if it has not ended.

run_started_at, string nullable required

When the run started, as an ISO 8601 timestamp, or null if it has not run.

status, 'queued' | 'pending' | 'ready' | 'running' | 'executed' | 'incomplete' | 'superseded' required

queued waits for generation. pending is being generated or prepared. ready can run. running is sending its API calls. executed was carried out. incomplete ended before it was carried out. superseded was rejected or replaced.

superseded_at, string nullable required

When the recommendation was rejected or replaced, as an ISO 8601 timestamp, or null if neither has occurred.

title, string nullable required

Recommended action and its expected benefit, or null until generated.

Example response

{
  "account_id": "biz_xxxxxxxxxxxxxx",
  "action_type": "improve_landing_page",
  "created_at": "2026-01-01T12:00:00.000Z",
  "id": "reca_xxxxxxxxxxxxxx",
  "reasoning": "Capped 9 of 14 days.",
  "run_by_user_id": "user_xxxxxxxxxxxxxx",
  "run_ended_at": "2026-01-01T12:00:00.000Z",
  "run_started_at": "2026-01-01T12:00:00.000Z",
  "status": "executed",
  "superseded_at": "2026-01-01T12:00:00.000Z",
  "title": "Move $180 from 3 dead ad groups into BATCH#3, +1.7x return"
}

Changes

    • breaking

      the request property status became required

    • breaking

      removed the enum value acknowledged of the request property status

    • breaking

      removed the enum value executed of the request property status

    18 more changes in this revision