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

# Search disclaimers

> Searches the disclaimers library with applicability semantics — the same behaviour as the searchDisclaimers MCP tool. Your product, channel (adTypeId), jurisdiction (countryId) and content type filters do not remove disclaimers: they sort them into buckets. applicable = the disclaimer covers every filter you gave; notApplicable = it does not; linked = the ids you passed in linkedDisclaimerIds. Pass category to get the rows of one bucket; without category the result carries only the count per bucket. Rows come in wording order, ties always in the same order, so pages never repeat or skip a disclaimer unless the library changes between your calls.



## OpenAPI

````yaml /openapi/integration-api.json get /v1/disclaimers/search
openapi: 3.1.0
info:
  title: Adclear Public API
  version: 1.0.0
  description: >
    REST API for managing promotions, versions, evaluations, and reference data.


    ## Authentication

    All requests require a Bearer token (your API key) and the
    `X-External-User-ID` header,

    identifying the acting user in your system. The value is recorded against
    every audited

    action the request performs; requests without it are rejected with 400.


    `X-External-User-Email` is only meaningful on keys with act-on-behalf
    enabled, where it

    is resolved to the matching Adclear user and becomes mandatory on writes. On
    ordinary

    keys it is ignored. The same gate applies to `author.email` on comment
    import and

    update: only act-on-behalf keys may attribute to an organization member
    other than

    the key's own user. On ordinary keys, imported comments from that email are
    recorded

    as an external author, and action updates get a per-item
    `AUTHOR_NOT_PERMITTED`.


    Review endpoints (e.g. `POST .../decision`) authorize **as the acting
    user**: that

    person must hold review permission for the promotion's country and must not
    be the

    uploader of the version while self-approval is disabled — pass the email of
    the

    person who actually made the decision, not the identity that uploaded. A 403
    names

    the specific cause in `error.message`.


    ## Quick Start


    ### 1. Upload files

    Use the **File API** at `files.adclear.ai`
    ([docs](https://files.adclear.ai/v1/docs)):

    ```

    POST https://files.adclear.ai/v1/uploads  →  { uploadId, uploadUrl }

    PUT  {uploadUrl}  (binary file)

    ```


    ### 1b. Or submit a link

    Generic URLs are captured synchronously as a full-page screenshot (up to 2
    minutes —

    set a generous client timeout). Limited to 10 requests per minute per API
    key.

    ```

    POST /v1/links  { url }  →  201 { uploadId, fileFormat: "image" }

    ```

    Figma links import asynchronously. The file must be shared with "anyone with
    the link",

    and a frame must be identified via the node-id in the URL ("copy link to
    frame" in Figma),

    the `figmaFrameId` field, or discovery via `POST /v1/links/figma/frames`:

    ```

    POST /v1/links  { url: "https://www.figma.com/design/KEY/Name?node-id=1-23"
    }

    →  202 { uploadId, statusUrl }

    GET  {statusUrl}  (poll every few seconds)

    →  200 { status: "completed", finalUploadId }

    ```

    Google Drive and Google Docs links import asynchronously too, and must also
    be shared

    with "anyone with the link" (the API has no connected Google account, so
    private files

    are unreachable). Native Docs, Sheets and Slides are converted to PDF:

    ```

    POST /v1/links  { url: "https://docs.google.com/document/d/KEY/edit" }

    →  202 { uploadId, fileFormat: "pdf", source: "gdrive", statusUrl }

    GET  {statusUrl}  (poll every few seconds)

    →  200 { status: "completed", finalUploadId }

    ```

    Always poll `statusUrl` exactly as returned — it carries the source the poll
    needs.

    Use the resulting uploadId (or `finalUploadId`) when creating a promotion,
    with the

    `fileFormat` from the capture response rather than a fixed value:
    screenshots and Figma

    frames are always `image`, but a Drive file can be any supported format.
    Very large

    Figma frames (over ~6 megapixels) cannot be imported via the API yet.


    ### 2. Create a promotion

    ```

    POST /v1/promotions  { uploadIds, fileFormat, promotionName, ... }

    →  201 { promotionId, versionId }

    →  409 if uploads not yet ready (retry after a short delay)

    ```


    #### Field limits

    The free-text `details` field ("Additional details" in the UI) accepts up to

    **1,500 characters** on every path — single promotions, each entry of a

    `variations[]` set, and new versions (`POST /v1/promotions/{id}/versions`).

    Over-length values are rejected with a `400 VALIDATION_ERROR` whose

    `error.details[]` identifies the offending field (e.g. `details` or

    `variations.2.details`) and the permitted length — no binary-searching
    required.


    ### 3. Trigger evaluation

    ```

    POST /v1/promotions/{id}/versions/{id}/evaluate

    →  202 { evaluationId, status: "processing" }

    ```


    ### 4. Receive results via webhook

    An `evaluation-completed` webhook is sent to your configured endpoint

    with the evaluation status, issues, and any metadata you provided.
    Comment-backed

    issues normally include a `commentId`; replayed deliveries may omit it. Send
    it as

    `parentCommentId` when posting a reply.

    If that reply briefly returns `PARENT_NOT_FOUND`, retry because comment
    indexing is asynchronous.


    ### 5. Submit revisions (if needed)

    Upload new files, then create a new version on the same promotion:

    ```

    POST /v1/promotions/{id}/versions  { uploadIds, fileFormat, ... }

    →  201 { versionId, version: 2 }

    ```


    ---
servers:
  - url: https://public-api.adclear.ai
    description: Production
  - url: https://public-api-staging.adclear.ai
    description: Staging
security:
  - BearerAuth: []
tags:
  - name: Promotions
    description: Promotion and version management
  - name: Links
    description: >-
      Submit URLs, public Figma frames and public Google Drive files as uploads
      for promotions
  - name: Evaluation
    description: AI evaluation triggers and results
  - name: Reference Data
    description: Read-only lookups for products, channels, jurisdictions, target markets
  - name: Disclaimers
    description: >-
      Read-only access to the disclaimers library: list, search with
      applicability buckets, and fetch by id
externalDocs:
  description: File uploads are handled by the File Proxy API (files.adclear.ai)
  url: https://files.adclear.ai/v1/docs
paths:
  /v1/disclaimers/search:
    get:
      tags:
        - Disclaimers
      summary: Search disclaimers
      description: >-
        Searches the disclaimers library with applicability semantics — the same
        behaviour as the searchDisclaimers MCP tool. Your product, channel
        (adTypeId), jurisdiction (countryId) and content type filters do not
        remove disclaimers: they sort them into buckets. applicable = the
        disclaimer covers every filter you gave; notApplicable = it does not;
        linked = the ids you passed in linkedDisclaimerIds. Pass category to get
        the rows of one bucket; without category the result carries only the
        count per bucket. Rows come in wording order, ties always in the same
        order, so pages never repeat or skip a disclaimer unless the library
        changes between your calls.
      operationId: searchDisclaimers
      parameters:
        - schema:
            type: string
            description: Text to find in disclaimer names and disclaimer text
          required: false
          name: search
          in: query
        - schema:
            type: string
            description: >-
              Disclaimers that cover any of these products (or all products) are
              applicable. Comma-separated list of UUIDs.
          required: false
          name: productId
          in: query
        - schema:
            type: string
            description: >-
              Disclaimers that cover any of these channels (or all channels) are
              applicable. Comma-separated list of UUIDs.
          required: false
          name: adTypeId
          in: query
        - schema:
            type: string
            description: >-
              Disclaimers that cover any of these jurisdictions (or all
              jurisdictions) are applicable. Comma-separated list of UUIDs.
          required: false
          name: countryId
          in: query
        - schema:
            type: string
            description: >-
              Content types: video, pdf, audio, image or text. Disclaimers that
              cover any of them (or all types) are applicable. Comma-separated
              list.
          required: false
          name: contentType
          in: query
        - schema:
            type: string
            description: >-
              Ids of disclaimers you have already chosen; returned in the linked
              bucket instead of applicable / notApplicable. Comma-separated list
              of UUIDs.
          required: false
          name: linkedDisclaimerIds
          in: query
        - schema:
            type: string
            description: >-
              Disclaimer ids from an earlier search. Returns exactly these
              disclaimers (search is then ignored); without category every one
              is returned with its applicability. Comma-separated list of UUIDs.
          required: false
          name: ids
          in: query
        - schema:
            type: string
            enum:
              - applicable
              - notApplicable
              - linked
            description: >-
              Which bucket to return rows for. Without it you get only the count
              per bucket (unless ids is given).
          required: false
          name: category
          in: query
        - schema:
            type: integer
            minimum: 1
            description: >-
              Page of the chosen bucket, starting at 1 (default). For the next
              page pass the nextPage of the previous result.
          required: false
          name: page
          in: query
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            description: Rows per page, 1 to 100. Default 10.
          required: false
          name: limit
          in: query
        - schema:
            type: string
            enum:
              - 'true'
              - 'false'
            description: true returns only the count per bucket, no rows.
          required: false
          name: countsOnly
          in: query
        - name: X-External-User-ID
          in: header
          required: true
          schema:
            type: string
          description: >-
            Identifier of the acting user in the calling system (e.g. a
            Workfront user id). Recorded against every audited action this
            request performs.
        - name: X-External-User-Email
          in: header
          required: false
          schema:
            type: string
            format: email
          description: >-
            Acting user email. Only meaningful on keys with act-on-behalf
            enabled, where it is resolved to the matching Adclear user and is
            mandatory on writes. Ignored on ordinary keys.
      responses:
        '200':
          description: Bucket counts, plus a page of one bucket when category is given
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchDisclaimersResponse'
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized — missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: >-
            Forbidden — the API key's scope or the acting user's permissions do
            not allow this operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    SearchDisclaimersResponse:
      type: object
      properties:
        disclaimers:
          type: array
          items:
            $ref: '#/components/schemas/DisclaimerSearchResult'
        counts:
          type: object
          properties:
            applicable:
              type: integer
            notApplicable:
              type: integer
            linked:
              type: integer
          required:
            - applicable
            - notApplicable
            - linked
          description: >-
            How many disclaimers fell into each bucket. Filters sort disclaimers
            into buckets rather than removing them.
        pagination:
          type: object
          properties:
            category:
              type: string
              enum:
                - applicable
                - notApplicable
                - linked
            page:
              type: integer
            limit:
              type: integer
            total:
              type: integer
            totalPages:
              type: integer
            hasMore:
              type: boolean
            nextPage:
              type:
                - integer
                - 'null'
          required:
            - category
            - page
            - limit
            - total
            - totalPages
            - hasMore
            - nextPage
          description: >-
            Present when a category was requested without countsOnly. To read
            the whole bucket, call again with page set to nextPage until hasMore
            is false.
        correlationId:
          type: string
          format: uuid
          description: Correlation ID for request tracing. Include in support requests.
      required:
        - disclaimers
        - counts
        - correlationId
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - VALIDATION_ERROR
                - INVALID_REQUEST
                - UNAUTHORIZED
                - FORBIDDEN
                - NOT_FOUND
                - CONFLICT
                - PAYLOAD_TOO_LARGE
                - RATE_LIMITED
                - INTERNAL_ERROR
                - UPSTREAM_ERROR
            message:
              type: string
            details:
              type: array
              items:
                oneOf:
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - field_error
                      field:
                        type: string
                      message:
                        type: string
                    required:
                      - type
                      - field
                      - message
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - constraint_violation
                      constraint:
                        type: string
                      limit:
                        type: number
                      actual:
                        type: number
                    required:
                      - type
                      - constraint
                      - limit
                      - actual
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - retry_info
                      retryAfterSeconds:
                        type: number
                    required:
                      - type
                      - retryAfterSeconds
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - upload_not_ready
                      uploadId:
                        type: string
                        format: uuid
                    required:
                      - type
                      - uploadId
          required:
            - code
            - message
        correlationId:
          type: string
          format: uuid
      required:
        - error
        - correlationId
    DisclaimerSearchResult:
      type: object
      properties:
        id:
          type: string
          format: uuid
        publicId:
          type: integer
          description: >-
            Human-facing disclaimer number ("Disclaimer 42"), shared by all
            versions of one disclaimer
        name:
          type:
            - string
            - 'null'
        content:
          type: string
          description: The disclaimer text
        createdAt:
          type: string
          format: date-time
          description: When this disclaimer version was created
        contentTypes:
          type: array
          items:
            type: string
          description: >-
            Content types the disclaimer covers: video, pdf, audio, image or
            text
        products:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                format: uuid
              name:
                type: string
            required:
              - id
              - name
        adTypes:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                format: uuid
              name:
                type: string
            required:
              - id
              - name
        countries:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                format: uuid
              name:
                type: string
            required:
              - id
              - name
        communicationTypes:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                format: uuid
              name:
                type: string
            required:
              - id
              - name
        applyToAllProducts:
          type: boolean
        applyToAllAdTypes:
          type: boolean
        applyToAllCountries:
          type: boolean
        applyToAllContentTypes:
          type: boolean
        applyToAllCommunicationTypes:
          type: boolean
        isApplicable:
          type: boolean
          description: Whether the disclaimer covers every filter you gave
      required:
        - id
        - publicId
        - name
        - content
        - createdAt
        - contentTypes
        - products
        - adTypes
        - countries
        - communicationTypes
        - applyToAllProducts
        - applyToAllAdTypes
        - applyToAllCountries
        - applyToAllContentTypes
        - applyToAllCommunicationTypes
        - isApplicable
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: API key passed as Bearer token

````

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