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

# Get what was written in an activity

> Returns what was written in an activity, in the field for its kind; the others are empty or null. `messages`: an email, Slack, Teams, ticket, Chatter or LinkedIn thread's, oldest first, a page at a time (`limit`, default 100, at most 500; pass `next_cursor` back as `cursor` while `has_more`; a cursor from another activity is a 400), each with its sender (the person, when it was stored with one), an email's recipients and subject, its text as stored when it was ingested, and its attachments by name (never bcc). `note`: a note's text and author. `survey_answers` and `survey_comment`: a survey response's. `campaign_email`: a campaign send's subject and template. `pushed`: a pushed meeting's or event's subject and notes. A meeting has none of them: its words are its transcript, at GET /v1/meetings/{meeting_id}/transcript for one Statisfy's notetaker recorded. This reads the workspace's mail, chats, notes and survey answers: grant activity_content:read only to an integration that may read all of them.



## OpenAPI

````yaml /api/statisfy-api.openapi.json get /v1/activities/{activity_id}/content
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/activities/{activity_id}/content:
    get:
      tags:
        - activities
      summary: Get what was written in an activity
      description: >-
        Returns what was written in an activity, in the field for its kind; the
        others are empty or null. `messages`: an email, Slack, Teams, ticket,
        Chatter or LinkedIn thread's, oldest first, a page at a time (`limit`,
        default 100, at most 500; pass `next_cursor` back as `cursor` while
        `has_more`; a cursor from another activity is a 400), each with its
        sender (the person, when it was stored with one), an email's recipients
        and subject, its text as stored when it was ingested, and its
        attachments by name (never bcc). `note`: a note's text and author.
        `survey_answers` and `survey_comment`: a survey response's.
        `campaign_email`: a campaign send's subject and template. `pushed`: a
        pushed meeting's or event's subject and notes. A meeting has none of
        them: its words are its transcript, at GET
        /v1/meetings/{meeting_id}/transcript for one Statisfy's notetaker
        recorded. This reads the workspace's mail, chats, notes and survey
        answers: grant activity_content:read only to an integration that may
        read all of them.
      operationId: activities_content
      parameters:
        - description: The activity's id, from GET /v1/activities
          in: path
          name: activity_id
          required: true
          schema:
            type: string
        - description: Messages per page
          in: query
          name: limit
          required: false
          schema:
            default: 100
            maximum: 500
            minimum: 1
            type: integer
        - description: '`next_cursor` from the previous page, for more messages'
          in: query
          name: cursor
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            default: null
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActivityContent'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    ActivityContent:
      properties:
        activity_id:
          title: Activity Id
          type: string
        campaign_email:
          anyOf:
            - $ref: '#/components/schemas/ActivityCampaignEmail'
            - type: 'null'
          description: A campaign send's email; null on anything else
        has_more:
          default: false
          description: Whether the thread has more messages than this page
          title: Has More
          type: boolean
        messages:
          description: >-
            A page of an email, Slack, Teams, ticket, Chatter or LinkedIn
            thread's messages, oldest first; empty on any other kind
          items:
            $ref: '#/components/schemas/ActivityMessage'
          title: Messages
          type: array
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          description: Pass as `cursor` for the thread's next messages
          title: Next Cursor
        note:
          anyOf:
            - $ref: '#/components/schemas/ActivityNote'
            - type: 'null'
          description: A note's text and author; null on any other kind
        pushed:
          anyOf:
            - $ref: '#/components/schemas/ActivityPushedContent'
            - type: 'null'
          description: >-
            A pushed meeting's or event's subject and notes; null on anything
            else (a pushed thread's words are its `messages`)
        survey_answers:
          description: >-
            A survey response's answers, in the survey's order; empty on any
            other kind
          items:
            $ref: '#/components/schemas/ActivitySurveyAnswer'
          title: Survey Answers
          type: array
        survey_comment:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            A survey response's overall comment, as the survey tool reports it
            beside the score (some tools keep the respondent's words only here)
          title: Survey Comment
        type:
          anyOf:
            - enum:
                - email
                - meeting
                - slack
                - teams
                - ticket
                - survey
                - chatter
                - note
                - linkedin
                - marketing_event
              type: string
            - type: 'null'
          description: The activity's type
          title: Type
      required:
        - activity_id
      title: ActivityContent
      type: object
    ActivityCampaignEmail:
      properties:
        html:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The email's template as sent, its merge tags not filled in per
            recipient
          title: Html
        subject:
          anyOf:
            - type: string
            - type: 'null'
          title: Subject
      title: ActivityCampaignEmail
      type: object
    ActivityMessage:
      properties:
        ai_written:
          default: false
          description: >-
            Whether an AI wrote it: a digital worker's message, or its draft a
            person sent. A reply a person wrote themselves is not, even when
            Stella suggested it
          title: Ai Written
          type: boolean
        attachments:
          description: Files sent with it, by name only
          items:
            $ref: '#/components/schemas/ActivityAttachment'
          title: Attachments
          type: array
        automated:
          anyOf:
            - type: string
            - type: 'null'
          description: bounce or auto_reply when a mail system sent it rather than a person
          title: Automated
        cc:
          items:
            type: string
          title: Cc
          type: array
        direction:
          anyOf:
            - enum:
                - inbound
                - outbound
              type: string
            - type: 'null'
          description: >-
            inbound (from the customer's side) or outbound (from the workspace);
            null when unknown
          title: Direction
        id:
          title: Id
          type: string
        role:
          anyOf:
            - enum:
                - customer
                - user
                - digital_worker
                - system
              type: string
            - type: 'null'
          description: >-
            Who wrote it: customer, user (a teammate), digital_worker (an AI),
            or system (a mail system's bounce or auto-reply, or the portal's or
            in-app chat's notice that a person will reply; on email, Slack and
            Teams that notice is the digital_worker's). Null when it can't be
            told: a sender who matched no person, one whose type is unset, or a
            message kept only as its source sent it
          title: Role
        sender:
          anyOf:
            - $ref: '#/components/schemas/ActivityMessageSender'
            - type: 'null'
        sent_at:
          anyOf:
            - type: string
            - type: 'null'
          description: ISO 8601 UTC
          title: Sent At
        subject:
          anyOf:
            - type: string
            - type: 'null'
          title: Subject
        text:
          description: The message's text, as stored when it was ingested
          title: Text
          type: string
        to:
          description: An email's recipients
          items:
            type: string
          title: To
          type: array
      required:
        - id
        - text
      title: ActivityMessage
      type: object
    ActivityNote:
      properties:
        author:
          anyOf:
            - $ref: '#/components/schemas/ActivityMessageSender'
            - type: 'null'
          description: Who wrote it; null when it was stored without one
        text:
          description: The note, as its author wrote it
          title: Text
          type: string
      required:
        - text
      title: ActivityNote
      type: object
    ActivityPushedContent:
      properties:
        body:
          anyOf:
            - type: string
            - type: 'null'
          description: As the sender wrote it, in plain text
          title: Body
        subject:
          anyOf:
            - type: string
            - type: 'null'
          title: Subject
      title: ActivityPushedContent
      type: object
    ActivitySurveyAnswer:
      properties:
        answer:
          anyOf:
            - type: string
            - type: 'null'
          description: The choice or score given; null for a free-text question
          title: Answer
        answer_label:
          anyOf:
            - type: string
            - type: 'null'
          description: What the survey tool calls that choice, such as '9 out of 10'
          title: Answer Label
        choices:
          description: The choices picked, on a question that takes several
          items:
            type: string
          title: Choices
          type: array
        comment:
          anyOf:
            - type: string
            - type: 'null'
          description: A comment the respondent added to the answer
          title: Comment
        free_text:
          anyOf:
            - type: string
            - type: 'null'
          description: What the respondent wrote
          title: Free Text
        question:
          anyOf:
            - type: string
            - type: 'null'
          title: Question
        question_id:
          anyOf:
            - type: string
            - type: 'null'
          description: The question's id in the survey tool
          title: Question Id
      title: ActivitySurveyAnswer
      type: object
    ActivityAttachment:
      properties:
        filename:
          anyOf:
            - type: string
            - type: 'null'
          title: Filename
        mime_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Mime Type
        size_bytes:
          anyOf:
            - type: integer
            - type: 'null'
          title: Size Bytes
      title: ActivityAttachment
      type: object
    ActivityMessageSender:
      properties:
        email:
          anyOf:
            - type: string
            - type: 'null'
          title: Email
        id:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The person's id; null when it was stored without one: a sender who
            matched no person, a message kept only as its source sent it (a
            ticket's, Chatter's, an older email's), or a note Stella or a
            workflow wrote
          title: Id
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        type:
          anyOf:
            - enum:
                - user
                - contact
                - vendor
                - digital_worker
              type: string
            - type: 'null'
          title: Type
      title: ActivityMessageSender
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

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