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

# List destinations

> Lists destinations ordered by id. Filters combine with AND; keep them when following `after`.



## OpenAPI

````yaml /api-reference/openapi/configuration.json get /v1/destinations
openapi: 3.2.0
info:
  title: Configuration API
  description: >-
    Manages applications, sources, source properties, source folders, managed
    tags and their values, card definitions, their segments and relation
    definitions; manages destinations, their versions and endpoints, and
    publishes versions; and authors, previews and activates card lifecycles.
    Card property changes are saved as pending changes and take effect when the
    card definition is activated. Source property changes and source deletion
    can finish asynchronously. The tenant comes from the access token.
    Successful responses return the resource itself; lists return a page with
    `items`, the `after` cursor for the next page and, when asked for,
    `totalCount` (`limit` default 50, max 200; lifecycle lists default 25, max
    100). Application updates replace the settings and need the latest `etag`;
    secrets are returned only when created. Errors are problem details
    (`application/problem+json`). Values are PascalCase in REST and UPPER_CASE
    in GraphQL.
  version: 1.0.0
servers:
  - url: https://api.occtoo.com
security: []
tags:
  - name: Applications
  - name: Card definitions
  - name: Card exports
  - name: Destination endpoints
  - name: Destination versions
  - name: Destinations
  - name: Languages
  - name: Lifecycles
  - name: Managed tag values
  - name: Managed tags
  - name: Relation definitions
  - name: Segments
  - name: Sources
paths:
  /v1/destinations:
    get:
      tags:
        - Destinations
      summary: List destinations
      description: >-
        Lists destinations ordered by id. Filters combine with AND; keep them
        when following `after`.
      operationId: ListDestinations
      parameters:
        - name: name
          in: query
          description: Only items whose name contains this text, ignoring case.
          schema:
            type: string
        - name: createdFrom
          in: query
          description: Only items created at or after this time.
          schema:
            type: string
            format: date-time
        - name: createdTo
          in: query
          description: >-
            Only items created at or before this time. Can't be before
            `createdFrom`.
          schema:
            type: string
            format: date-time
        - name: updatedFrom
          in: query
          description: Only items last changed at or after this time.
          schema:
            type: string
            format: date-time
        - name: updatedTo
          in: query
          description: >-
            Only items last changed at or before this time. Can't be before
            `updatedFrom`.
          schema:
            type: string
            format: date-time
        - name: after
          in: query
          description: >-
            Cursor from the previous page's `after`. Omit it for the first page;
            pages only go forward.
          schema:
            type: string
        - name: limit
          in: query
          description: Number of items to return. Default 50, max 200.
          schema:
            pattern: ^-?(?:0|[1-9]\d*)$
            type:
              - integer
              - string
            format: int32
        - name: includeTotalCount
          in: query
          description: >-
            Include `totalCount`, the number of all matching items. Costs an
            extra count; default `false`, and `totalCount` is null without it.
          schema:
            type: boolean
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForwardPageOfDestinationResponse'
        '400':
          description: Bad Request
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/HttpValidationProblemDetails'
        '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
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '409':
          description: Conflict
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '429':
          description: Too Many Requests
          headers:
            Retry-After:
              description: Number of seconds to wait before retrying.
              schema:
                minimum: 1
                type: integer
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '500':
          description: Internal Server Error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      security:
        - kindeOAuth: []
        - bearerAuth: []
        - apiKey: []
components:
  schemas:
    ForwardPageOfDestinationResponse:
      required:
        - items
        - after
        - totalCount
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/DestinationResponse'
          description: Items on this page.
        after:
          type:
            - 'null'
            - string
          description: 'Cursor for the next page: pass it as `after`. Null on the last page.'
        totalCount:
          type:
            - 'null'
            - integer
          description: Number of all matching items. Null unless `includeTotalCount=true`.
          format: int64
      description: Holds one page of a list.
    HttpValidationProblemDetails:
      type: object
      properties:
        type:
          type:
            - 'null'
            - string
        title:
          type:
            - 'null'
            - string
        status:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          format: int32
        detail:
          type:
            - 'null'
            - string
        instance:
          type:
            - 'null'
            - string
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
    ProblemDetails:
      type: object
      properties:
        type:
          type:
            - 'null'
            - string
        title:
          type:
            - 'null'
            - string
        status:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          format: int32
        detail:
          type:
            - 'null'
            - string
        instance:
          type:
            - 'null'
            - string
    DestinationResponse:
      required:
        - id
        - name
        - description
        - tags
        - etag
        - createdAt
        - updatedAt
      type: object
      properties:
        id:
          type: string
          description: >-
            The destination's safe name. Part of the URL of the API it
            publishes.
        name:
          type: string
          description: Display name.
        description:
          type:
            - 'null'
            - string
          description: Free text shown with the destination.
        tags:
          type: array
          items:
            type: string
          description: Labels used to group destinations.
        etag:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
          description: Version of the destination to send in `If-Match`.
          format: uint32
        createdAt:
          type: string
          description: When the destination was created.
          format: date-time
        updatedAt:
          type: string
          description: When the destination last changed.
          format: date-time
      description: >-
        A destination: a named API that publishes card entries through its
        versions and endpoints.
  securitySchemes:
    kindeOAuth:
      type: oauth2
      description: >-
        Sign in with the existing Occtoo Studio identity and selected
        organization.
      flows:
        authorizationCode:
          authorizationUrl: >-
            https://auth.occtoo.com/oauth2/auth?audience=https%3A%2F%2Fapi-weu.occtoo.com
          tokenUrl: https://auth.occtoo.com/oauth2/token
          scopes:
            openid: Authenticate the user with OpenID Connect.
            profile: Read the user's basic profile.
            email: Read the user's email address.
            offline: Refresh the access token without another interactive sign-in.
          x-usePkce: SHA-256
          x-scalar-redirect-uri: https://api.occtoo.com/docs/
    bearerAuth:
      type: http
      description: >-
        Tenant-scoped Occtoo access token, including Kinde machine-to-machine
        application tokens.
      scheme: bearer
      bearerFormat: JWT
    apiKey:
      type: apiKey
      description: Occtoo organization API key.
      name: x-api-key
      in: header

````

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