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

# Check a Pendo query

> Checks Pendo aggregation JSON without sending it to Pendo. The date tokens are filled with the latest complete week. A query with {PENDO_ACCOUNT_ID_FIELD} is checked with the saved account ID field. Returns `valid` and the `errors`. Safe to repeat.



## OpenAPI

````yaml /api/statisfy-api.openapi.json post /v1/integrations/pendo/query/validate
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/integrations/pendo/query/validate:
    post:
      tags:
        - integrations
      summary: Check a Pendo query
      description: >-
        Checks Pendo aggregation JSON without sending it to Pendo. The date
        tokens are filled with the latest complete week. A query with
        {PENDO_ACCOUNT_ID_FIELD} is checked with the saved account ID field.
        Returns `valid` and the `errors`. Safe to repeat.
      operationId: integrations_pendo_validate_query
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                query:
                  description: >-
                    The Pendo aggregation JSON, as text. A request body with a
                    `request.pipeline`. It may use {START_DATE_MS},
                    {END_DATE_MS} and {PENDO_ACCOUNT_ID_FIELD}, which each run
                    fills in
                  maxLength: 100000
                  minLength: 1
                  title: Query
                  type: string
                query_type:
                  description: >-
                    Decides how the date tokens are filled: a custom_object
                    query has no dates
                  enum:
                    - custom_field
                    - product_usage
                    - custom_object
                  title: Query Type
                  type: string
              required:
                - query
                - query_type
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PendoQueryCheck'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    PendoQueryCheck:
      properties:
        errors:
          description: Why it is not valid
          items:
            type: string
          title: Errors
          type: array
        valid:
          description: True when the text is a valid Pendo aggregation body
          title: Valid
          type: boolean
      required:
        - valid
        - errors
      title: PendoQueryCheck
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

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