# Accounts API

> List X, LinkedIn, Bluesky, and Threads accounts connected to your XBeast workspace.

Source: https://xbeast.io/docs/api-accounts

Returns social accounts connected to the API key owner. Use `id` as `account_id` when creating posts. Tokens are never included.

**`GET /api/v1/accounts`**

## Response

```json
{
  "accounts": [
    {
      "id": "123456789",
      "handle": "yourhandle",
      "platform": "x",
      "timezone": "America/New_York"
    }
  ]
}
```

#### Account object

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| id | string | — | Platform user id. Pass as account_id on posts. |
| handle | string | — | Username / handle. |
| platform | string | — | x, linkedin, bluesky, or threads. |
| timezone | string | — | IANA timezone used for the daily post limit. |

**curl**

```bash
curl "https://xbeast.io/api/v1/accounts" \
  -H "Authorization: Bearer xb_live_YOUR_KEY"
```

[Create a post](https://xbeast.io/docs/api-posts.md)
