User X handle API
Manage the X (Twitter) handle linked to your account. Your agent uses this handle to mention you, credit content, and surface your posts.Get X handle
Response
| Field | Type | Description |
|---|---|---|
handle | string | null | The saved X handle (without the @ prefix), or null if no handle is set |
Errors
| Code | Description |
|---|---|
| 401 | Unauthorized — no valid session |
Example
Update X handle
@ is automatically stripped before validation and storage.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
handle | string | null | Yes | X handle (without the @ prefix). Pass null or an empty string to clear the handle. |
Response
| Field | Type | Description |
|---|---|---|
ok | boolean | Whether the update succeeded |
handle | string | null | The saved handle, or null if the handle was cleared |
Errors
| Code | Description |
|---|---|
| 400 | Invalid X handle — must contain only letters, numbers, and underscores (1–50 characters) |
| 401 | Unauthorized — no valid session |