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

# List the timeslots of an event

> The timeslots of an event, sorted by start date, with sold and available tickets. A one-time event has one timeslot.



## OpenAPI

````yaml /openapi/public-v1.json get /public/v1/events/{eventId}/timeslots
openapi: 3.1.1
info:
  title: WeTicket API
  description: >-
    Read the data of your organization from your own software: events,

    timeslots, ticket types, orders and tickets.


    Create an API key in the WeTicket dashboard (Settings, Integrations) and
    send

    it with every request as `Authorization: Bearer <key>`. Keep the key on your

    server: anyone who has it can read what its scopes allow. Requests are

    limited per key; a `429` response tells you to wait for the number of
    seconds

    in its `Retry-After` header.
  version: 1.1.1
servers:
  - url: https://api.weticket.io
security:
  - ApiKey: []
tags:
  - name: Endpoint
paths:
  /public/v1/events/{eventId}/timeslots:
    get:
      tags:
        - Endpoint
      summary: List the timeslots of an event
      description: >-
        The timeslots of an event, sorted by start date, with sold and available
        tickets. A one-time event has one timeslot.
      operationId: PublicGetEventTimeslots
      parameters:
        - name: eventId
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListResponseOfTimeslotResponse'
        '401':
          description: Unauthorized
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: Forbidden
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '404':
          description: Not Found
        '429':
          description: Too Many Requests
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
components:
  schemas:
    ListResponseOfTimeslotResponse:
      required:
        - items
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/TimeslotResponse'
    ProblemDetails:
      type: object
      properties:
        type:
          type:
            - 'null'
            - string
        title:
          type:
            - 'null'
            - string
        status:
          type:
            - 'null'
            - integer
          format: int32
        detail:
          type:
            - 'null'
            - string
        instance:
          type:
            - 'null'
            - string
    TimeslotResponse:
      required:
        - id
        - startDate
        - endDate
        - ticketCapacity
        - ticketsSold
        - ticketsAvailable
      type: object
      properties:
        id:
          type: string
          format: uuid
        startDate:
          type: string
          format: date-time
        endDate:
          type: string
          format: date-time
        ticketCapacity:
          type: integer
          description: The most tickets (guest list included) this timeslot sells.
          format: int32
        ticketsSold:
          type: integer
          description: >-
            Issued tickets (guest list included) that are not canceled. Products
            are not counted.
          format: int32
        ticketsAvailable:
          type: integer
          description: >-
            Tickets that can still be bought: the capacity minus sold tickets
            and tickets that are

            reserved in an unfinished checkout right now. Never below zero.
          format: int32
  securitySchemes:
    ApiKey:
      type: http
      description: An API key from the WeTicket dashboard, starting with wt_live_.
      scheme: bearer

````

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