Slack Replies API

The Replies API from Slack — 1 operation(s) for replies.

Documentation

Specifications

Schemas & Data

Other Resources

OpenAPI Specification

slack-replies-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  version: '1.0'
  title: Slack Admin Access Replies API
  description: "The Slack Admin API is a set of privileged endpoints\x14primarily under admin.* with related SCIM and Audit Logs APIs\x14that lets Enterprise Grid owners and admins automate organization\x11 wide management and governance. It covers user lifecycle (provision, suspend, assign roles), workspace and channel administration across workspaces (create, move, archive channels; manage membership and settings), app governance (approve/deny or allowlist/ban apps and install them to workspaces), invite request handling, and security/compliance controls such as information barriers, session and authentication policies, and org\x11level analytics exports. These APIs require elevated admin scopes and are commonly used to power automated onboarding/offboarding, centralized channel and app controls, and integrations with identity, ITSM, and compliance systems."
tags:
- name: Replies
paths:
  /conversations.replies:
    get:
      tags:
      - Replies
      description: Retrieve a thread of messages posted to a conversation
      externalDocs:
        description: API method documentation
        url: https://api.slack.com/methods/conversations.replies
      operationId: getConversationsReplies
      parameters:
      - name: token
        in: query
        description: 'Authentication token. Requires scope: `conversations:history`'
        schema:
          type: string
      - name: channel
        in: query
        description: Conversation ID to fetch thread from.
        schema:
          type: string
      - name: ts
        in: query
        description: Unique identifier of a thread's parent message. `ts` must be the timestamp of an existing message with 0 or more replies. If there are no replies then just the single message referenced by `ts` will return - it is just an ordinary, unthreaded message.
        schema:
          type: number
      - name: latest
        in: query
        description: End of time range of messages to include in results.
        schema:
          type: number
      - name: oldest
        in: query
        description: Start of time range of messages to include in results.
        schema:
          type: number
      - name: inclusive
        in: query
        description: Include messages with latest or oldest timestamp in results only when either timestamp is specified.
        schema:
          type: boolean
      - name: limit
        in: query
        description: The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the users list hasn't been reached.
        schema:
          type: integer
      - name: cursor
        in: query
        description: Paginate through collections of data by setting the `cursor` parameter to a `next_cursor` attribute returned by a previous request's `response_metadata`. Default value fetches the first "page" of the collection. See [pagination](/docs/pagination) for more detail.
        schema:
          type: string
      responses:
        '200':
          description: Typical success response
          content:
            application/json:
              schema:
                title: conversations.replies success schema
                required:
                - messages
                - ok
                type: object
                properties:
                  has_more:
                    type: boolean
                  messages:
                    type: array
                    items:
                      type: object
                  ok:
                    $ref: '#/components/schemas/defs_ok_true'
                additionalProperties: false
                description: Schema for successful response from conversations.replies method
              example:
                has_more: true
                messages:
                - last_read: '1484678597.521003'
                  reply_count: 3
                  subscribed: true
                  text: island
                  thread_ts: '1482960137.003543'
                  ts: '1482960137.003543'
                  type: message
                  unread_count: 0
                  user: U061F7AUR
                - parent_user_id: U061F7AUR
                  text: one island
                  thread_ts: '1482960137.003543'
                  ts: '1483037603.017503'
                  type: message
                  user: U061F7AUR
                - parent_user_id: U061F7AUR
                  text: two island
                  thread_ts: '1482960137.003543'
                  ts: '1483051909.018632'
                  type: message
                  user: U061F7AUR
                - parent_user_id: U061F7AUR
                  text: three for the land
                  thread_ts: '1482960137.003543'
                  ts: '1483125339.020269'
                  type: message
                  user: U061F7AUR
                ok: true
                response_metadata:
                  next_cursor: bmV4dF90czoxNDg0Njc4MjkwNTE3MDkx
        default:
          description: Typical error response
          content:
            application/json:
              schema:
                title: conversations.replies error schema
                required:
                - error
                - ok
                type: object
                properties:
                  callstack:
                    type: string
                    description: 'Note: PHP callstack is only visible in dev/qa'
                  error:
                    type: string
                    enum:
                    - missing_scope
                    - channel_not_found
                    - thread_not_found
                    - not_authed
                    - invalid_auth
                    - account_inactive
                    - invalid_arg_name
                    - invalid_array_arg
                    - invalid_charset
                    - invalid_form_data
                    - invalid_post_type
                    - missing_post_type
                    - team_added_to_org
                    - invalid_json
                    - json_not_object
                    - request_timeout
                    - upgrade_required
                  needed:
                    type: string
                  ok:
                    $ref: '#/components/schemas/defs_ok_false'
                  provided:
                    type: string
                additionalProperties: false
                description: Schema for error response from conversations.replies method
              example:
                error: thread_not_found
                ok: false
      security:
      - slackAuth:
        - channels:history
        - groups:history
        - im:history
        - mpim:history
      summary: Slack Get Conversations Replies
      x-api-evangelist-processing:
        GenerateOperationSummariesFromPath: true
        PascalCaseOperationSummaries: true
        CaselCaseOperationIds: true
        ChooseTags: true
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK