> ## Documentation Index
> Fetch the complete documentation index at: https://docs.beem.africa/llms.txt
> Use this file to discover all available pages before exploring further.

# Get active sessions

> Returns active chat sessions for the authenticated vendor.



## OpenAPI

````yaml /openapi/moja.json get /v1/chatapi/active-users
openapi: 3.0.3
info:
  title: Beem MOJA API
  version: 1.0.0
  description: >-
    Merged MOJA API reference covering the Chat API (chatbot-core), WhatsApp
    template broadcast API (bm-broadcast), and the customer-hosted message
    callback webhook.
  contact:
    name: Beem
    url: https://beem.africa
    email: support@beem.africa
servers:
  - url: https://apichatcore.beem.africa
    description: Default — Chat API (chatcore)
security: []
tags: []
paths:
  /v1/chatapi/active-users:
    get:
      summary: Get active sessions
      description: Returns active chat sessions for the authenticated vendor.
      operationId: getActiveSessions
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                description: Users currently in an active 24-hour messaging session.
                type: array
                items:
                  type: object
                  properties:
                    sesssion_start_time:
                      description: When the messaging session started (ISO 8601).
                      type: string
                    channel:
                      description: 'Channel type: whatsapp, facebook, sms, or instagram.'
                      type: string
                    from_addr:
                      description: Your MOJA channel number for this session.
                      type: string
                    username:
                      description: Display name of the user in the active session.
                      type: string
                    last_message:
                      description: Content of the most recent message in the session.
                      type: string
                  additionalProperties: false
        '401':
          description: Unauthorized — invalid or missing API credentials.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  message:
                    type: string
                additionalProperties: true
              examples:
                invalidAuthentication:
                  summary: Invalid authentication
                  value:
                    code: 120
                    message: Invalid Authentication Parameters
      security:
        - basicAuth: []
        - accessToken: []
      servers:
        - url: https://apichatcore.beem.africa
          description: Production — Chat API
        - url: https://dev-apichatcore.beem.africa
          description: Staging — Chat API
components:
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: 'Beem API credentials: API key as username, API secret as password.'
    accessToken:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        Access token only. Send as Authorization: <token> — do not use a Bearer
        prefix.

````