Runtime Snapshots
UsePOST /runtime-snapshots/upsert to synchronize account runtime-strategy state into Phonefarm.
Request Example
Success Responses
Applied update:Request Fields
| Field | Type | Required | Notes |
|---|---|---|---|
account_id | string | yes | Active Phonefarm account id. |
ugc_account_id | string | yes | Upstream UGC Tracker account id. |
snapshot_id | string | yes | Upstream snapshot id. |
strategy_version | integer | yes | Positive integer strategy version. |
content_hash | string | yes | Caller-provided content hash. |
strategy_synced_at | string | yes | ISO-8601 timestamp. |
stage | string or null | no | Free-form current stage label. |
active_action | string or null | no | Free-form current action label. |
active_skills | string[] | no | Optional active skills list. |
personality | object | yes | Strategy/personality object. |
Stale Update Rules
Phonefarm ignores incoming snapshots when:- stored
strategy_versionis greater than the incoming version - or versions match and stored
strategy_synced_atis newer than the incoming timestamp
Failure Modes
| Status code | Meaning |
|---|---|
401 | Missing or invalid bearer token. |
404 | Account not found or inactive. |
422 | Invalid payload or timestamp format. |
500 | Unexpected update failure. |