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

# List Topics

> Returns subscription topics configured for the authenticated team.



## OpenAPI

````yaml /openapi.json get /topics
openapi: 3.1.0
info:
  title: Dugble API
  description: >-
    Programmatic access to Dugble email, SMS, sending infrastructure, contacts,
    audiences, suppressions, and broadcasts. Authenticate with a team token sent
    as a Bearer token.
  version: 1.0.0
  contact:
    name: Dugble Support
    email: support@dugble.com
servers:
  - url: https://api.dugble.com
    description: Production
security:
  - BearerAuth: []
tags:
  - name: Email
    description: Send and manage transactional emails.
  - name: SMS
    description: Send and manage SMS messages.
  - name: Domains
    description: Manage and verify sending domains.
  - name: Templates
    description: Create, version, publish, preview, and test reusable email templates.
  - name: Sender IDs
    description: Manage SMS sender IDs.
  - name: Contacts
    description: Manage contacts and their audience memberships.
  - name: Contact Properties
    description: Manage typed custom property definitions used by contacts.
  - name: Topics
    description: Manage contact subscription topics.
  - name: Segments
    description: Manage audience segments.
  - name: Suppressions
    description: Manage suppressed email recipients.
  - name: Broadcasts
    description: Create, schedule, and analyze email broadcasts.
paths:
  /topics:
    get:
      tags:
        - Topics
      summary: List Topics
      description: Returns subscription topics configured for the authenticated team.
      operationId: listTopics
      parameters:
        - $ref: '#/components/parameters/TopicLimit'
        - $ref: '#/components/parameters/TopicOffset'
      responses:
        '200':
          description: Topics retrieved successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TopicListEnvelope'
        default:
          $ref: '#/components/responses/Error'
components:
  parameters:
    TopicLimit:
      name: limit
      in: query
      required: false
      description: >-
        Maximum number of topics to return. Omitted, non-positive, or values
        above 100 use the default 50. Malformed integers return 400.
      schema:
        type: integer
        format: int32
        default: 50
    TopicOffset:
      name: offset
      in: query
      required: false
      description: >-
        Number of topics to skip. Omitted or negative values use 0. Malformed
        integers return 400.
      schema:
        type: integer
        format: int32
        default: 0
  schemas:
    TopicListEnvelope:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - true
        data:
          $ref: '#/components/schemas/TopicList'
    TopicList:
      type: object
      required:
        - object
        - has_more
        - data
      properties:
        object:
          type: string
          enum:
            - list
        has_more:
          type: boolean
        data:
          type: array
          items:
            $ref: '#/components/schemas/TopicResource'
    ErrorEnvelope:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              enum:
                - BAD_REQUEST
                - UNAUTHORIZED
                - FORBIDDEN
                - STEP_UP_REQUIRED
                - NOT_FOUND
                - CONFLICT
                - PAYMENT_REQUIRED
                - PAYLOAD_TOO_LARGE
                - UNPROCESSABLE_ENTITY
                - TOO_MANY_REQUESTS
                - INTERNAL_ERROR
                - SERVICE_UNAVAILABLE
            message:
              type: string
    TopicResource:
      type: object
      required:
        - object
        - id
        - name
        - default_subscription
        - visibility
        - created_at
      properties:
        object:
          type: string
          enum:
            - topic
        id:
          type: string
          format: uuid
        name:
          type: string
        description:
          type: string
        default_subscription:
          type: string
          enum:
            - opt_in
            - opt_out
        visibility:
          type: string
          enum:
            - public
            - private
        created_at:
          type: string
          format: date-time
  responses:
    Error:
      description: >-
        The request failed. See the HTTP status and structured error code for
        the category.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Team token
      description: >-
        Pass a Dugble team token in the Authorization header as Bearer <token>.
        Team token secrets use the dgb_team_ prefix.

````