X Accounts

List connected X accounts

Returns connected X accounts in creation order. The best-practice contract paginates automatically. Send limit or cursor for legacy pagination. Unpaginated legacy responses retain up to 10,000 accounts.

get/x/accounts

Query parameters

limitinteger

Maximum number of items to return (1-100, default 50). For paid per-result endpoints, the returned count may be lower when remaining credits cannot cover the requested page. If zero paid results are affordable, the endpoint returns 402 insufficient_credits.

cursorstring

Previous nextCursor. Offset pagination is not supported.

Response

X account list

hasMoreboolean

Present on cursor-paginated responses.

nextCursorstring

Pass unchanged as cursor when hasMore is true.

Example response

{
  "accounts": [
    {
      "id": "42",
      "xUserId": "9876543210",
      "xUsername": "elonmusk",
      "status": "active",
      "health": "healthy",
      "createdAt": "2025-01-15T12:00:00Z",
      "updatedAt": "2025-03-10T08:30:00Z"
    }
  ],
  "nextCursor": "MjAyNi0wMS0wMVQwMDowMDowMC4wMDBafDQy"
}

Changes