Apply

List deploy operations for a project

Returns deploy operation snapshots for the authenticated project, newest first. Supports limit, cursor pagination, status filtering, since filtering, optional project_id assertion, and opt-in exact total.

get/apply/v1/operations

Request

  • Base URL: https://api.run402.com
  • URL: https://api.run402.com/apply/v1/operations
  • Auth: API key in header apikey

Query parameters

limitinteger

Maximum operations to return.

beforestring

Operation id cursor. Returns operations older than this operation.

statusstring

Single status or comma-separated statuses, such as failed,rolled_back.

sincestring date-time

Only operations created at or after this timestamp.

project_idstring

Run402 project ID. Public IDs are not UUIDs.

Example:prj_1741340000_0042

Optional assertion that must match the authenticated API-key project.

include_totalboolean

When true, include an exact total count for the filtered result set.

Response

Deploy operations page

has_moreboolean required
next_cursorstring nullable required
totalinteger nullable

Exact count, present only when include_total=true.

Example response

{
  "operations": [
    {
      "project_id": "prj_1741340000_0042",
      "payment_required": {
        "asset": "USDC",
        "reason": "lease_renewal"
      },
      "rehearsal_report": {
        "source_project_id": "prj_1741340000_0042",
        "next_actions": [
          {
            "method": "POST",
            "path": "/tiers/v1/hobby",
            "auth": "x402"
          }
        ]
      },
      "next_actions": [
        {
          "method": "POST",
          "path": "/tiers/v1/hobby",
          "auth": "x402"
        }
      ]
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.