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

# List a CRM object's fields

> The fields of one object (salesforce, salesforce_native, hubspot, gainsight), with their type and, for lookups, the objects they point to. Filter by `field_type` or `reference_to`. Calls Salesforce. A preview that Salesforce refuses or cannot answer, for any reason (an expired session or a used-up API limit included), answers is_valid false with a fixed message: Salesforce's reason is not passed on. The object list is a 502 when Salesforce does not answer, and the fields of an object it does not describe are a 404. A 500 on an unexpected failure.



## OpenAPI

````yaml /api/statisfy-api.openapi.json get /v1/integrations/{key}/objects/{object_name}/fields
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/{key}/objects/{object_name}/fields:
    get:
      tags:
        - integrations
      summary: List a CRM object's fields
      description: >-
        The fields of one object (salesforce, salesforce_native, hubspot,
        gainsight), with their type and, for lookups, the objects they point to.
        Filter by `field_type` or `reference_to`. Calls Salesforce. A preview
        that Salesforce refuses or cannot answer, for any reason (an expired
        session or a used-up API limit included), answers is_valid false with a
        fixed message: Salesforce's reason is not passed on. The object list is
        a 502 when Salesforce does not answer, and the fields of an object it
        does not describe are a 404. A 500 on an unexpected failure.
      operationId: integrations_list_object_fields
      parameters:
        - description: The integration key, such as snowflake or salesforce
          in: path
          name: key
          required: true
          schema:
            type: string
        - description: The object's API name, from /objects
          in: path
          name: object_name
          required: true
          schema:
            maxLength: 200
            minLength: 1
            pattern: ^[A-Za-z0-9_]+$
            type: string
        - description: Only fields of this type (such as currency, date, reference)
          in: query
          name: field_type
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            default: null
        - description: Only lookup fields to this object (such as User)
          in: query
          name: reference_to
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            default: null
        - description: 'HubSpot: only the properties that sync as plain fields'
          in: query
          name: scalar_only
          required: false
          schema:
            default: false
            type: boolean
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CrmObjectFields'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    CrmObjectFields:
      description: The fields of one CRM object, sorted by label.
      properties:
        fields:
          items:
            $ref: '#/components/schemas/FieldInfo'
          title: Fields
          type: array
        object_name:
          title: Object Name
          type: string
      required:
        - object_name
        - fields
      title: CrmObjectFields
      type: object
    FieldInfo:
      description: Information about a CRM object field/property.
      properties:
        label:
          title: Label
          type: string
        name:
          title: Name
          type: string
        reference_to:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Reference To
        type:
          title: Type
          type: string
      required:
        - name
        - label
        - type
      title: FieldInfo
      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.