Skip to main content

Export API

Export your account data including profile information, agents, scheduled tasks, and workflows.

Export user data

GET /api/export
Requires session authentication. Returns all data associated with your account as a downloadable JSON file.

Response headers

HeaderValueDescription
Content-Typeapplication/jsonJSON format
Content-Dispositionattachment; filename="agentbot-export-<id>-<date>.json"Triggers a file download. The filename includes a truncated user ID and the current date.
Cache-Controlno-storeResponse is never cached

Response

{
  "exportedAt": "2026-04-02T12:00:00.000Z",
  "version": "1.0",
  "user": {
    "id": "user_abc123",
    "email": "user@example.com",
    "name": "Jane Doe",
    "plan": "solo",
    "role": "user",
    "referralCode": "REF123",
    "referralCredits": 0
  },
  "agents": [
    {
      "id": "agent_xyz",
      "name": "my-agent",
      "model": "gpt-4o",
      "status": "running",
      "createdAt": "2026-03-01T00:00:00.000Z",
      "updatedAt": "2026-04-01T00:00:00.000Z"
    }
  ],
  "scheduledTasks": [
    {
      "id": "task_123",
      "name": "daily-report",
      "cronSchedule": "0 9 * * *",
      "enabled": true,
      "createdAt": "2026-03-15T00:00:00.000Z"
    }
  ],
  "workflows": [
    {
      "id": "wf_456",
      "name": "onboarding-flow",
      "enabled": true,
      "createdAt": "2026-03-20T00:00:00.000Z"
    }
  ]
}

Response fields

FieldTypeDescription
exportedAtstringISO 8601 timestamp of when the export was generated
versionstringExport format version
userobjectYour account profile
user.idstringUser ID
user.emailstringEmail address
user.namestring | nullDisplay name
user.planstring | nullSubscription plan (for example solo, collective, label, network)
user.rolestringAccount role
user.referralCodestring | nullYour referral code
user.referralCreditsnumberAccumulated referral credits
agentsarrayAll agents owned by you
agents[].idstringAgent ID
agents[].namestringAgent name
agents[].modelstringAI model used by the agent
agents[].statusstringCurrent agent status
agents[].createdAtstringISO 8601 creation timestamp
agents[].updatedAtstringISO 8601 last update timestamp
scheduledTasksarrayAll scheduled tasks owned by you
scheduledTasks[].idstringTask ID
scheduledTasks[].namestringTask name
scheduledTasks[].cronSchedulestringCron expression for the schedule
scheduledTasks[].enabledbooleanWhether the task is enabled
scheduledTasks[].createdAtstringISO 8601 creation timestamp
workflowsarrayAll workflows owned by you
workflows[].idstringWorkflow ID
workflows[].namestringWorkflow name
workflows[].enabledbooleanWhether the workflow is enabled
workflows[].createdAtstringISO 8601 creation timestamp

Errors

CodeDescription
401Unauthorized — no valid session
500Export failed. The response includes an error field and a message field with details.