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

# Search the entries a destination endpoint publishes

> Returns the entries of one endpoint of one destination version, each with the content the endpoint
publishes. `where` and `sort` use the property ids of the endpoint. limit: 1–500, default 50.
Pass the returned `after` to read the next page; it is null on the last page. The total is counted
only when `includeTotalCount` is true.



## OpenAPI

````yaml /api-reference/openapi/destinations.json post /v1/destinations/{destinationId}/versions/{version}/endpoints/{endpoint}/entries/search
openapi: 3.2.0
info:
  title: Destinations API
  description: >-
    Read what a destination publishes: the entries of one endpoint of one
    destination version, filtered

    with the same `where` filter as card search.


    The application needs the `read:destinations` permission.


    Machine-readable contract:
    [OpenAPI](https://api.occtoo.com/openapi/destinations.json)
  version: 1.0.0
  summary: Search the entries a destination endpoint publishes.
servers:
  - url: https://api.occtoo.com
    description: Occtoo public API
security: []
tags:
  - name: Destination entries
paths:
  /v1/destinations/{destinationId}/versions/{version}/endpoints/{endpoint}/entries/search:
    post:
      tags:
        - Destination entries
      summary: Search the entries a destination endpoint publishes
      description: >-
        Returns the entries of one endpoint of one destination version, each
        with the content the endpoint

        publishes. `where` and `sort` use the property ids of the endpoint.
        limit: 1–500, default 50.

        Pass the returned `after` to read the next page; it is null on the last
        page. The total is counted

        only when `includeTotalCount` is true.
      operationId: SearchDestinationEntries
      parameters:
        - name: destinationId
          in: path
          required: true
          schema:
            type: string
        - name: version
          in: path
          required: true
          schema:
            type: integer
            format: int32
        - name: endpoint
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchDestinationEntriesRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DestinationEntriesResponse'
        '400':
          description: Bad Request
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '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'
      security:
        - kindeOAuth: []
        - bearerAuth: []
        - apiKey: []
components:
  schemas:
    SearchDestinationEntriesRequest:
      type: object
      properties:
        where:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/SearchPredicate'
        language:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Language'
        sort:
          type: array
          items:
            $ref: '#/components/schemas/Sort'
        limit:
          type: integer
          format: int32
        after:
          type:
            - 'null'
            - string
        includeTotalCount:
          type: boolean
    DestinationEntriesResponse:
      required:
        - items
        - after
        - totalCount
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/DestinationEntryResponse'
        after:
          type:
            - 'null'
            - string
        totalCount:
          type:
            - 'null'
            - integer
          format: int64
    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
    SearchPredicate:
      type: object
      properties:
        and:
          type:
            - 'null'
            - array
          items:
            $ref: '#/components/schemas/SearchPredicate'
          description: Every child condition must match.
        or:
          type:
            - 'null'
            - array
          items:
            $ref: '#/components/schemas/SearchPredicate'
          description: At least one child condition must match.
        not:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/SearchPredicate'
              description: The child condition must not match.
        text:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/TextPredicate'
              description: >-
                A condition on text, including substring, RE2 regex and length
                checks.
        integer:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/IntegerPredicate'
              description: A condition on an integer property.
        decimal:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/DecimalPredicate'
              description: A condition on a decimal property.
        timestamp:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/TimestampPredicate'
              description: A condition on a timestamp property.
        boolean:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/BooleanPredicate'
              description: A condition on a boolean property.
        list:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/ListPredicate'
              description: A condition on list elements or length.
        hasValue:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/PropertyReference'
              description: >-
                True when a value exists. Empty text, whitespace and empty lists
                count as values.
        segment:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/SegmentPredicate'
              description: Membership in a segment.
        relation:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/RelationPredicate'
              description: >-
                Tests distinct live related entries. All nested conditions apply
                to the same child.
        lifecycle:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/LifecyclePredicate'
              description: Saved readiness of the entry under an active lifecycle.
      description: >-
        Holds a typed condition on an entry. Set exactly one branch; `and` and
        `or` need at least one child.
    Language:
      type: string
    Sort:
      required:
        - property
        - direction
      type: object
      properties:
        property:
          $ref: '#/components/schemas/PropertyId'
          description: >-
            Id of the property to sort by: a card property for card entries, a
            source property for source entries. It must be indexed for search
            and have a usable type: the source property's type, or a supported
            conversion configured on it.
        direction:
          $ref: '#/components/schemas/SortDirection'
          description: Sort direction.
        mode:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/ListSortMode'
              description: >-
                Which element of a list property the sort compares. Required for
                a list property, and must be null for any other property.
      description: One sort key for entries.
    DestinationEntryResponse:
      required:
        - id
        - content
      type: object
      properties:
        id:
          type: string
        content:
          $ref: '#/components/schemas/JsonElement'
    TextPredicate:
      required:
        - property
      type: object
      properties:
        property:
          $ref: '#/components/schemas/PropertyId'
          description: Id of the card property.
        eq:
          type:
            - 'null'
            - string
          description: Equal to this value.
        neq:
          type:
            - 'null'
            - string
          description: Different from this value.
        in:
          type:
            - 'null'
            - array
          items:
            type: string
          description: Equal to any listed value.
        contains:
          type:
            - 'null'
            - string
          description: A literal substring.
        pattern:
          type:
            - 'null'
            - string
          description: A whole-value wildcard pattern using * and ?.
        ignoreCase:
          type: boolean
          description: Whether matching ignores case.
          default: false
        languages:
          type:
            - 'null'
            - array
          description: Every listed language must match. There is no language fallback.
        regex:
          type:
            - 'null'
            - string
          description: >-
            A substring pattern using the supported RE2 subset, validated
            locally.
        length:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/CountBounds'
              description: Bounds on the number of Unicode code points.
      description: Tests a text card property.
    IntegerPredicate:
      required:
        - property
      type: object
      properties:
        property:
          $ref: '#/components/schemas/PropertyId'
          description: Id of the card property.
        eq:
          type:
            - 'null'
            - integer
          description: Equal to this value.
          format: int64
        neq:
          type:
            - 'null'
            - integer
          description: Different from this value.
          format: int64
        in:
          type:
            - 'null'
            - array
          items:
            type: integer
            format: int64
          description: Equal to any listed value.
        lt:
          type:
            - 'null'
            - integer
          description: Less than this value.
          format: int64
        lte:
          type:
            - 'null'
            - integer
          description: Less than or equal to this value.
          format: int64
        gt:
          type:
            - 'null'
            - integer
          description: Greater than this value.
          format: int64
        gte:
          type:
            - 'null'
            - integer
          description: Greater than or equal to this value.
          format: int64
      description: Tests an integer card property.
    DecimalPredicate:
      required:
        - property
      type: object
      properties:
        property:
          $ref: '#/components/schemas/PropertyId'
          description: Id of the card property.
        eq:
          type:
            - 'null'
            - number
          description: Equal to this value.
          format: double
        neq:
          type:
            - 'null'
            - number
          description: Different from this value.
          format: double
        in:
          type:
            - 'null'
            - array
          items:
            type: number
            format: double
          description: Equal to any listed value.
        lt:
          type:
            - 'null'
            - number
          description: Less than this value.
          format: double
        lte:
          type:
            - 'null'
            - number
          description: Less than or equal to this value.
          format: double
        gt:
          type:
            - 'null'
            - number
          description: Greater than this value.
          format: double
        gte:
          type:
            - 'null'
            - number
          description: Greater than or equal to this value.
          format: double
      description: Tests a decimal card property.
    TimestampPredicate:
      required:
        - property
      type: object
      properties:
        property:
          $ref: '#/components/schemas/PropertyId'
          description: Id of the card property.
        eq:
          type:
            - 'null'
            - string
          description: Equal to this value.
          format: date-time
        neq:
          type:
            - 'null'
            - string
          description: Different from this value.
          format: date-time
        in:
          type:
            - 'null'
            - array
          items:
            type: string
            format: date-time
          description: Equal to any listed value.
        lt:
          type:
            - 'null'
            - string
          description: Less than this value.
          format: date-time
        lte:
          type:
            - 'null'
            - string
          description: Less than or equal to this value.
          format: date-time
        gt:
          type:
            - 'null'
            - string
          description: Greater than this value.
          format: date-time
        gte:
          type:
            - 'null'
            - string
          description: Greater than or equal to this value.
          format: date-time
      description: Tests a timestamp card property.
    BooleanPredicate:
      required:
        - property
      type: object
      properties:
        property:
          $ref: '#/components/schemas/PropertyId'
          description: Id of the card property.
        eq:
          type:
            - 'null'
            - boolean
          description: Equal to this value.
        neq:
          type:
            - 'null'
            - boolean
          description: Different from this value.
        in:
          type:
            - 'null'
            - array
          items:
            type: boolean
          description: Equal to any listed value.
      description: Tests a boolean card property.
    ListPredicate:
      required:
        - property
      type: object
      properties:
        property:
          $ref: '#/components/schemas/PropertyId'
          description: Id of the card property.
        contains:
          type:
            - 'null'
            - string
          description: An exact list element to match.
        pattern:
          type:
            - 'null'
            - string
          description: A wildcard pattern applied to each element.
        ignoreCase:
          type: boolean
          description: Whether element matching ignores case.
          default: false
        languages:
          type:
            - 'null'
            - array
          description: Every listed language must match. There is no language fallback.
        length:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/CountBounds'
              description: Bounds on list length, including duplicate and empty elements.
        only:
          type:
            - 'null'
            - array
          items:
            type: string
          description: >-
            Every list element must be one of these values. An empty or missing
            list doesn't match.
      description: Tests a list card property.
    PropertyReference:
      required:
        - property
      type: object
      properties:
        property:
          $ref: '#/components/schemas/PropertyId'
          description: Id of the card property.
        languages:
          type:
            - 'null'
            - array
          description: Every listed language must match. There is no language fallback.
      description: Tests that a card property has a value.
    SegmentPredicate:
      required:
        - definitionId
        - id
      type: object
      properties:
        definitionId:
          $ref: '#/components/schemas/SegmentDefinitionId'
          description: Raw id of the segment definition (e.g. `campaigns`).
        id:
          $ref: '#/components/schemas/SegmentId'
          description: Raw id of the segment within that segment definition.
      description: Describes membership in a segment.
    RelationPredicate:
      required:
        - id
      type: object
      properties:
        id:
          $ref: '#/components/schemas/RelationId'
          description: Id of the relation. The current card determines its direction.
        where:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/SearchPredicate'
              description: >-
                The condition each counted child must satisfy. Null includes all
                live children.
        count:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/CountBounds'
              description: >-
                Bounds on distinct matching children. Null requires at least one
                match.
      description: Tests live related entries.
    LifecyclePredicate:
      required:
        - id
      type: object
      properties:
        id:
          type: string
          description: Id of the lifecycle (a UUID).
          format: uuid
        state:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/LifecycleReadinessState'
              description: Readiness of the whole lifecycle for the entry.
        step:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/LifecycleStepPredicate'
              description: Condition on one step.
        firstIncompleteStepId:
          type:
            - 'null'
            - string
          description: Id of the first step that's incomplete for the entry.
          format: uuid
      description: >-
        Matches entries by their saved readiness under an active lifecycle. Set
        exactly one of `state`, `step` or `firstIncompleteStepId`. Entries
        without a saved assessment stay unknown, even under `not`.
    PropertyId:
      type: string
      description: Identifies a card property (e.g. `title`).
    SortDirection:
      enum:
        - Ascending
        - Descending
      type: string
      description: 'Sort order: ascending or descending.'
    ListSortMode:
      enum:
        - Min
        - Max
      type: string
    JsonElement: {}
    CountBounds:
      type: object
      properties:
        eq:
          type:
            - 'null'
            - integer
          description: Exactly this many.
          format: int64
        gt:
          type:
            - 'null'
            - integer
          description: Greater than this value.
          format: int64
        gte:
          type:
            - 'null'
            - integer
          description: Greater than or equal to this value.
          format: int64
        lt:
          type:
            - 'null'
            - integer
          description: Less than this value.
          format: int64
        lte:
          type:
            - 'null'
            - integer
          description: Less than or equal to this value.
          format: int64
      description: Sets an exact count or a range of nonnegative counts.
    SegmentDefinitionId:
      type: string
      description: Identifies a segment definition by its raw id (e.g. `campaigns`).
    SegmentId:
      type: string
      description: Identifies a segment by its raw id within its segment definition.
    RelationId:
      type: string
      description: Identifies a relation definition by its raw id.
    LifecycleReadinessState:
      enum:
        - Complete
        - Incomplete
        - NotApplicable
      type: string
    LifecycleStepPredicate:
      required:
        - id
      type: object
      properties:
        id:
          type: string
          description: Id of the step in the active revision (a UUID).
          format: uuid
        requirements:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/LifecycleRequirementsFilter'
              description: >-
                Whether the step's own blocking rules pass, whatever earlier
                steps say.
        completion:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/LifecycleCompletionFilter'
              description: Whether the step and every earlier step are complete.
      description: >-
        Matches one step of a lifecycle. Set exactly one of `requirements` or
        `completion`.
    LifecycleRequirementsFilter:
      enum:
        - Satisfied
        - Failed
      type: string
    LifecycleCompletionFilter:
      enum:
        - Complete
        - Incomplete
      type: string
  securitySchemes:
    kindeOAuth:
      type: oauth2
      description: >-
        Sign in with the existing Occtoo Studio identity and selected
        organization.
      flows:
        authorizationCode:
          authorizationUrl: >-
            https://auth-test.occtoo.com/oauth2/auth?audience=https%3A%2F%2Fapi-test.occtoo.com
          tokenUrl: https://auth-test.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.