Configure your AI Twin
Your AI Twin is system-managed. The public API lets you resolve it, inspect the information available to you, change permitted preferences, and review memories.
Prerequisites
Use a bearer session token and a workspace you can access. Your account must include Twin access. See Prerequisites.
1. Find Your Twin
curl --fail-with-body -sS \
"https://api.chainabit.com/api/v1/agents/twins/resolve?subjectType=chainer&subjectId=me" \
-H "Authorization: Bearer $TOKEN"Use the returned data.twinId as TWIN_ID. See Twin resolution for the response fields. Use your actual workspace identifier as WORKSPACE_ID.
2. Apply Onboarding Preferences
Configure product onboarding in Twin settings. The public API flow here uses the workspace-scoped preference operation in the next step; onboarding controls are not an interchangeable HTTP request.
3. Update Personal Preferences
For a personal Twin you own, this example pauses observation and aggregation:
curl --fail-with-body -sS -X PATCH \
"https://api.chainabit.com/api/v1/workspaces/$WORKSPACE_ID/ai/twins/$TWIN_ID/preferences" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"paused":true}'Send only the settings you intend to change. Personal consent and shared-workspace restrictions have different owners. A setting that does not apply to the target kind of Twin is rejected. See the preference reference for the allowed fields and constraints.
4. Review Memories
curl --fail-with-body -sS \
"https://api.chainabit.com/api/v1/agents/twins/$TWIN_ID/memories?limit=20&offset=0" \
-H "Authorization: Bearer $TOKEN"If a memory is wrong, review the flag operation. To forget a memory, first preview the exact fact, obtain the user's confirmation, and then submit the returned preview receipt. The Twins reference documents the full confirmation sequence.
Failure Behavior
| Status | What to check |
|---|---|
400 | Identifier format, preference values, and whether the setting belongs to this kind of Twin |
401 | Session token |
403 | Workspace access, ownership, policy, and plan access |
404 | Whether the requested Twin or memory is available to you |
429 | The rate-limit response before retrying |