# Chatous Get Account State API

> Read your own Chatous account's profile, its open conversations and their message history in one bounded call. Takes your connect.sid session cookie. Chatous exposes no REST endpoint for any of this, so the account's WebSocket opening burst is the only source.

Category: [Social Media APIs](https://upapi.io/apis/social-media) · Last updated 2026-11-07

## How to call it

- Endpoint: `POST https://api.upapi.io/chatous-get-account-state.get`, key in the `X-Api-Key` header, JSON body.
- Cost: 4 weighted units per call.
- Timeout: 40 seconds.
- Cache: none; every call runs the operation.
- Try it without writing code: https://app.upapi.io/try/chatous-get-account-state.get

```bash
curl -X POST https://api.upapi.io/chatous-get-account-state.get \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY' \
  -d '{ "connectSid": "example", "maxSeconds": 12, "maxMessages": 300 }'
```

## Request parameters

- `proxyUrl` (string) — Optional proxy URL for the WebSocket. Omit to connect directly. Use the same one across related calls when you want a consistent IP.
- `connectSid` (string, required) — The account's `connect.sid` cookie value, as set on chatous.com when the account signed in.
- `maxSeconds` (number) — How long to hold the socket open collecting the opening burst. Raise it for an account with many conversations; the call returns early once the server stops sending.
- `maxMessages` (integer) — Cap on collected socket frames, so a very busy account cannot stream on.

## Response fields

- `profile` (object, required) — The account's own profile as Chatous pushed it, or null when the burst carried none. Null means 'not sent in this window', never 'no profile'.
- `messages` (array, required) — Message history for the conversations above, oldest first as received.
- `messages[].chatId` (string, required)
- `messages[].fromMe` (boolean, required) — True when this account sent it, from Chatous's own `is_me` flag.
- `messages[].message` (string, required)
- `elapsedMs` (integer, required)
- `fetchedAt` (string, required)
- `frameCount` (integer, required) — Raw socket frames collected, before classification.
- `messageCount` (integer, required)
- `socketOpened` (boolean, required)
- `conversations` (array, required)
- `conversations[].age` (integer | string)
- `conversations[].about` (string)
- `conversations[].gender` (string)
- `conversations[].chat_id` (string)
- `conversations[].user_id` (string)
- `conversations[].location` (string)
- `conversations[].screenname` (string)
- `conversations[].profile_tags` (array)
- `conversations[].profile_photo_icon` (string)
- `conversationCount` (integer, required)
- `undecodableItemCount` (integer, required) — Socket items this build could not read. Non-zero means the platform's frame shape has changed and this answer is INCOMPLETE - the account may hold conversations that are missing from the lists above.

## Example request and response

The example response is generated from the published output schema: it shows the shape and field names, not values from a recorded call.

```json
{
  "connectSid": "example",
  "maxSeconds": 12,
  "maxMessages": 300
}
```

```json
{
  "profile": {},
  "messages": [
    {
      "chatId": "example",
      "fromMe": false,
      "message": "example"
    }
  ],
  "elapsedMs": 1,
  "fetchedAt": "example",
  "frameCount": 1,
  "messageCount": 1,
  "socketOpened": false,
  "conversations": [
    {
      "age": 1,
      "about": "example",
      "gender": "example",
      "chat_id": "example",
      "user_id": "example",
      "location": "example",
      "screenname": "example",
      "profile_tags": [
        null
      ],
      "profile_photo_icon": "example"
    }
  ],
  "conversationCount": 1,
  "undecodableItemCount": 1
}
```

## Frequently asked questions

### How much does the Chatous Get Account State API cost per call?

Each call spends 4 weighted units of your plan's monthly quota. Full pricing is at https://upapi.io/pricing.

### How do I authenticate to the Chatous Get Account State API?

Send your key in the X-Api-Key header. A free guest key is available without creating an account.

### Are Chatous Get Account State API responses cached?

No — every call runs the operation live; responses are not cached.

## More Social Media APIs

- [Chatous Poll Events](https://upapi.io/apis/social-media/chatous-poll-events)
- [Chatous Update Profile](https://upapi.io/apis/social-media/chatous-update-profile)
- [Chatous Upload Profile Photo](https://upapi.io/apis/social-media/chatous-upload-profile-photo)
- [Chatous Join Match Queue](https://upapi.io/apis/social-media/chatous-enqueue)
- [Chatous Leave Match Queue](https://upapi.io/apis/social-media/chatous-dequeue)
- [Chatous Login](https://upapi.io/apis/social-media/chatous-login)
- [Chatous Send Message](https://upapi.io/apis/social-media/chatous-send-message)
- [Chatous Check Session](https://upapi.io/apis/social-media/chatous-check-session)
