> ## 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 the endpoints of a destination version

> Lists endpoints with their content, ordered by id. Pages only go forward: pass the returned `after` to read the next page.



## OpenAPI

````yaml /api-reference/openapi/configuration.json get /v1/destinations/{destinationId}/versions/{version}/endpoints
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/{destinationId}/versions/{version}/endpoints:
    get:
      tags:
        - Destination endpoints
      summary: List the endpoints of a destination version
      description: >-
        Lists endpoints with their content, ordered by id. Pages only go
        forward: pass the returned `after` to read the next page.
      operationId: ListDestinationEndpoints
      parameters:
        - name: destinationId
          in: path
          description: Id of the destination (e.g. `catalogue`).
          required: true
          schema:
            type: string
        - name: version
          in: path
          description: Version number of the destination (e.g. `1`).
          required: true
          schema:
            pattern: ^-?(?:0|[1-9]\d*)$
            type: integer
            format: int32
        - 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/ForwardPageOfDestinationEndpointResponse'
        '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:
    ForwardPageOfDestinationEndpointResponse:
      required:
        - items
        - after
        - totalCount
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/DestinationEndpointResponse'
          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
    DestinationEndpointResponse:
      required:
        - id
        - name
        - description
        - content
        - pendingContent
        - etag
      type: object
      properties:
        id:
          type: string
          description: The endpoint's safe name. Part of the URL of the published API.
        name:
          type: string
          description: Display name.
        description:
          type:
            - 'null'
            - string
          description: Free text shown with the endpoint.
        content:
          $ref: '#/components/schemas/EndpointContent'
          description: What the published endpoint returns.
        pendingContent:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/EndpointContent'
              description: >-
                Changed content that waits for the next publish. Null when
                nothing waits.
          description: >-
            Changed content that waits for the next publish. Null when nothing
            waits.
        etag:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
          description: Version of the endpoint to send in `If-Match`.
          format: uint32
      description: >-
        An endpoint of a destination version: one route of the published API and
        what it returns.
    EndpointContent:
      required:
        - cardId
        - properties
      type: object
      properties:
        cardId:
          type: string
          description: The card definition whose entries are returned.
        properties:
          type: array
          items:
            $ref: '#/components/schemas/EndpointProperty'
          description: The card properties returned for each entry.
        segments:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/EndpointSegments'
              description: >-
                Limits the entries by segments of the card. All entries when
                omitted.
          description: >-
            Limits the entries by segments of the card. All entries when
            omitted.
        relations:
          type:
            - 'null'
            - array
          items:
            $ref: '#/components/schemas/EndpointRelation'
          description: Related entries returned inside each entry.
      description: What an endpoint returns for the entries of one card.
    EndpointProperty:
      required:
        - id
      type: object
      properties:
        id:
          type: string
          description: The card property id.
        alias:
          type:
            - 'null'
            - string
          description: >-
            The name the property has in the published API. The property id when
            omitted.
        facet:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/EndpointFacet'
              description: Set to offer the property as a facet in the published API.
          description: Set to offer the property as a facet in the published API.
      description: A card property an endpoint returns.
    EndpointSegments:
      type: object
      properties:
        include:
          type:
            - 'null'
            - array
          items:
            type: string
          description: Only entries in at least one of these segments of the card.
        exclude:
          type:
            - 'null'
            - array
          items:
            type: string
          description: No entries in any of these segments of the card.
      description: Limits the entries of a card by its segments.
    EndpointRelation:
      required:
        - id
        - alias
        - cardinality
        - content
      type: object
      properties:
        id:
          type: string
          description: The relation definition id.
        alias:
          type: string
          description: The name the related entries have in the published API.
        cardinality:
          $ref: '#/components/schemas/CardinalityType'
          description: '`Plural` returns a list of related entries, `Singular` at most one.'
        content:
          $ref: '#/components/schemas/EndpointContent'
          description: What is returned for each related entry.
        order:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/EndpointOrder'
              description: How the related entries are ordered. Unordered when omitted.
          description: How the related entries are ordered. Unordered when omitted.
      description: Related entries an endpoint returns inside each entry.
    EndpointFacet:
      type: object
      properties:
        size:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          description: Number of facet values returned, 1 to 1000.
          format: int32
        header:
          type:
            - 'null'
            - object
          additionalProperties:
            type: string
          description: The facet's title per language.
      description: >-
        Offers a property as a facet: the published API returns its values with
        counts.
    CardinalityType:
      enum:
        - Plural
        - Singular
      description: How a relation's cards appear in an endpoint's output.
      x-enum-descriptions:
        Plural: As a list of cards.
        Singular: As one card.
    EndpointOrder:
      required:
        - by
        - direction
      type: object
      properties:
        by:
          type: string
          description: The property of the related card to order by.
        direction:
          $ref: '#/components/schemas/SortDirection'
          description: '`Asc` or `Desc`.'
      description: How related entries are ordered.
    SortDirection:
      enum:
        - Asc
        - Desc
      description: Sort direction of a relation's cards.
      x-enum-descriptions:
        Asc: Ascending.
        Desc: Descending.
  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.