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

# List a work item's activity

> Every report, decision and change, newest first. To read further back, send the oldest `activity_id` you have as `before`.



## OpenAPI

````yaml /docs/api/openapi-v2.yaml get /work-items/{number}/activities
openapi: 3.1.0
info:
  title: Sleekplan API v2
  version: '2.0'
  description: >-
    The `/v2` namespace sits alongside the existing [`/v1`
    API](/docs/api/overview) — it is not a replacement. The same API key
    authenticates both.


    `/v2` accepts **Bearer tokens only**, and carries no workspace ID in the URL
    because the key identifies the workspace. Changes are additive: fields and
    endpoints are added, never removed or renamed.


    See [API v2](/docs/api/v2) for authentication, the error keys, and the rate
    limit.
servers:
  - url: https://api.sleekplan.com/v2
    description: API Version 2
security:
  - BearerAuth: []
tags:
  - name: Group
    description: B2B groups — companies, accounts or teams — and their members.
  - name: Document
    description: >-
      The thinking behind your feedback — a plan, a spec, research, or the
      record of a decision.
  - name: Work item
    description: >-
      What gets worked on next: a brief, evidence and linked posts, moving
      through spec, plan and build.
paths:
  /work-items/{number}/activities:
    parameters:
      - name: number
        in: path
        required: true
        schema:
          type: integer
    get:
      tags:
        - Work item
      summary: List a work item's activity
      description: >-
        Every report, decision and change, newest first. To read further back,
        send the oldest `activity_id` you have as `before`.
      operationId: v2-list-work-item-activities
      parameters:
        - in: query
          name: before
          schema:
            type: integer
          description: Only entries older than this `activity_id`.
        - in: query
          name: limit
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 50
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                  data:
                    type: object
                    properties:
                      items:
                        type: array
                        items:
                          $ref: '#/components/schemas/WorkItemActivity'
                      has_more:
                        type: boolean
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    WorkItemActivity:
      type: object
      description: >-
        One entry of the log: a report, a decision, or a change made in the
        dashboard or through this API.
      properties:
        activity_id:
          type: integer
        type:
          type: string
          example: plan_ready
        kind:
          type: string
          enum:
            - report
            - decision
            - system
        run_id:
          type:
            - integer
            - 'null'
        channel:
          type: string
          enum:
            - app
            - api
            - mcp
            - system
        agent:
          type:
            - string
            - 'null'
        text:
          type:
            - string
            - 'null'
          description: Markdown.
        data:
          type: object
          description: What the entry records. Keys appear only where they apply.
          properties:
            from_status:
              type: string
            to_status:
              type: string
            stage:
              type: string
            goal:
              type: string
            reason:
              type: string
              description: >-
                `goal` on an approval the work item made by itself because the
                goal lay further.
            url:
              type: string
            repository:
              type: string
            pr_number:
              type: integer
            branch:
              type: string
            document_id:
              type: integer
              description: >-
                The spec or plan a delivery saved or linked, or the document an
                `evidence_added` or `evidence_removed` entry added or removed.
                That entry's `text` is the document's title.
            fields:
              type: array
              items:
                type: string
              example:
                - title
                - priority
              description: >-
                What an update changed, by field name: any of `title`, `brief`,
                `priority`, `component`, `owner_id` and `member_ids`. The last
                two say the owner or the members changed, never who they are.
                Ignore a name you do not know: the list may grow.
            feedback_ids:
              type: array
              items:
                type: integer
            until:
              type: string
              format: date
            evidence_id:
              type: integer
        created:
          type: string
    Error:
      type: object
      properties:
        status:
          type: string
          example: error
        data:
          type: object
          properties:
            key:
              type: string
            message:
              type: string
  responses:
    Unauthorized:
      description: Missing, malformed, or non-API-key credential
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: The key's user lacks the permission for this action
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: No such resource in this workspace
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: Over 300 requests in 60 seconds
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: '`Authorization: Bearer YOUR_API_KEY`. /v2 accepts no other method.'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.