exports

Create, list, and retrieve agent export configurations.


Create Export

Request
POST /api/agents/:agentId/export
Content-Type: application/json

{ "format": "openclaw_json" }

Valid formats: openclaw_json, yaml, system_prompt

Response 201:

Response
{
  "id": "uuid",
  "agentId": "uuid",
  "format": "openclaw_json",
  "exportedBlob": "{ ... }",
  "createdAt": "..."
}

The exportedBlob is the full serialized config as a string.


List All Exports

Returns all exports across all your agents.


Get Single Export


Notes

  • When using the web UI, the on-chain $CWE payment is handled automatically before this endpoint is called

  • When using the API directly, you are responsible for the payment flow

  • Each export creates a permanent, re-downloadable record

Was this helpful?