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

# Get Task

> Read a task

One task with its fields and, for Slack List tasks, the work Avazal tracks for it. id comes from tasks\_list.

Requires the `tasks:read` scope.


## OpenAPI

````yaml /api-reference/openapi.json post /v1/tasks.get
openapi: 3.1.0
info:
  title: Avazal API
  version: '1'
  description: >-
    Every operation is `POST /v1/<concept>.<verb>` with a JSON body, so agents
    and scripts call Avazal the same way. Slack, email, Linear, GitHub and
    calendars are sources behind Avazal's concepts: a task is a task whether it
    lives in a Slack List or Linear.


    Authenticate with an API key from Settings → API keys, sent as `x-api-key:
    avz_…` or `Authorization: Bearer avz_…`. A key acts as the member who
    created it, in one organization, and only with the scopes it was given.


    The MCP server at `/mcp` exposes the same operations as tools.


    Tagged JSON errors that include a `message` also include a machine-readable
    `code` matching `_tag`. Branch on `code`, not the human-readable message.


    Guides, scopes and MCP setup are at https://docs.avazal.com.
servers:
  - url: https://api.avazal.com
    description: Avazal
security:
  - apiKey: []
  - bearer: []
tags:
  - name: me
    x-group: Profile
  - name: accounts
    x-group: Accounts
  - name: settings
    x-group: Settings
  - name: search
    x-group: Search
  - name: inbox
    x-group: Inbox
  - name: conversations
    x-group: Conversations
  - name: messages
    x-group: Messages
  - name: reactions
    x-group: Reactions
  - name: emoji
    x-group: Emoji
  - name: files
    x-group: Files
  - name: people
    x-group: People
  - name: lists
    x-group: Lists
  - name: tasks
    x-group: Tasks
  - name: comments
    x-group: Comments
  - name: links
    x-group: Links
  - name: shares
    x-group: Shares
  - name: documents
    x-group: Documents
  - name: events
    x-group: Events
  - name: notifications
    x-group: Notifications
  - name: triggers
    x-group: Triggers
  - name: runs
    x-group: Runs
  - name: asks
    x-group: Asks
paths:
  /v1/tasks.get:
    post:
      tags:
        - tasks
      summary: Read a task
      description: >-
        One task with its fields and, for Slack List tasks, the work Avazal
        tracks for it. id comes from tasks_list.


        Requires the `tasks:read` scope.
      operationId: tasks.get
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - id
              properties:
                id:
                  $ref: '#/components/schemas/PublicId'
              additionalProperties: false
        required: true
      responses:
        '200':
          description: >-
            A task in a Slack List or Linear. Common fields are null or empty
            when the list has no such field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicTask'
        '400':
          description: The request did not match the expected schema
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/HttpApiDecodeError'
                  - $ref: '#/components/schemas/InvalidId'
        '401':
          description: KeyRequired
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KeyRequired'
        '403':
          description: AccessPending
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/AccessPending'
                  - $ref: '#/components/schemas/ScopeRequired'
                  - $ref: '#/components/schemas/OutsideRun'
                  - $ref: '#/components/schemas/ToolNotGranted'
        '409':
          description: AskFirst
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AskFirst'
        '422':
          description: Unsupported
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Unsupported'
        '500':
          description: Unexpected server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServerError'
        '503':
          description: Service unavailable
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/ServerError'
                  - type: object
                    required:
                      - error
                    properties:
                      error:
                        type: string
                    additionalProperties: false
      security:
        - apiKey: []
        - bearer: []
