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

# Preview a Zendesk config

> A dry run on the tickets /sample-tickets returned: every method for every ticket, the one that won (the first whose account exists and is live), the account the ticket is on today, and a warning when a value matches several accounts. Calls nothing and writes nothing. A chain the save would refuse is a 422. A method whose value is a list of more than 20 items, or that would go past the preview's 100 method lookups, is not run: its error is TooManyValues. A list of email domains is one lookup and has no item limit.



## OpenAPI

````yaml /api/statisfy-api.openapi.json post /v1/integrations/zendesk/preview
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/zendesk/preview:
    post:
      tags:
        - integrations
      summary: Preview a Zendesk config
      description: >-
        A dry run on the tickets /sample-tickets returned: every method for
        every ticket, the one that won (the first whose account exists and is
        live), the account the ticket is on today, and a warning when a value
        matches several accounts. Calls nothing and writes nothing. A chain the
        save would refuse is a 422. A method whose value is a list of more than
        20 items, or that would go past the preview's 100 method lookups, is not
        run: its error is TooManyValues. A list of email domains is one lookup
        and has no item limit.
      operationId: integrations_zendesk_preview
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                config:
                  $ref: '#/components/schemas/ZendeskConfigInput'
                  description: >-
                    The draft config to try: GET /config's
                    `customer_resolution`, without `version`. Nothing is saved
                tickets:
                  description: The tickets /sample-tickets returned
                  items:
                    additionalProperties: true
                    type: object
                  maxItems: 25
                  minItems: 1
                  title: Tickets
                  type: array
              required:
                - config
                - tickets
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ZendeskPreview'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    ZendeskConfigInput:
      additionalProperties: false
      properties:
        customer_resolution:
          description: >-
            Methods tried in order; the first one that finds a live account
            wins.
          items:
            $ref: '#/components/schemas/ZendeskMethodInput'
          title: Customer Resolution
          type: array
      title: ZendeskConfigInput
      type: object
    ZendeskPreview:
      properties:
        match_rate:
          description: The share of the tickets that matched an account, 0 to 1
          title: Match Rate
          type: number
        tickets:
          description: >-
            Each ticket with every step's result (`tiers`), the step that won
            and the account
          items:
            additionalProperties: true
            type: object
          title: Tickets
          type: array
        warnings:
          items:
            type: string
          title: Warnings
          type: array
      required:
        - tickets
        - match_rate
        - warnings
      title: ZendeskPreview
      type: object
    ZendeskMethodInput:
      additionalProperties: false
      description: >-
        A method as /v1 takes it: an unknown key (a typo) is a 422, not dropped.
        The stored schema stays lenient.
      properties:
        abbreviations:
          anyOf:
            - additionalProperties:
                type: string
              type: object
            - type: 'null'
          default: null
          description: >-
            Map of summary prefix abbreviation to canonical customer name
            (abbreviation_map)
          title: Abbreviations
        column:
          description: Source column in record containing the identifier
          title: Column
          type: string
        custom_field_key:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: Custom field key for custom_field/custom_field_bulk resolver types
          title: Custom Field Key
        cutoff:
          anyOf:
            - type: number
            - type: 'null'
          default: null
          description: >-
            Fuzzy matching cutoff for account_name / parent_epic_summary /
            jira_field (name target) / payload_field (name target) resolvers
            (0.0-1.0). Default 0.5; tenants that need stricter matching (e.g.
            Eightfold's 0.9) set explicitly.
          title: Cutoff
        exclude_keywords:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          default: null
          description: >-
            Parent-epic summaries equal (after strip) to any of these strings
            are skipped (parent_epic_summary). Exact-match semantics — list the
            full summary text, not a substring.
          title: Exclude Keywords
        field_to_parse:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            Record key to parse for the abbreviation prefix (abbreviation_map;
            default 'summary')
          title: Field To Parse
        match_mode:
          anyOf:
            - enum:
                - exact
                - similar
              type: string
            - type: 'null'
          default: null
          description: >-
            How account_name and the name target of payload_field /
            rocketlane_field / jira_field / linear_field compare names. 'exact'
            matches the whole name, ignoring case. It compares the stored name
            as is, so a stored name with an edge space does not match. 'similar'
            or unset uses the fuzzy match with `cutoff`.
          title: Match Mode
        type:
          enum:
            - statisfy_account_id
            - crm_account_id
            - organization_id
            - email_domain
            - custom_field
            - custom_field_bulk
            - account_name
            - parent_epic_summary
            - abbreviation_map
            - jira_field
            - rocketlane_field
            - linear_field
            - payload_field
            - contact_email
          title: Type
          type: string
        value_transform:
          anyOf:
            - $ref: '#/components/schemas/ValueTransformConfig'
            - type: 'null'
          default: null
          description: >-
            Optional pre-lookup transforms on the extracted value. Honored by
            the jira_field resolver to express Milestone- and SproutsAI-style
            value shaping (prefix stripping, sentinel skipping, first-token
            extraction).
      required:
        - type
        - column
      title: ZendeskMethodInput
      type: object
    ValueTransformConfig:
      description: >-
        Pre-lookup transforms applied to a raw field value before resolver
        matching.


        Captures shapes the legacy per-tenant providers expressed in code: skip

        sentinel values (Milestone's "Milestone" literal), strip prefixes

        (Milestone's "CUST-" prefix), split on a separator and take the first

        token (SproutsAI's `summary.split("|")[0]`, Milestone's space- or

        underscore-split). All fields are optional and applied left-to-right in

        the order listed below. If any step yields an empty string the resolver

        treats the field as missing.


        Currently honored by `JiraFieldAccountResolver`. Future resolvers can
        opt

        in by reading `value_transform` and applying `apply_value_transform()`.
      properties:
        regex_extract:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            Python regex pattern; if it matches, replace the value with the
            first capture group. Applied last so it can post-process the output
            of the other transforms.
          title: Regex Extract
        skip_if_contains:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: If the raw value contains this substring, return None / skip lookup.
          title: Skip If Contains
        skip_if_equals:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            If the raw value equals this string (after strip), return None /
            skip lookup.
          title: Skip If Equals
        split_first_token:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            Split the value on this separator and keep the first non-empty
            token. E.g. '|' for SproutsAI's 'Acme | INC-123' summary shape; ' '
            or '_' for Milestone.
          title: Split First Token
        strip_prefix:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: If the value starts with this prefix, remove it before lookup.
          title: Strip Prefix
      title: ValueTransformConfig
      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.