> ## 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.

# Resolve Links

> Open links

Say what up to 100 pasted links point to: Slack message permalinks, thread links, Slack List and canvas links, Linear and Gmail links and avazal.com links. Each link comes back in order with its object, or null. Read each object with the operation for its \_tag: Conversation → conversations\_get, or messages\_get when message is set; List → lists\_get or tasks\_get when item is set; File → documents\_get for a canvas; Document or Artifact → documents\_get; MailThread → conversations\_get; CalendarEvent → events\_get.

Requires the `search:read` scope.


## OpenAPI

````yaml /api-reference/openapi.json post /v1/search.resolve
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/search.resolve:
    post:
      tags:
        - search
      summary: Open links
      description: >-
        Say what up to 100 pasted links point to: Slack message permalinks,
        thread links, Slack List and canvas links, Linear and Gmail links and
        avazal.com links. Each link comes back in order with its object, or
        null. Read each object with the operation for its _tag: Conversation →
        conversations_get, or messages_get when message is set; List → lists_get
        or tasks_get when item is set; File → documents_get for a canvas;
        Document or Artifact → documents_get; MailThread → conversations_get;
        CalendarEvent → events_get.


        Requires the `search:read` scope.
      operationId: search.resolve
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - urls
              properties:
                urls:
                  type: array
                  items:
                    type: string
                  description: an array of at most 100 item(s)
                  title: maxItems(100)
                  maxItems: 100
              additionalProperties: false
        required: true
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                required:
                  - links
                properties:
                  links:
                    type: array
                    items:
                      type: object
                      required:
                        - url
                        - object
                      properties:
                        url:
                          type: string
                        object:
                          anyOf:
                            - $ref: '#/components/schemas/ObjectSummary'
                            - type: 'null'
                          description: >-
                            What the link points to, or null when it is not a
                            link Avazal knows or you cannot see it.
                      additionalProperties: false
                additionalProperties: false
        '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:
    ObjectSummary:
      anyOf:
        - type: object
          required:
            - _tag
            - url
            - title
            - id
            - lastAt
          properties:
            _tag:
              type: string
              enum:
                - MailThread
            url:
              type: string
            title:
              type: string
            id:
              $ref: '#/components/schemas/MailThreadId'
            lastAt:
              $ref: '#/components/schemas/Date'
          additionalProperties: false
        - type: object
          required:
            - _tag
            - url
            - title
            - id
            - time
            - meetingLink
          properties:
            _tag:
              type: string
              enum:
                - CalendarEvent
            url:
              type: string
            title:
              type: string
            id:
              $ref: '#/components/schemas/CalendarEventId'
            time:
              anyOf:
                - type: object
                  required:
                    - _tag
                    - start
                    - end
                    - timeZone
                  properties:
                    _tag:
                      type: string
                      enum:
                        - Timed
                    start:
                      $ref: '#/components/schemas/Date'
                    end:
                      $ref: '#/components/schemas/Date'
                    timeZone:
                      type: string
                  additionalProperties: false
                - type: object
                  required:
                    - _tag
                    - startDate
                    - endDate
                  properties:
                    _tag:
                      type: string
                      enum:
                        - AllDay
                    startDate:
                      type: string
                      description: a string matching the pattern ^\d{4}-\d{2}-\d{2}$
                      pattern: ^\d{4}-\d{2}-\d{2}$
                    endDate:
                      type: string
                      description: a string matching the pattern ^\d{4}-\d{2}-\d{2}$
                      pattern: ^\d{4}-\d{2}-\d{2}$
                  additionalProperties: false
            meetingLink:
              anyOf:
                - type: string
                - type: 'null'
          additionalProperties: false
        - type: object
          required:
            - _tag
            - url
            - title
            - id
            - source
          properties:
            _tag:
              type: string
              enum:
                - Document
            url:
              type: string
            title:
              type: string
            id:
              $ref: '#/components/schemas/DocumentId'
            source:
              type: string
              enum:
                - avazal
                - slack
                - google-drive
          additionalProperties: false
        - type: object
          required:
            - _tag
            - url
            - title
            - id
            - kind
            - workspaceId
            - message
            - thread
          properties:
            _tag:
              type: string
              enum:
                - Conversation
            url:
              type: string
            title:
              type: string
            id:
              $ref: '#/components/schemas/ConversationId'
            kind:
              type: string
              enum:
                - channel
                - private
                - dm
                - group
                - self
            workspaceId:
              $ref: '#/components/schemas/ChatWorkspaceId'
            message:
              anyOf:
                - type: string
                - type: 'null'
            thread:
              anyOf:
                - type: string
                - type: 'null'
          additionalProperties: false
        - type: object
          required:
            - _tag
            - url
            - title
            - workspaceId
            - conversationId
            - fileId
            - item
          properties:
            _tag:
              type: string
              enum:
                - List
            url:
              type: string
            title:
              type: string
            workspaceId:
              $ref: '#/components/schemas/ChatWorkspaceId'
            conversationId:
              anyOf:
                - $ref: '#/components/schemas/ConversationId'
                - type: 'null'
            fileId:
              $ref: '#/components/schemas/SlackFileId'
            item:
              anyOf:
                - type: string
                  description: a string at least 1 character(s) long
                  title: minLength(1)
                  minLength: 1
                - type: 'null'
            itemTitle:
              type: string
            itemDone:
              type: boolean
            editedAt:
              $ref: '#/components/schemas/Date'
          additionalProperties: false
        - type: object
          required:
            - _tag
            - url
            - title
            - workspaceId
            - conversationId
            - fileId
            - kind
            - messageId
          properties:
            _tag:
              type: string
              enum:
                - File
            url:
              type: string
            title:
              type: string
            workspaceId:
              $ref: '#/components/schemas/ChatWorkspaceId'
            conversationId:
              anyOf:
                - $ref: '#/components/schemas/ConversationId'
                - type: 'null'
            fileId:
              $ref: '#/components/schemas/SlackFileId'
            kind:
              type: string
              enum:
                - canvas
                - file
            messageId:
              anyOf:
                - $ref: '#/components/schemas/SlackMessageId'
                - type: 'null'
            editedAt:
              $ref: '#/components/schemas/Date'
          additionalProperties: false
        - type: object
          required:
            - _tag
            - url
            - title
            - workspaceId
            - memberId
          properties:
            _tag:
              type: string
              enum:
                - Person
            url:
              type: string
            title:
              type: string
            workspaceId:
              $ref: '#/components/schemas/ChatWorkspaceId'
            memberId:
              $ref: '#/components/schemas/SlackMemberId'
          additionalProperties: false
        - type: object
          required:
            - _tag
            - url
            - title
            - id
            - harness
            - state
            - target
            - requester
            - source
            - step
            - startedAt
            - updatedAt
          properties:
            _tag:
              type: string
              enum:
                - Run
            url:
              type: string
            title:
              type: string
            id:
              $ref: '#/components/schemas/AgentRunId'
            harness:
              type: string
              enum:
                - capy
                - cursor
                - devin
                - claude
                - codex
                - hoplite
                - fake
            state:
              type: string
              enum:
                - queued
                - working
                - needs_input
                - review
                - done
                - failed
                - cancelled
                - undone
            target:
              anyOf:
                - type: string
                - type: 'null'
            requester:
              type: string
            source:
              anyOf:
                - type: object
                  required:
                    - _tag
                  properties:
                    _tag:
                      type: string
                      enum:
                        - Direct
                  additionalProperties: false
                - type: object
                  required:
                    - _tag
                    - conversationId
                    - threadRootId
                    - label
                  properties:
                    _tag:
                      type: string
                      enum:
                        - ChatThread
                    conversationId:
                      $ref: '#/components/schemas/ConversationId'
                    threadRootId:
                      $ref: '#/components/schemas/SlackThreadRootId'
                    messageId:
                      $ref: '#/components/schemas/SlackMessageId'
                    agentMemberId:
                      $ref: '#/components/schemas/SlackMemberId'
                    author:
                      anyOf:
                        - type: object
                          required:
                            - _tag
                            - memberId
                          properties:
                            _tag:
                              type: string
                              enum:
                                - Member
                            memberId:
                              $ref: '#/components/schemas/SlackMemberId'
                            identityId:
                              $ref: '#/components/schemas/AgentIdentityId'
                          additionalProperties: false
                        - type: object
                          required:
                            - _tag
                            - appId
                            - name
                            - iconUrl
                            - iconEmoji
                            - memberId
                          properties:
                            _tag:
                              type: string
                              enum:
                                - App
                            appId:
                              $ref: '#/components/schemas/SlackAppId'
                            name:
                              type: string
                            iconUrl:
                              anyOf:
                                - type: string
                                - type: 'null'
                            iconEmoji:
                              anyOf:
                                - type: string
                                - type: 'null'
                            memberId:
                              anyOf:
                                - $ref: '#/components/schemas/SlackMemberId'
                                - type: 'null'
                            botId:
                              $ref: '#/components/schemas/SlackBotId'
                            identityId:
                              $ref: '#/components/schemas/AgentIdentityId'
                          additionalProperties: false
                        - type: object
                          required:
                            - _tag
                          properties:
                            _tag:
                              type: string
                              enum:
                                - Unknown
                          additionalProperties: false
                    label:
                      type: string
                    excerpt:
                      type: string
                  additionalProperties: false
                - type: object
                  required:
                    - _tag
                    - id
                    - label
                  properties:
                    _tag:
                      type: string
                      enum:
                        - Object
                    id:
                      type: string
                      title: >-
                        `${"mthr" | "cevt" | "doc" | "chcv" | "arun" | "aart" |
                        "lin" | "lst" | "tsk"}_${string}`
                      description: >-
                        An Avazal object: mthr_ mail thread, cevt_ calendar
                        event, doc_ document, chcv_ conversation, arun_ agent
                        run, aart_ artifact, lin_ Linear issue, lst_ Slack List
                        or tsk_ List item. From search_query or search_resolve.
                      pattern: ^(mthr|cevt|doc|chcv|arun|aart|lin|lst|tsk)_[\s\S]*?$
                    label:
                      type: string
                  additionalProperties: false
            step:
              anyOf:
                - type: string
                - type: 'null'
            startedAt:
              $ref: '#/components/schemas/Date'
            updatedAt:
              $ref: '#/components/schemas/Date'
          additionalProperties: false
        - type: object
          required:
            - _tag
            - url
            - title
            - id
            - kind
            - workspaceId
            - workspaceName
            - runId
            - harness
            - source
            - items
            - createdAt
          properties:
            _tag:
              type: string
              enum:
                - Artifact
            url:
              type: string
            title:
              type: string
            id:
              $ref: '#/components/schemas/ArtifactId'
            kind:
              $ref: '#/components/schemas/ArtifactKind'
            workspaceId:
              type: string
              description: The workspace the run posted in.
            workspaceName:
              type: string
            runId:
              $ref: '#/components/schemas/AgentRunId'
            harness:
              type: string
              enum:
                - capy
                - cursor
                - devin
                - claude
                - codex
                - hoplite
                - fake
            source:
              anyOf:
                - type: string
                - type: 'null'
            items:
              type: array
              items:
                type: object
                required:
                  - name
                  - mimeType
                  - size
                properties:
                  name:
                    $ref: '#/components/schemas/NonEmptyTrimmedString'
                    description: a string at most 200 character(s) long
                    title: maxLength(200)
                    maxLength: 200
                  mimeType:
                    type: string
                    description: a string at most 120 character(s) long
                    pattern: ^[a-z]+\/[a-z0-9.+-]+$
                    title: maxLength(120)
                    maxLength: 120
                  size:
                    $ref: '#/components/schemas/NonNegativeInt'
                  width:
                    $ref: '#/components/schemas/Int'
                  height:
                    $ref: '#/components/schemas/Int'
                additionalProperties: false
            createdAt:
              $ref: '#/components/schemas/Date'
          additionalProperties: false
        - type: object
          required:
            - _tag
            - url
            - title
            - id
            - identifier
            - state
            - priority
            - assignee
          properties:
            _tag:
              type: string
              enum:
                - LinearIssue
            url:
              type: string
            title:
              type: string
            id:
              $ref: '#/components/schemas/LinearIssueId'
            identifier:
              type: string
            state:
              type: object
              required:
                - id
                - name
                - type
                - color
              properties:
                id:
                  type: string
                  description: >-
                    A Linear workflow state, the stateId linear_create and
                    linear_update take. From linear_teams.
                name:
                  type: string
                type:
                  type: string
                  enum:
                    - triage
                    - backlog
                    - unstarted
                    - started
                    - completed
                    - canceled
                color:
                  type: string
              additionalProperties: false
            priority:
              type: number
              enum:
                - 0
                - 1
                - 2
                - 3
                - 4
            assignee:
              anyOf:
                - type: string
                - type: 'null'
          additionalProperties: false
      description: A short summary of a referenced message, thread, document, run or issue.
    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
    MailThreadId:
      type: string
      title: '`mthr_${string}`'
      description: Mail thread
      pattern: ^mthr_[\s\S]*?$
    Date:
      type: string
    CalendarEventId:
      type: string
      title: '`cevt_${string}`'
      description: Calendar event
      pattern: ^cevt_[\s\S]*?$
    DocumentId:
      type: string
      title: '`doc_${string}`'
      description: Document or folder
      pattern: ^doc_[\s\S]*?$
    ConversationId:
      type: string
      title: '`chcv_${string}`'
      description: Slack channel or DM
      pattern: ^chcv_[\s\S]*?$
    ChatWorkspaceId:
      type: string
      title: '`chws_${string}`'
      description: Connected Slack workspace
      pattern: ^chws_[\s\S]*?$
    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
    SlackMessageId:
      type: string
      description: >-
        A Slack message, named by its timestamp such as 1733050000.123456, the
        ts in its permalink. From messages_list, conversations_get, search_query
        or search_resolve.
      title: minLength(1)
      minLength: 1
    SlackMemberId:
      type: string
      description: A Slack member id, such as U0123ABCD. From people_list.
      title: minLength(1)
      minLength: 1
    AgentRunId:
      type: string
      title: '`arun_${string}`'
      description: Agent run
      pattern: ^arun_[\s\S]*?$
    SlackThreadRootId:
      type: string
      description: >-
        The messageId of a thread's first message. From messages_list or
        messages_get.
      title: minLength(1)
      minLength: 1
    AgentIdentityId:
      type: string
      title: '`agid_${string}`'
      description: Agent identity
      pattern: ^agid_[\s\S]*?$
    SlackAppId:
      type: string
      description: A Slack app id, such as A0123ABCD, for an app that posts or unfurls.
      title: minLength(1)
      minLength: 1
    SlackBotId:
      type: string
      description: A Slack bot id, such as B0123ABCD, that an app posts with.
      title: minLength(1)
      minLength: 1
    ArtifactId:
      type: string
      title: '`aart_${string}`'
      description: File or page a run saved
      pattern: ^aart_[\s\S]*?$
    ArtifactKind:
      type: string
      enum:
        - page
        - images
        - report
        - file
      description: >-
        page: one self-contained text/html file, shown sandboxed with inline
        scripts and styles only. images: one to twelve PNG, JPEG, GIF or WebP
        screenshots. report: one text/markdown file. file: any one file, offered
        as a download.
    NonEmptyTrimmedString:
      type: string
      title: nonEmptyString
      pattern: ^\S[\s\S]*\S$|^\S$|^$
      minLength: 1
    NonNegativeInt:
      type: integer
      title: int
      minimum: 0
    Int:
      type: integer
      title: int
    LinearIssueId:
      type: string
      title: '`lin_${string}`'
      description: Linear issue
      pattern: ^lin_[\s\S]*?$
    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.
    OperationName:
      type: string
      description: An Avazal tool name, e.g. messages_send.
      pattern: ^[a-z]+_[a-z_]+$
    PropertyKey:
      anyOf:
        - type: string
        - type: number
        - type: object
          required:
            - _tag
            - key
          properties:
            _tag:
              type: string
              enum:
                - symbol
            key:
              type: string
          additionalProperties: false
  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.