components:
  schemas:
    PublicId:
      type: string
      description: >-
        An id from another result: chcv_… (channel or DM), chcv_…@<ts>
        (message), chcv_…/<file> (Slack List or canvas), chcv_…/<file>/<item>
        (list item), mthr_ (email thread), mmsg_, mdrf_, mcmp_, mout_, att_,
        macc_, doc_, drev_, cevt_, cnt_, trg_, arun_, aart_, aask_, blnk_, a
        Linear issue such as ENG-123, or linear:team:<id>, linear:view:<id>,
        linear:mine.
    PublicTask:
      type: object
      required:
        - id
        - url
        - source
        - list
        - title
        - done
        - status
        - assignees
        - due
        - priority
        - description
        - labels
        - fields
        - comments
        - updatedAt
      properties:
        id:
          type: string
          description: The object's id. Every operation that takes it accepts it.
        url:
          anyOf:
            - type: string
            - type: 'null'
          description: A link that opens the object where it lives.
        source:
          $ref: '#/components/schemas/Source'
        list:
          type: string
          description: The list's id.
        title:
          type: string
        done:
          anyOf:
            - type: boolean
            - type: 'null'
        status:
          anyOf:
            - type: string
            - type: 'null'
        assignees:
          type: array
          items:
            $ref: '#/components/schemas/TaskPerson'
        due:
          anyOf:
            - type: string
              description: a string matching the pattern ^\d{4}-\d{2}-\d{2}$
              pattern: ^\d{4}-\d{2}-\d{2}$
            - type: 'null'
        priority:
          anyOf:
            - type: string
            - type: 'null'
        description:
          anyOf:
            - type: string
            - type: 'null'
        labels:
          type: array
          items:
            type: string
        fields:
          type: object
          required: []
          properties: {}
          additionalProperties:
            $ref: '#/components/schemas/FieldValue'
          description: Every field's raw value by field id, as lists_get names them.
        comments:
          anyOf:
            - $ref: '#/components/schemas/NonNegativeInt'
            - type: 'null'
        updatedAt:
          anyOf:
            - $ref: '#/components/schemas/Date'
            - type: 'null'
        work:
          allOf:
            - $ref: '#/components/schemas/TaskWork'
          description: Only on tasks_get, for Slack List tasks.
        undo:
          type: object
          required:
            - tool
            - ref
          properties:
            tool:
              $ref: '#/components/schemas/OperationName'
            ref:
              type: string
          additionalProperties: false
          description: >-
            Set when tasks_create linked the task to a message, or when
            tasks_update changed a Slack List task's fields; undoes that change.
      additionalProperties: false
      description: >-
        A task in a Slack List or Linear. Common fields are null or empty when
        the list has no such field.
    HttpApiDecodeError:
      type: object
      required:
        - issues
        - message
        - _tag
        - code
      properties:
        issues:
          type: array
          items:
            $ref: '#/components/schemas/Issue'
        message:
          type: string
        _tag:
          type: string
          enum:
            - HttpApiDecodeError
        code:
          type: string
          enum:
            - HttpApiDecodeError
      additionalProperties: false
      description: The request did not match the expected schema
    InvalidId:
      type: object
      required:
        - id
        - message
        - _tag
        - code
      properties:
        id:
          type: string
          description: The id that was passed and could not be read.
        message:
          type: string
        _tag:
          type: string
          enum:
            - InvalidId
        code:
          type: string
          enum:
            - InvalidId
      additionalProperties: false
    KeyRequired:
      type: object
      required:
        - message
        - _tag
        - code
      properties:
        message:
          type: string
        _tag:
          type: string
          enum:
            - KeyRequired
        code:
          type: string
          enum:
            - KeyRequired
      additionalProperties: false
    AccessPending:
      type: object
      required:
        - _tag
      properties:
        message:
          type: string
        _tag:
          type: string
          enum:
            - AccessPending
        code:
          type: string
          enum:
            - AccessPending
      additionalProperties: false
    ScopeRequired:
      type: object
      required:
        - scope
        - message
        - _tag
        - code
      properties:
        scope:
          $ref: '#/components/schemas/AgentScope'
        message:
          type: string
        _tag:
          type: string
          enum:
            - ScopeRequired
        code:
          type: string
          enum:
            - ScopeRequired
      additionalProperties: false
    OutsideRun:
      type: object
      required:
        - message
        - _tag
        - code
      properties:
        message:
          type: string
        _tag:
          type: string
          enum:
            - OutsideRun
        code:
          type: string
          enum:
            - OutsideRun
      additionalProperties: false
    ToolNotGranted:
      type: object
      required:
        - tool
        - message
        - _tag
        - code
      properties:
        tool:
          type: string
        message:
          type: string
        _tag:
          type: string
          enum:
            - ToolNotGranted
        code:
          type: string
          enum:
            - ToolNotGranted
      additionalProperties: false
    AskFirst:
      type: object
      required:
        - action
        - message
        - _tag
        - code
      properties:
        action:
          type: object
          required:
            - tool
            - input
          properties:
            tool:
              $ref: '#/components/schemas/OperationName'
            input:
              type: object
              required: []
              properties: {}
              additionalProperties:
                $id: /schemas/unknown
                title: unknown
          additionalProperties: false
        message:
          type: string
        _tag:
          type: string
          enum:
            - AskFirst
        code:
          type: string
          enum:
            - AskFirst
      additionalProperties: false
    Unsupported:
      type: object
      required:
        - message
        - _tag
        - code
      properties:
        message:
          type: string
        _tag:
          type: string
          enum:
            - Unsupported
        code:
          type: string
          enum:
            - Unsupported
      additionalProperties: false
    ServerError:
      type: object
      required:
        - traceId
        - _tag
      properties:
        message:
          type: string
        traceId:
          type: string
          description: The request trace ID, also sent in the x-trace-id header.
        _tag:
          type: string
          enum:
            - ServerError
        code:
          type: string
          enum:
            - ServerError
      additionalProperties: false
    Source:
      type: string
      enum:
        - avazal
        - slack
        - gmail
        - google-calendar
        - google-drive
        - linear
        - github
        - contacts
      description: Where the object lives. Avazal is the source of its own objects.
    TaskPerson:
      type: object
      required:
        - id
        - name
      properties:
        id:
          type: string
          description: Pass this in assignees. Slack members also work in people_get.
        name:
          type: string
      additionalProperties: false
    FieldValue:
      anyOf:
        - type: object
          required:
            - _tag
            - rich
          properties:
            _tag:
              type: string
              enum:
                - Text
            rich:
              $ref: '#/components/schemas/RichText'
          additionalProperties: false
        - type: object
          required:
            - _tag
            - ids
          properties:
            _tag:
              type: string
              enum:
                - Choices
            ids:
              type: array
              items:
                type: string
              description: Choice ids from the field's options in lists_get.
          additionalProperties: false
        - type: object
          required:
            - _tag
            - ids
          properties:
            _tag:
              type: string
              enum:
                - People
            ids:
              type: array
              items:
                $ref: '#/components/schemas/SlackMemberId'
          additionalProperties: false
        - type: object
          required:
            - _tag
            - date
          properties:
            _tag:
              type: string
              enum:
                - Date
            date:
              type: string
              description: a string matching the pattern ^\d{4}-\d{2}-\d{2}$
              pattern: ^\d{4}-\d{2}-\d{2}$
          additionalProperties: false
        - type: object
          required:
            - _tag
            - value
          properties:
            _tag:
              type: string
              enum:
                - Number
            value:
              type: number
          additionalProperties: false
        - type: object
          required:
            - _tag
            - checked
          properties:
            _tag:
              type: string
              enum:
                - Checkbox
            checked:
              type: boolean
          additionalProperties: false
        - type: object
          required:
            - _tag
            - url
          properties:
            _tag:
              type: string
              enum:
                - Link
            url:
              type: string
          additionalProperties: false
        - type: object
          required:
            - _tag
            - value
          properties:
            _tag:
              type: string
              enum:
                - Contact
            value:
              type: string
          additionalProperties: false
        - type: object
          required:
            - _tag
            - refs
          properties:
            _tag:
              type: string
              enum:
                - Refs
            refs:
              type: array
              items:
                type: object
                required:
                  - kind
                  - url
                  - label
                properties:
                  kind:
                    type: string
                    enum:
                      - message
                      - file
                      - canvas
                      - record
                      - channel
                  url:
                    type: string
                  label:
                    anyOf:
                      - type: string
                      - type: 'null'
                additionalProperties: false
          additionalProperties: false
        - type: object
          required:
            - _tag
          properties:
            _tag:
              type: string
              enum:
                - Empty
          additionalProperties: false
        - type: object
          required:
            - _tag
            - claim
          properties:
            _tag:
              type: string
              enum:
                - Agent
            claim:
              $ref: '#/components/schemas/AgentClaim'
          additionalProperties: false
    NonNegativeInt:
      type: integer
      title: int
      minimum: 0
    Date:
      type: string
    TaskWork:
      type: object
      required:
        - id
        - development
        - documents
        - completeOnMerge
        - archived
      properties:
        id:
          type: string
          description: A Slack List item that Avazal tracks, its work.id. From tasks_get.
        development:
          anyOf:
            - type: object
              required:
                - kind
                - url
                - repository
                - branch
                - pulls
                - selectedPullId
              properties:
                kind:
                  type: string
                  enum:
                    - branch
                    - pull
                url:
                  type: string
                repository:
                  type: string
                branch:
                  type: string
                pulls:
                  type: array
                  items:
                    type: object
                    required:
                      - id
                      - number
                      - url
                      - state
                    properties:
                      id:
                        type: string
                        description: >-
                          A GitHub pull request on the task's branch, as Avazal
                          tracks it. Pass it as development.pullId on
                          tasks_update.
                      number:
                        $ref: '#/components/schemas/Int'
                      url:
                        type: string
                      state:
                        type: string
                        enum:
                          - open
                          - closed
                          - merged
                    additionalProperties: false
                selectedPullId:
                  anyOf:
                    - type: string
                      description: >-
                        A GitHub pull request on the task's branch, as Avazal
                        tracks it. Pass it as development.pullId on
                        tasks_update.
                    - type: 'null'
              additionalProperties: false
            - type: 'null'
        documents:
          type: array
          items:
            type: object
            required:
              - id
              - url
              - name
            properties:
              id:
                type: string
                description: The attached document, a doc_ id for documents_get.
              url:
                type: string
              name:
                anyOf:
                  - type: string
                  - type: 'null'
            additionalProperties: false
        completeOnMerge:
          type: boolean
        archived:
          type: boolean
      additionalProperties: false
      description: >-
        What Avazal tracks for a Slack List task: its linked branch or pull
        request, attached documents, whether it completes itself when the pull
        request merges, and whether it is archived.
    OperationName:
      type: string
      description: An Avazal tool name, e.g. messages_send.
      pattern: ^[a-z]+_[a-z_]+$
    Issue:
      type: object
      required:
        - _tag
        - path
        - message
      properties:
        _tag:
          type: string
          enum:
            - Pointer
            - Unexpected
            - Missing
            - Composite
            - Refinement
            - Transformation
            - Type
            - Forbidden
          description: The tag identifying the type of parse issue
        path:
          type: array
          items:
            $ref: '#/components/schemas/PropertyKey'
          description: The path to the property where the issue occurred
        message:
          type: string
          description: A descriptive message explaining the issue
      additionalProperties: false
      description: >-
        Represents an error encountered while parsing a value to match the
        schema
    AgentScope:
      type: string
      enum:
        - messages:read
        - messages:write
        - messages:send
        - tasks:read
        - tasks:write
        - documents:read
        - documents:write
        - events:read
        - events:write
        - people:read
        - people:write
        - automations:read
        - automations:write
        - settings:read
        - settings:write
        - search:read
      description: A concept and the action an agent may take on it.
    RichText:
      type: object
      required:
        - blocks
      properties:
        blocks:
          type: array
          items:
            $ref: '#/components/schemas/RichTextBlock'
      additionalProperties: false
      description: Formatted content as a list of blocks.
    SlackMemberId:
      type: string
      description: A Slack member id, such as U0123ABCD. From people_list.
      title: minLength(1)
      minLength: 1
    AgentClaim:
      type: object
      required:
        - agent
        - profile
        - target
        - runId
        - state
        - via
        - linkedFrom
        - links
        - heartbeatAt
        - since
        - history
      properties:
        informDelivery:
          type: string
          enum:
            - queued
            - unconfirmed
            - delivered
        mode:
          type: string
          enum:
            - assign
            - inform
            - start
        informedAt:
          $ref: '#/components/schemas/DateTimeUtc'
        agent:
          anyOf:
            - type: object
              required:
                - _tag
                - connectionId
                - captainId
              properties:
                _tag:
                  type: string
                  enum:
                    - Captain
                connectionId:
                  $ref: '#/components/schemas/AgentConnectionId'
                captainId:
                  type: string
                  description: A captain of the connection's project, from its captains.
              additionalProperties: false
            - type: object
              required:
                - _tag
                - identityId
              properties:
                _tag:
                  type: string
                  enum:
                    - Identity
                identityId:
                  $ref: '#/components/schemas/AgentIdentityId'
              additionalProperties: false
            - type: object
              required:
                - _tag
                - connectionId
              properties:
                _tag:
                  type: string
                  enum:
                    - Harness
                connectionId:
                  $ref: '#/components/schemas/AgentConnectionId'
              additionalProperties: false
        profile:
          $ref: '#/components/schemas/AgentProfile'
        target:
          anyOf:
            - type: object
              required:
                - id
                - label
              properties:
                id:
                  type: string
                  description: >-
                    The project, repository or environment an agent works in,
                    from its connection's targets.
                label:
                  type: string
              additionalProperties: false
            - type: 'null'
        runId:
          anyOf:
            - $ref: '#/components/schemas/AgentRunId'
            - type: 'null'
        state:
          type: string
          enum:
            - pending
            - working
            - needs_you
            - pr_open
            - merged
            - done
            - failed
            - stale
        via:
          anyOf:
            - type: object
              required:
                - id
                - name
              properties:
                id:
                  $ref: '#/components/schemas/Trimmed'
                  description: The member the agent acts for, from the workspace's members.
                  title: nonEmptyString
                  minLength: 1
                name:
                  type: string
              additionalProperties: false
            - type: 'null'
        linkedFrom:
          type: string
          enum:
            - run
            - mcp
            - api
            - slack_thread
            - slack_cell
            - manual
        links:
          type: array
          items:
            type: object
            required:
              - label
              - url
            properties:
              label:
                type: string
              url:
                type: string
            additionalProperties: false
        heartbeatAt:
          anyOf:
            - $ref: '#/components/schemas/DateTimeUtc'
            - type: 'null'
        since:
          $ref: '#/components/schemas/DateTimeUtc'
        history:
          type: array
          items:
            type: object
            required:
              - agent
              - profile
              - since
              - endedAt
            properties:
              agent:
                anyOf:
                  - type: object
                    required:
                      - _tag
                      - connectionId
                      - captainId
                    properties:
                      _tag:
                        type: string
                        enum:
                          - Captain
                      connectionId:
                        $ref: '#/components/schemas/AgentConnectionId'
                      captainId:
                        type: string
                        description: >-
                          A captain of the connection's project, from its
                          captains.
                    additionalProperties: false
                  - type: object
                    required:
                      - _tag
                      - identityId
                    properties:
                      _tag:
                        type: string
                        enum:
                          - Identity
                      identityId:
                        $ref: '#/components/schemas/AgentIdentityId'
                    additionalProperties: false
                  - type: object
                    required:
                      - _tag
                      - connectionId
                    properties:
                      _tag:
                        type: string
                        enum:
                          - Harness
                      connectionId:
                        $ref: '#/components/schemas/AgentConnectionId'
                    additionalProperties: false
              profile:
                $ref: '#/components/schemas/AgentProfile'
              since:
                $ref: '#/components/schemas/DateTimeUtc'
              endedAt:
                $ref: '#/components/schemas/DateTimeUtc'
            additionalProperties: false
      additionalProperties: false
      description: >-
        Who picked the item up: an agent, the project and run it works in, and
        the person it acts for.
    Int:
      type: integer
      title: int
    PropertyKey:
      anyOf:
        - type: string
        - type: number
        - type: object
          required:
            - _tag
            - key
          properties:
            _tag:
              type: string
              enum:
                - symbol
            key:
              type: string
          additionalProperties: false
    RichTextBlock:
      anyOf:
        - type: object
          required:
            - _tag
            - inlines
          properties:
            _tag:
              type: string
              enum:
                - Section
            inlines:
              type: array
              items:
                $ref: '#/components/schemas/RichTextInline'
          additionalProperties: false
        - type: object
          required:
            - _tag
            - style
            - indent
            - items
          properties:
            _tag:
              type: string
              enum:
                - List
            style:
              type: string
              enum:
                - bullet
                - ordered
            indent:
              $ref: '#/components/schemas/NonNegativeInt'
            offset:
              $ref: '#/components/schemas/NonNegativeInt'
            items:
              type: array
              items:
                type: array
                items:
                  $ref: '#/components/schemas/RichTextInline'
          additionalProperties: false
        - type: object
          required:
            - _tag
            - inlines
          properties:
            _tag:
              type: string
              enum:
                - Quote
            inlines:
              type: array
              items:
                $ref: '#/components/schemas/RichTextInline'
          additionalProperties: false
        - type: object
          required:
            - _tag
            - inlines
          properties:
            _tag:
              type: string
              enum:
                - Code
            inlines:
              type: array
              items:
                anyOf:
                  - type: object
                    required:
                      - _tag
                      - text
                    properties:
                      _tag:
                        type: string
                        enum:
                          - Text
                      text:
                        type: string
                      style:
                        type: object
                        required: []
                        properties:
                          bold:
                            type: boolean
                          italic:
                            type: boolean
                          strike:
                            type: boolean
                          underline:
                            type: boolean
                          code:
                            type: boolean
                        additionalProperties: false
                    additionalProperties: false
                  - type: object
                    required:
                      - _tag
                      - url
                    properties:
                      _tag:
                        type: string
                        enum:
                          - Link
                      url:
                        type: string
                      text:
                        type: string
                      style:
                        type: object
                        required: []
                        properties:
                          bold:
                            type: boolean
                          italic:
                            type: boolean
                          strike:
                            type: boolean
                          underline:
                            type: boolean
                          code:
                            type: boolean
                        additionalProperties: false
                    additionalProperties: false
            language:
              type: string
          additionalProperties: false
      description: A section, list, quote or code block.
    DateTimeUtc:
      type: string
    AgentConnectionId:
      type: string
      title: '`acred_${string}`'
      description: Connected agent account
      pattern: ^acred_[\s\S]*?$
    AgentIdentityId:
      type: string
      title: '`agid_${string}`'
      description: Agent identity
      pattern: ^agid_[\s\S]*?$
    AgentProfile:
      type: object
      required:
        - name
        - harness
        - picture
        - captain
      properties:
        name:
          type: string
        harness:
          anyOf:
            - type: string
              enum:
                - capy
                - cursor
                - devin
                - claude
                - codex
                - hoplite
                - fake
            - type: 'null'
        picture:
          anyOf:
            - type: string
            - type: 'null'
        captain:
          anyOf:
            - type: object
              required:
                - id
                - name
                - avatar
                - crew
              properties:
                id:
                  type: string
                  description: The captain's id in its connection's captains.
                name:
                  type: string
                avatar:
                  type: object
                  required:
                    - background
                    - emoji
                    - picture
                  properties:
                    background:
                      anyOf:
                        - type: string
                        - type: 'null'
                    emoji:
                      anyOf:
                        - type: string
                        - type: 'null'
                    picture:
                      anyOf:
                        - type: string
                        - type: 'null'
                  additionalProperties: false
                crew:
                  $ref: '#/components/schemas/Int'
              additionalProperties: false
            - type: 'null'
      additionalProperties: false
      description: >-
        How the agent shows: its name, harness, the identity's or Slack bot's
        picture, and the captain it is when it is one.
    AgentRunId:
      type: string
      title: '`arun_${string}`'
      description: Agent run
      pattern: ^arun_[\s\S]*?$
    Trimmed:
      type: string
      title: trimmed
      pattern: ^\S[\s\S]*\S$|^\S$|^$
    RichTextInline:
      anyOf:
        - type: object
          required:
            - _tag
            - text
          properties:
            _tag:
              type: string
              enum:
                - Text
            text:
              type: string
            style:
              type: object
              required: []
              properties:
                bold:
                  type: boolean
                italic:
                  type: boolean
                strike:
                  type: boolean
                underline:
                  type: boolean
                code:
                  type: boolean
              additionalProperties: false
          additionalProperties: false
        - type: object
          required:
            - _tag
            - url
          properties:
            _tag:
              type: string
              enum:
                - Link
            url:
              type: string
            text:
              type: string
            style:
              type: object
              required: []
              properties:
                bold:
                  type: boolean
                italic:
                  type: boolean
                strike:
                  type: boolean
                underline:
                  type: boolean
                code:
                  type: boolean
              additionalProperties: false
          additionalProperties: false
        - type: object
          required:
            - _tag
            - fileId
          properties:
            _tag:
              type: string
              enum:
                - Canvas
            fileId:
              $ref: '#/components/schemas/SlackFileId'
          additionalProperties: false
        - type: object
          required:
            - _tag
            - memberId
          properties:
            _tag:
              type: string
              enum:
                - MemberMention
            memberId:
              $ref: '#/components/schemas/SlackMemberId'
          additionalProperties: false
        - type: object
          required:
            - _tag
            - conversationExternalId
          properties:
            _tag:
              type: string
              enum:
                - ConversationMention
            conversationExternalId:
              $ref: '#/components/schemas/SlackChannelId'
          additionalProperties: false
        - type: object
          required:
            - _tag
            - groupId
          properties:
            _tag:
              type: string
              enum:
                - GroupMention
            groupId:
              $ref: '#/components/schemas/SlackUsergroupId'
          additionalProperties: false
        - type: object
          required:
            - _tag
            - range
          properties:
            _tag:
              type: string
              enum:
                - Broadcast
            range:
              type: string
              enum:
                - here
                - channel
                - everyone
          additionalProperties: false
        - type: object
          required:
            - _tag
            - name
          properties:
            _tag:
              type: string
              enum:
                - Emoji
            name:
              type: string
            skinTone:
              $ref: '#/components/schemas/Int'
              description: a number between 2 and 6
              title: between(2, 6)
              minimum: 2
              maximum: 6
            url:
              type: string
          additionalProperties: false
        - type: object
          required:
            - _tag
            - at
            - format
            - fallback
          properties:
            _tag:
              type: string
              enum:
                - Date
            at:
              $ref: '#/components/schemas/Date'
            format:
              type: string
            fallback:
              type: string
          additionalProperties: false
        - type: object
          required:
            - _tag
            - value
          properties:
            _tag:
              type: string
              enum:
                - Color
            value:
              type: string
          additionalProperties: false
      description: A run of text, a link, a mention, an emoji, a date or a color.
    SlackFileId:
      type: string
      description: >-
        A Slack file id, such as F0123ABCD, for a file, List or canvas. From
        files_list, lists_list or documents_list.
      title: minLength(1)
      minLength: 1
    SlackChannelId:
      type: string
      description: >-
        Slack's own id for a channel or DM, such as C0123ABCD. Operations take
        the Avazal conversationId from conversations_list instead.
      title: minLength(1)
      minLength: 1
    SlackUsergroupId:
      type: string
      description: >-
        A Slack user group, such as S0123ABCD. From people_list with groups:
        true.
      title: minLength(1)
      minLength: 1
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: An Avazal API key (avz_…) created in Settings → API keys.
    bearer:
      type: http
      scheme: bearer
      description: 'The same API key sent as `Authorization: Bearer avz_…`.'

````

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