# Chatous Poll Events API

> Listen on your own Chatous account for a bounded window and return the events that arrived: new matches with the partner's profile, incoming messages, chat disconnects and queue acknowledgements. Takes your connect.sid session cookie. Zero events is a valid answer, but an expired session also returns zero events, so check it with chatous-check-session.

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-poll-events.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-poll-events.get

```bash
curl -X POST https://api.upapi.io/chatous-poll-events.get \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY' \
  -d '{ "maxEvents": 50, "connectSid": "example", "maxSeconds": 15 }'
```

## Request parameters

- `proxyUrl` (string) — Optional proxy URL for the WebSocket. Omit to connect directly.
- `maxEvents` (integer) — Return as soon as this many socket frames have arrived.
- `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 listen before returning whatever arrived.

## Response fields

- `events` (array, required)
- `events[].age` (integer | string)
- `events[].raw` (object) — Present only on `unknown`: the frame exactly as Chatous sent it.
- `events[].type` (string, required) — chat = matched with a new person (carries their profile). message = a message in an existing chat. disconnect = a chat ended. queue = the server acknowledged a queue entry. unknown = a frame type this build does not recognise, with the raw payload.
- `events[].about` (string)
- `events[].chatId` (string)
- `events[].fromMe` (boolean)
- `events[].gender` (string)
- `events[].chat_id` (string)
- `events[].message` (string)
- `events[].queueId` (string)
- `events[].user_id` (string)
- `events[].location` (string)
- `events[].endedByMe` (boolean)
- `events[].screenname` (string)
- `events[].profile_tags` (array)
- `events[].profile_photo_icon` (string)
- `elapsedMs` (integer, required)
- `fetchedAt` (string, required)
- `eventCount` (integer, required)
- `socketOpened` (boolean, required)
- `closedByServer` (boolean, required)
- `unknownEventCount` (integer, required) — Frames whose type this build does not recognise. A non-zero value is a shape change worth investigating, not an error.
- `undecodableItemCount` (integer, required) — Socket items this build could not read at all - distinct from `unknown` events, which ARE returned with their payload. Non-zero means frames were lost to a shape change, so a zero-event answer here is not evidence the account was quiet.

## 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
{
  "maxEvents": 50,
  "connectSid": "example",
  "maxSeconds": 15
}
```

```json
{
  "events": [
    {
      "age": 1,
      "raw": {},
      "type": "example",
      "about": "example",
      "chatId": "example",
      "fromMe": false,
      "gender": "example",
      "chat_id": "example",
      "message": "example",
      "queueId": "example",
      "user_id": "example",
      "location": "example",
      "endedByMe": false,
      "screenname": "example",
      "profile_tags": [
        null
      ],
      "profile_photo_icon": "example"
    }
  ],
  "elapsedMs": 1,
  "fetchedAt": "example",
  "eventCount": 1,
  "socketOpened": false,
  "closedByServer": false,
  "unknownEventCount": 1,
  "undecodableItemCount": 1
}
```

## Frequently asked questions

### How much does the Chatous Poll Events 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 Poll Events API?

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

### Are Chatous Poll Events API responses cached?

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

## More Social Media APIs

- [Chatous Get Account State](https://upapi.io/apis/social-media/chatous-get-account-state)
- [Chatous Send Message](https://upapi.io/apis/social-media/chatous-send-message)
- [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 Check Session](https://upapi.io/apis/social-media/chatous-check-session)
- [Chatous End Chat](https://upapi.io/apis/social-media/chatous-end-chat)
- [Chatous Join Match Queue](https://upapi.io/apis/social-media/chatous-enqueue)
- [Chatous Leave Match Queue](https://upapi.io/apis/social-media/chatous-dequeue)
