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

# Count the NPS answers of Pendo guides

> The NPS ratings each guide got in the last 90 days. `ids` (comma-separated) counts only those guides. It counts at most 20 guides, and stops after 45 seconds. A guide it did not count is in `failed`. An id that is not a live NPS guide is in neither `counts` nor `failed`: GET /integrations/pendo/surveys lists the live guides. A 409 means Pendo is not connected, or Pendo rejected the key: an admin fixes the connection in Statisfy's app. A 422 means Pendo refused the call (a wrong region comes with its own message). A 404 means Pendo did not find the requested item. A 502 means Pendo did not answer or is rate limited: try again in a minute.



## OpenAPI

````yaml /api/statisfy-api.openapi.json get /v1/integrations/pendo/surveys/answer-counts
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/surveys/answer-counts:
    get:
      tags:
        - integrations
      summary: Count the NPS answers of Pendo guides
      description: >-
        The NPS ratings each guide got in the last 90 days. `ids`
        (comma-separated) counts only those guides. It counts at most 20 guides,
        and stops after 45 seconds. A guide it did not count is in `failed`. An
        id that is not a live NPS guide is in neither `counts` nor `failed`: GET
        /integrations/pendo/surveys lists the live guides. A 409 means Pendo is
        not connected, or Pendo rejected the key: an admin fixes the connection
        in Statisfy's app. A 422 means Pendo refused the call (a wrong region
        comes with its own message). A 404 means Pendo did not find the
        requested item. A 502 means Pendo did not answer or is rate limited: try
        again in a minute.
      operationId: integrations_pendo_count_survey_answers
      parameters:
        - description: >-
            Comma-separated guide IDs: count only those guides, in that order.
            Left out: every live guide
          in: query
          name: ids
          required: false
          schema:
            anyOf:
              - maxLength: 4000
                type: string
              - type: 'null'
            default: null
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PendoSurveyAnswerCounts'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    PendoSurveyAnswerCounts:
      properties:
        counts:
          items:
            $ref: '#/components/schemas/PendoSurveyAnswerCount'
          title: Counts
          type: array
        days:
          description: The window of the counts, in days, back from now
          title: Days
          type: integer
        failed:
          description: >-
            IDs of the guides that were not counted: a failure, the cap, or the
            time limit
          items:
            type: string
          title: Failed
          type: array
      required:
        - days
        - counts
        - failed
      title: PendoSurveyAnswerCounts
      type: object
    PendoSurveyAnswerCount:
      properties:
        answers:
          description: NPS ratings the guide got in the window
          title: Answers
          type: integer
        id:
          description: The guide ID
          title: Id
          type: string
      required:
        - id
        - answers
      title: PendoSurveyAnswerCount
      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.