> ## 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 Rocketlane config

> A dry run: tries a draft config on Rocketlane projects and says which account each would go to, writing nothing. Needs integrations:write: the projects are Rocketlane data. Calls Rocketlane through Paragon: a 502 when Rocketlane refuses or does not answer.



## OpenAPI

````yaml /api/statisfy-api.openapi.json post /v1/integrations/rocketlane/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/rocketlane/preview:
    post:
      tags:
        - integrations
      summary: Preview a Rocketlane config
      description: >-
        A dry run: tries a draft config on Rocketlane projects and says which
        account each would go to, writing nothing. Needs integrations:write: the
        projects are Rocketlane data. Calls Rocketlane through Paragon: a 502
        when Rocketlane refuses or does not answer.
      operationId: integrations_rocketlane_preview
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                config:
                  $ref: '#/components/schemas/RocketlaneTenantConfig'
                  description: >-
                    The draft config to try, in the shape of GET /config
                    (without `version`). Nothing is saved
                sample_size:
                  default: 5
                  description: How many projects to try, for scope sample
                  maximum: 20
                  minimum: 1
                  title: Sample Size
                  type: integer
                scope:
                  default: sample
                  description: >-
                    sample: the first `sample_size` projects, each with its
                    account. all: every project, with the counts and the open
                    projects that match no account
                  enum:
                    - sample
                    - all
                  title: Scope
                  type: string
              required:
                - config
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RocketlanePreview'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    RocketlaneTenantConfig:
      description: >-
        Top-level tenant configuration for Rocketlane.


        Stored in IntegrationConfiguration.configuration under
        integration_key="rocketlane".

        Loader returns None on validation failure so the runtime can
        silent-fall-back

        to legacy hardcoded behavior — see
        integrations/rocketlane/config_loader.py.
      properties:
        customer_resolution:
          description: >-
            Default resolver chain applied to projects without a matching
            project_rule. Empty list means 'no default configured' — the runtime
            then falls back to legacy companyName fuzzy match.
          items:
            $ref: '#/components/schemas/AccountResolverConfig'
          title: Customer Resolution
          type: array
        project_fields:
          $ref: '#/components/schemas/RocketlaneFieldSelection'
        project_rules:
          description: >-
            Per-project resolver overrides. The first active rule whose
            project_id matches is used; otherwise the tenant default is used.
          items:
            $ref: '#/components/schemas/RocketlaneProjectRule'
          title: Project Rules
          type: array
        project_status_mappings:
          items:
            $ref: '#/components/schemas/RocketlaneStatusMapping'
          title: Project Status Mappings
          type: array
        task_fields:
          $ref: '#/components/schemas/RocketlaneFieldSelection'
        task_status_mappings:
          items:
            $ref: '#/components/schemas/RocketlaneStatusMapping'
          title: Task Status Mappings
          type: array
      title: RocketlaneTenantConfig
      type: object
    RocketlanePreview:
      description: The result of a draft config on Rocketlane projects.
      properties:
        chain_counts:
          items:
            $ref: '#/components/schemas/ChainEntryCount'
          title: Chain Counts
          type: array
        match_rate:
          description: Fraction of the previewed projects with a resolved account.
          title: Match Rate
          type: number
        projects:
          items:
            $ref: '#/components/schemas/PreviewProjectResult'
          title: Projects
          type: array
        scope:
          default: sample
          enum:
            - sample
            - all
          title: Scope
          type: string
        total_projects:
          default: 0
          title: Total Projects
          type: integer
        unmatched_count:
          default: 0
          title: Unmatched Count
          type: integer
        unmatched_projects:
          description: >-
            At most 200 open projects that match no account. Only for scope
            `all`.
          items:
            $ref: '#/components/schemas/UnmatchedProject'
          title: Unmatched Projects
          type: array
        warnings:
          items:
            type: string
          title: Warnings
          type: array
      required:
        - projects
        - match_rate
      title: RocketlanePreview
      type: object
    AccountResolverConfig:
      description: >-
        How to map record rows to internal Statisfy account IDs.


        Used by warehouse integrations (postgres/redshift/bigquery/snowflake)
        and

        JIRA. The schema is integration-agnostic; resolver types are dispatched
        by

        the integration's hydrator.
      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: AccountResolverConfig
      type: object
    RocketlaneFieldSelection:
      description: >-
        The Rocketlane fields of one object (project or task) that Statisfy
        syncs.


        `include` syncs only the listed fields. `exclude` syncs every enabled
        field

        except the listed ones, and picks up new Rocketlane fields at the next
        sync.

        The default, `include` with no ids, syncs no field.
      properties:
        field_ids:
          description: >-
            A Rocketlane fieldId as a string of digits, or the name of a
            built-in value (for example `arr`).
          items:
            type: string
          title: Field Ids
          type: array
        mode:
          default: include
          enum:
            - include
            - exclude
          title: Mode
          type: string
      title: RocketlaneFieldSelection
      type: object
    RocketlaneProjectRule:
      description: |-
        Per-Rocketlane-project customer-resolution override.

        A rule with no `project_id` is the tenant-wide catch-all; only one such
        rule is meaningful (additional ones are ignored — the runtime picks the
        first match). When project_id is set, the rule applies only to that
        Rocketlane projectId.
      properties:
        customer_resolution:
          description: >-
            Resolver chain tried in order; first non-None match wins. Equivalent
            to a CompositeResolver.
          items:
            $ref: '#/components/schemas/AccountResolverConfig'
          minItems: 1
          title: Customer Resolution
          type: array
        id:
          description: >-
            Stable client-side id used by the wizard UI as a React key.
            Auto-assigned at parse time for configs that don't carry one.
          title: Id
          type: string
        is_active:
          default: true
          description: >-
            When False, this rule is skipped and resolution falls through to the
            default rule (or legacy companyName match if no default).
          title: Is Active
          type: boolean
        project_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            Rocketlane projectId this rule applies to. None = tenant-wide
            default.
          title: Project Id
      required:
        - customer_resolution
      title: RocketlaneProjectRule
      type: object
    RocketlaneStatusMapping:
      description: |-
        One Rocketlane status option and the Statisfy status row that holds it.

        The group is not stored here. It lives only on `task_status.group`.
      properties:
        label:
          description: Display only. The name of the row is the source of truth.
          title: Label
          type: string
        option_value:
          description: Rocketlane optionValue. It is the stable id of the option.
          title: Option Value
          type: integer
        status_id:
          description: task_status.id of the row in the Rocketlane status template.
          title: Status Id
          type: integer
      required:
        - option_value
        - status_id
        - label
      title: RocketlaneStatusMapping
      type: object
    ChainEntryCount:
      properties:
        count:
          title: Count
          type: integer
        resolved_via:
          description: The identifier column of the chain entry.
          title: Resolved Via
          type: string
      required:
        - resolved_via
        - count
      title: ChainEntryCount
      type: object
    PreviewProjectResult:
      description: One row in the preview-resolution response.
      properties:
        fields_preview:
          additionalProperties:
            type: string
          title: Fields Preview
          type: object
        matched:
          title: Matched
          type: boolean
        project_id:
          title: Project Id
          type: string
        project_name:
          title: Project Name
          type: string
        resolved_account_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Resolved Account Id
        resolved_account_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Resolved Account Name
        resolved_via:
          anyOf:
            - type: string
            - type: 'null'
          description: The identifier column on the resolver that produced the match.
          title: Resolved Via
      required:
        - project_id
        - project_name
        - matched
      title: PreviewProjectResult
      type: object
    UnmatchedProject:
      properties:
        project_id:
          title: Project Id
          type: string
        project_name:
          title: Project Name
          type: string
        reason:
          title: Reason
          type: string
      required:
        - project_id
        - project_name
        - reason
      title: UnmatchedProject
      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.