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

# List Events

> List calendar events and huddles

Events on the calendars you show in Avazal between from and to, at most 62 days apart, earliest first. timeZone (an IANA name such as Europe/London) decides which day all-day events fall on and defaults to UTC. With source slack, or account, Slack huddles in that window are listed too.

Returns one page of items. Pass nextCursor back as cursor until it is null.

Requires the `events:read` scope.


## OpenAPI

````yaml /api-reference/openapi.json post /v1/events.list
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/events.list:
    post:
      tags:
        - events
      summary: List calendar events and huddles
      description: >-
        Events on the calendars you show in Avazal between from and to, at most
        62 days apart, earliest first. timeZone (an IANA name such as
        Europe/London) decides which day all-day events fall on and defaults to
        UTC. With source slack, or account, Slack huddles in that window are
        listed too.


        Returns one page of items. Pass nextCursor back as cursor until it is
        null.


        Requires the `events:read` scope.
      operationId: events.list
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - from
                - to
              properties:
                from:
                  $ref: '#/components/schemas/Date'
                to:
                  $ref: '#/components/schemas/Date'
                timeZone:
                  type: string
                source:
                  type: string
                  enum:
                    - google-calendar
                    - slack
                  description: Only calendar events or only huddles.
                account:
                  allOf:
                    - $ref: '#/components/schemas/ChatWorkspaceId'
                  description: A Slack workspace from accounts_list, for huddles.
                cursor:
                  type: string
                  description: >-
                    The nextCursor from the previous page. Omit it for the first
                    page.
                  title: maxLength(2048)
                  minLength: 1
                  maxLength: 2048
                limit:
                  allOf:
                    - $ref: '#/components/schemas/Int'
                      description: a number between 1 and 100
                      title: between(1, 100)
                      minimum: 1
                      maximum: 100
                  description: Items per page, 50 by default.
              additionalProperties: false
        required: true
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                required:
                  - items
                  - nextCursor
                properties:
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/PublicEvent'
                  nextCursor:
                    anyOf:
                      - type: string
                      - type: 'null'
                    description: >-
                      Pass this as cursor to get the next page. null on the last
                      page.
                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'
                  - $ref: '#/components/schemas/InvalidCursor'
        '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'
        '404':
          description: NotFound
        '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:
    Date:
      type: string
    ChatWorkspaceId:
      type: string
      title: '`chws_${string}`'
      description: Connected Slack workspace
      pattern: ^chws_[\s\S]*?$
    Int:
      type: integer
      title: int
    PublicEvent:
      type: object
      required:
        - id
        - url
        - source
        - title
        - start
        - end
        - allDay
        - meetingLink
      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'
        title:
          type: string
        start:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            An ISO time, or a YYYY-MM-DD date for an all-day event. null for a
            meeting not on your calendar yet.
        end:
          anyOf:
            - type: string
            - type: 'null'
        allDay:
          type: boolean
        meetingLink:
          anyOf:
            - type: string
            - type: 'null'
        kind:
          type: string
          enum:
            - default
            - focusTime
            - outOfOffice
            - workingLocation
        availability:
          type: string
          enum:
            - busy
            - free
        status:
          type: string
          enum:
            - confirmed
            - tentative
        calendarId:
          type: string
          description: >-
            The Google calendar the event is on, as listed under accounts_list
            provider.
        organizer:
          anyOf:
            - type: string
            - type: 'null'
        attendees:
          type: array
          items:
            type: object
            required:
              - email
              - name
              - responseStatus
              - self
              - organizer
            properties:
              email:
                type: string
              name:
                anyOf:
                  - type: string
                  - type: 'null'
              responseStatus:
                type: string
                enum:
                  - needsAction
                  - declined
                  - tentative
                  - accepted
              self:
                type: boolean
              organizer:
                type: boolean
            additionalProperties: false
        description:
          anyOf:
            - type: string
            - type: 'null'
        recurring:
          type: boolean
        thread:
          anyOf:
            - type: object
              required:
                - id
                - subject
                - snippet
                - lastMessageAt
              properties:
                id:
                  type: string
                  description: >-
                    An email thread about the event, the threadId threads_get
                    takes.
                subject:
                  type: string
                snippet:
                  type: string
                lastMessageAt:
                  $ref: '#/components/schemas/Date'
              additionalProperties: false
            - type: 'null'
          description: The email thread about the event, as in conversations_get.
        conversation:
          allOf:
            - $ref: '#/components/schemas/ConversationId'
          description: For a huddle, the channel or DM it happened in.
        live:
          type: boolean
          description: For a huddle, whether it is happening now.
        memberIds:
          type: array
          items:
            type: string
          description: For a huddle, the Slack member ids who joined.
        notesFileId:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            For a huddle, the notes canvas as <conversation>/<file>, readable
            with documents_get.
      additionalProperties: false
      description: >-
        A calendar event or Slack huddle. Reading one adds its attendees,
        description and email thread.
    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
    InvalidCursor:
      type: object
      required:
        - message
        - _tag
        - code
      properties:
        message:
          type: string
        _tag:
          type: string
          enum:
            - InvalidCursor
        code:
          type: string
          enum:
            - InvalidCursor
      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.
    ConversationId:
      type: string
      title: '`chcv_${string}`'
      description: Slack channel or DM
      pattern: ^chcv_[\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.