Project Snapshots

Get a project snapshot

Get a project snapshot. Also accepts the project's own service key (serviceKey), scoped to that project: a key for another project is refused 403 for every id, and a service key plus a SIWX header is refused 400 AUTH_CREDENTIALS_AMBIGUOUS.

get/projects/v1/{project_id}/snapshots/{snapshot_id}

Request

  • Base URL: https://api.run402.com
  • URL: https://api.run402.com/projects/v1/{project_id}/snapshots/{snapshot_id}
  • Auth: one of:
    • API key in header SIGN-IN-WITH-X
    • HTTP bearer
    • HTTP bearer

Path parameters

project_idstring required

Run402 project ID. Public IDs are not UUIDs.

Example:prj_1741340000_0042
snapshot_idstring required

Response

Snapshot.

snapshot_idstring required
operation_idstring required

Same value as snapshot_id in v1.

project_idstring required

Run402 project ID. Public IDs are not UUIDs.

kind'manual' | 'pre_migration' | 'pre_restore' | 'scheduled' required
profile'snapshot' required
status'running' | 'ready' | 'failed' | 'expired' required
manifest_sha256string nullable
size_bytesinteger required
live_release_idstring nullable
captured_atstring date-time nullable
expires_atstring date-time nullable
errorobject nullable
created_atstring date-time required
updated_atstring date-time required
labelstring nullable required

Caller label, immutable. Null for platform-created snapshots.

metadataProjectSnapshotMetadata nullable required

Caller metadata: a flat object of string, number, boolean or string[] values, at most 4 KB serialized (the asset-metadata rules). Immutable; never for secrets.

Example response

{
  "project_id": "prj_1741340000_0042",
  "next_actions": [
    {
      "method": "POST",
      "path": "/tiers/v1/hobby",
      "auth": "x402"
    }
  ]
}

Changes

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