Twin Export
Export all stored AI Twin data for GDPR compliance (right of access, right to erasure).
Status: Planned (Phase 1, Milestone M1.1)
Endpoints
| Method | Path | Description | Auth | Rate Limit |
|---|---|---|---|---|
| GET | /twin/export | Export full Twin data as JSON | JWT | 5/min |
GET /twin/export
Request
No path or query parameters. Requires a valid JWT Bearer token; the export covers only the data associated with the authenticated user's Twin.
Response
Returns all Twin-associated data in a single JSON payload:
json
{
"data": {
"twin": {
"id": "twin-abc",
"name": "My Twin",
"personalityProfile": {
"goals": ["Ship Q2 product launch"],
"styleProfile": { "verbosity": "concise", "format": "bullets", "tone": "professional" },
"toolPreferences": { "notion-connector": 0.85, "github-connector": 0.72 },
"expertiseSignals": [{ "topic": "SaaS", "confidence": 0.9 }]
},
"knowledgeSummary": "SaaS product builder focused on Q2 launch...",
"createdAt": "2026-04-01T00:00:00.000Z"
},
"memories": [
{
"id": "mem-1",
"content": "Prefers bullet-point outputs",
"type": "preference",
"importance": 8,
"createdAt": "2026-04-02T00:00:00.000Z"
}
],
"behavioralEvidence": [
{
"evidenceType": "chain_created",
"evidenceData": { "chainTitle": "Daily Standup Notes" },
"recordedAt": "2026-04-03T00:00:00.000Z"
}
],
"workspacePolicies": [
{
"workspaceId": "ws-123",
"policyConfig": { "allowAutoComplete": true },
"behavioralView": {}
}
]
}
}Code Example
bash
curl https://api.chainabit.com/api/v1/twin/export \
-H "Authorization: Bearer $TOKEN"