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

# Fetch sample Freshdesk tickets

> Recent tickets, whole, with their company and requester, for /preview. Tickets with no company are left out (ingestion skips them) and counted in `warnings`. Writes nothing. Needs integrations:write: the tickets are Freshdesk data, requester emails included. Calls Freshdesk through Paragon: a 502 when Freshdesk refuses or does not answer.



## OpenAPI

````yaml /api/statisfy-api.openapi.json post /v1/integrations/freshdesk/sample-tickets
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/freshdesk/sample-tickets:
    post:
      tags:
        - integrations
      summary: Fetch sample Freshdesk tickets
      description: >-
        Recent tickets, whole, with their company and requester, for /preview.
        Tickets with no company are left out (ingestion skips them) and counted
        in `warnings`. Writes nothing. Needs integrations:write: the tickets are
        Freshdesk data, requester emails included. Calls Freshdesk through
        Paragon: a 502 when Freshdesk refuses or does not answer.
      operationId: integrations_freshdesk_sample_tickets
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                sample_size:
                  default: 5
                  description: How many tickets to return
                  maximum: 20
                  minimum: 1
                  title: Sample Size
                  type: integer
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FreshdeskSampleTickets'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    FreshdeskSampleTickets:
      properties:
        tickets:
          description: >-
            Recent tickets, whole, with `company` and `requester` inlined. Send
            them to /preview
          items:
            additionalProperties: true
            type: object
          title: Tickets
          type: array
        warnings:
          items:
            type: string
          title: Warnings
          type: array
      required:
        - tickets
        - warnings
      title: FreshdeskSampleTickets
      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.