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

# getBotActivities

> Get bot activities.



## OpenAPI

````yaml /openapi.yaml get /getBotActivities
openapi: 3.1.0
info:
  title: AlphaInsider
  version: '1.0'
  description: >-
    The official API and websocket documentation for
    [AlphaInsider.com](https://alphainsider.com/)
servers:
  - url: https://alphainsider.com/api
security: []
tags:
  - name: Introduction
  - name: Authentication
  - name: Users
  - name: Strategies
  - name: Subscriptions
  - name: Payments
  - name: Withdrawals
  - name: Timelines
  - name: Stocks
  - name: Trades
  - name: Webhooks
  - name: Bots
  - name: Websockets
paths:
  /getBotActivities:
    get:
      tags:
        - Bots
      summary: getBotActivities
      description: Get bot activities.
      operationId: getBotActivities
      parameters:
        - $ref: '#/components/parameters/api_token'
        - name: bot_id
          in: query
          required: true
          schema:
            $ref: '#/components/schemas/bot_id'
        - name: bot_activity_id[]
          in: query
          schema:
            type: array
            description: Array of bot activity IDs. Leave empty to get all bot activities.
            maxItems: 100
            items:
              $ref: '#/components/schemas/bot_activity_id'
        - name: type[]
          in: query
          schema:
            type: array
            description: Array of activity types to filter by.
            items:
              type: string
              enum:
                - start
                - stop
                - info
                - warning
                - error
        - name: start_date
          in: query
          schema:
            $ref: '#/components/schemas/start_date'
        - name: end_date
          in: query
          schema:
            $ref: '#/components/schemas/end_date'
        - name: limit
          in: query
          schema:
            $ref: '#/components/schemas/limit'
        - name: offset_id
          in: query
          schema:
            $ref: '#/components/schemas/offset_id'
      responses:
        '200':
          description: Request was successful.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    $ref: '#/components/schemas/success'
                  response:
                    type: array
                    description: >-
                      Endpoint-specific response payload, or an error message
                      when `success` is false.
                    items:
                      type: object
                      properties:
                        bot_activity_id:
                          $ref: '#/components/schemas/bot_activity_id'
                        bot_id:
                          $ref: '#/components/schemas/bot_id'
                        type:
                          type: string
                          enum:
                            - start
                            - stop
                            - info
                            - warning
                            - error
                          description: Type or category for this object.
                        message:
                          type: string
                          description: Activity or status message.
                        created_at:
                          $ref: '#/components/schemas/created_at'
              examples:
                '200':
                  value:
                    success: true
                    response:
                      - bot_activity_id: tI5eyI6xex1Pz-No1XuN-
                        bot_id: h_zZfeqsX9o8hgB8DVc0P
                        type: start
                        message: Bot started.
                        created_at: '2024-10-23T14:46:58.395Z'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
components:
  parameters:
    api_token:
      in: header
      name: Authorization
      description: User API token.
      required: true
      schema:
        type: string
        format: JWT
  schemas:
    bot_id:
      type: string
      description: AlphaInsider bot identifier.
    bot_activity_id:
      type: string
      description: Bot activity identifier.
    start_date:
      type: string
      format: date-time
      description: Start date.
    end_date:
      type: string
      format: date-time
      description: End timestamp for the current period or range.
    limit:
      type: number
      description: Number of results to return.
    offset_id:
      type: string
      description: Offet by ID. Used for pagination.
    success:
      type: boolean
      description: True when the request succeeded.
    created_at:
      type: string
      format: date-time
      description: Creation timestamp.
  responses:
    '400':
      description: Request failed.
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
                description: False when the request failed.
              response:
                type: string
                description: Error message.
          examples:
            '400':
              value:
                success: false
                response: Request failed.
    '401':
      description: Authentication failed.
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
                description: False when the request failed.
              response:
                type: string
                description: Error message.
          examples:
            '401':
              value:
                success: false
                response: Authentication failed.

````