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

# PublicApiListActivities

> GET /api/v1/organizations/{orgId}/workspaces/{wsId}/activities

Use this endpoint through the Developer API or the matching `firstsales` CLI command when available. Responses use the stable FirstSales public error envelope.


## OpenAPI

````yaml GET /api/v1/organizations/{orgId}/workspaces/{wsId}/activities
openapi: 3.1.0
info:
  title: FirstSales Developer API
  version: 1.0.0
  description: >-
    Public v1 developer API for FirstSales.io. Generated from live step
    definitions — do not hand-edit.
servers:
  - url: https://sandbox.api.app.firstsales.io
  - url: https://api.app.firstsales.io
security:
  - bearerAuth: []
tags:
  - name: Activities
  - name: Alerts
  - name: API Keys
  - name: Authentication
  - name: Billing
  - name: Campaigns
  - name: Companies
  - name: Connectors
  - name: Contacts
  - name: Copilot
  - name: Dashboard
  - name: Deals
  - name: Email Authentication
  - name: Inbox
  - name: Knowledge Bases
  - name: Learning
  - name: Offerings
  - name: Organizations
  - name: Sequence Library
  - name: Team
  - name: Tracking Domains
  - name: Warmup
paths:
  /api/v1/organizations/{orgId}/workspaces/{wsId}/activities:
    get:
      tags:
        - Activities
      summary: PublicApiListActivities
      operationId: listActivities
      parameters:
        - name: orgId
          in: path
          required: true
          schema:
            type: string
        - name: wsId
          in: path
          required: true
          schema:
            type: string
        - name: page
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            default: 1
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
        - name: contactId
          in: query
          required: false
          schema:
            type: string
            pattern: ^[0-9a-fA-F]{24}$
        - name: companyId
          in: query
          required: false
          schema:
            type: string
            pattern: ^[0-9a-fA-F]{24}$
        - name: type
          in: query
          required: false
          schema:
            type: string
            enum:
              - deal_stage
              - deal_won
              - deal_lost
              - note
              - call
              - meeting
              - task
              - file
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicActivityListResponse'
        '400':
          description: Public API error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicErrorEnvelope'
        '401':
          description: Public API error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicErrorEnvelope'
        '403':
          description: Public API error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicErrorEnvelope'
        '404':
          description: Public API error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicErrorEnvelope'
        '429':
          description: Public API error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicErrorEnvelope'
        '500':
          description: Public API error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicErrorEnvelope'
        '503':
          description: Public API error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicErrorEnvelope'
        default:
          description: Error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicErrorEnvelope'
      security:
        - developerKeyBearer: []
components:
  schemas:
    PublicActivityListResponse:
      type: object
      properties:
        activities:
          maxItems: 100
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                minLength: 1
              workspaceId:
                type: string
                minLength: 1
              type:
                type: string
                enum:
                  - deal_stage
                  - deal_won
                  - deal_lost
                  - note
                  - call
                  - meeting
                  - task
                  - file
              dealId:
                anyOf:
                  - type: string
                  - type: 'null'
              contactId:
                type: string
                minLength: 1
              companyId:
                anyOf:
                  - type: string
                  - type: 'null'
              actor:
                anyOf:
                  - type: string
                  - type: 'null'
              occurredAt:
                anyOf:
                  - type: string
                  - type: 'null'
              payload:
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
              createdAt:
                anyOf:
                  - type: string
                  - type: 'null'
              updatedAt:
                anyOf:
                  - type: string
                  - type: 'null'
            required:
              - id
              - workspaceId
              - type
              - dealId
              - contactId
              - companyId
              - actor
              - occurredAt
              - payload
              - createdAt
              - updatedAt
            additionalProperties: false
        pagination:
          type: object
          properties:
            page:
              type: integer
              minimum: 1
              maximum: 9007199254740991
            limit:
              type: integer
              minimum: 1
              maximum: 100
            total:
              type: integer
              minimum: 0
              maximum: 9007199254740991
            totalPages:
              type: integer
              minimum: 0
              maximum: 9007199254740991
          required:
            - page
            - limit
            - total
            - totalPages
          additionalProperties: false
      required:
        - activities
        - pagination
      additionalProperties: false
    PublicErrorEnvelope:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            requestId:
              type: string
            details:
              type: object
              additionalProperties: true
          required:
            - code
            - message
            - requestId
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Legacy compatibility bearer scheme for generated consumers.
    developerKeyBearer:
      type: http
      scheme: bearer
      description: FirstSales developer API key bearer token (fs-key-*).

````