> ## Documentation Index
> Fetch the complete documentation index at: https://docs.joinluminous.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Companies

> Get a paginated list of companies with optional filtering and sorting.

For detailed information about the filtering system and available operators, 
refer to the [Filter System Documentation](/filters).

## Available Sort Fields

- `id` - Sort by company ID
- `created_at` - Sort by creation date (default: `updated_at:desc`)
- `updated_at` - Sort by last update date (default: `updated_at:desc`)

Sort format: `field:direction` where direction is `asc` (ascending) or `desc` (descending).

Examples:
- `?sort=id:asc` - Sort by ID ascending
- `?sort=created_at:desc` - Sort by creation date descending
- `?sort=updated_at:asc` - Sort by update date ascending

## Available Filters
### String Filters
- `name`: Company name
- `type`: Type of business
- `city`: City
- `state`: State
- `country`: Country
- `zip`: ZIP/Postal code
- `phone`: Phone number
- `payment_term`: Payment term
- `status`: Company status
- `tag`: Filter by tag name

### DateTime Filters
- `created_at`: When the company was created
- `updated_at`: When the company was last updated

### Custom Field Filters
Custom fields can be filtered using their field names. Custom field filters are dynamically 
generated based on the custom fields defined for companies in your system.

Custom field filters use the format `custom_fields.{field_label}` where `{field_label}` is 
the exact label of the custom field as defined in your system. The available operators depend 
on the custom field type:

- **String/Dropdown fields**: `eq`, `neq`, `contains`, `notcontains`, `in`, `notin`, `set`, `notset`
- **Number fields**: `eq`, `neq`, `gt`, `gte`, `lt`, `lte`, `in`, `notin`, `set`, `notset`
- **Date fields**: `eq`, `neq`, `gt`, `gte`, `lt`, `lte`, `set`, `notset`

**Note**: Custom field labels may contain spaces or special characters. When using them in URLs, 
ensure proper URL encoding (e.g., spaces become `%20` or `+`).

## Examples
```
# Find companies by name
?name[eq]=Acme Corp

# Find companies in a specific state
?state[eq]=CA

# Find companies with a specific payment term
?payment_term[eq]=Net 30

# Find companies by tag
?tag[eq]=VIP

# Find companies by status
?status[eq]=active

# Filter by custom field (string) - exact match
?custom_fields.Industry[eq]=Manufacturing

# Filter by custom field (string) - contains
?custom_fields.Region[contains]=West

# Filter by custom field (number) - greater than
?custom_fields.Annual Revenue[gt]=1000000

# Filter by custom field (number) - range
?custom_fields.Employee Count[gte]=50&custom_fields.Employee Count[lte]=200

# Filter by custom field (date) - after date
?custom_fields.Contract Start Date[gte]=2024-01-01

# Filter by custom field (dropdown) - multiple values
?custom_fields.Customer Tier[in]=Premium,Enterprise

# Filter by custom field - has value set
?custom_fields.Industry[set]=true

# Filter by custom field - no value set
?custom_fields.Notes[notset]=true

# Combine custom field filter with other filters
?state[eq]=CA&custom_fields.Industry[eq]=Retail&tag[eq]=VIP
```




## OpenAPI

````yaml /api-reference/build.yaml get /companies
openapi: 3.0.0
info:
  title: Luminous API
  version: 1.0.0
  description: API documentation for Luminous
servers:
  - url: https://{companyName}.api.joinluminous.com/external/api/v1
    variables:
      companyName:
        default: companyName
        description: Your company-specific subdomain
security: []
tags:
  - name: Products
    description: Get and manage products
  - name: Pricing
    description: Manage price schedules, levels, and customizations
  - name: BOMs
    description: Manage Bills of Materials (BOMs)
  - name: Labels
    description: Label rendering via Labelary ZPL service
  - name: Companies
    description: Manage business accounts and their associated data
  - name: Contacts
    description: Manage contact information for individuals
  - name: Suppliers
    description: Manage suppliers (factories) — vendors used on purchase orders
  - name: Supplier SKUs
    description: Manage per-supplier SKU and unit-cost overrides for products
  - name: Locations
    description: Manage warehouses and locations
  - name: Inventory
    description: Get and adjust product stock levels
  - name: Lots
    description: Create, update, and delete product lots (batches)
  - name: Transfer Orders
    description: Manage transfer orders
  - name: Fulfillment Orders
    description: Manage fulfillment orders and picklists
  - name: Freight
    description: >-
      Freightview LTL freight — quotes, booking and documents for fulfillment
      orders
  - name: Fulfillment Priority Lists
    description: Configure fulfillment routing priority lists
  - name: Purchase Orders
    description: Get and modify purchase orders
  - name: Supplier Portal
    description: >-
      Read a supplier's response to a purchase order and control the one-click
      portal link
  - name: Receiving Reports
    description: Manage receiving reports
  - name: Defective Reports
    description: >-
      Record and list defective units received on purchase orders (Inventory >
      Defectives)
  - name: Payment Obligations
    description: Manage payment obligations for purchase orders
  - name: Sales Orders
    description: Manage sales orders and sales order shipments
  - name: Purgatory
    description: >-
      Inspect and resolve non-posted sales orders in the purgatory staging
      workflow
  - name: PickFlow Warehouse
    description: >-
      Warehouse-floor lookups for PickFlow — barcode resolution, bin and product
      stock, bin search, and receivables
  - name: PickFlow Shipping
    description: >-
      Provider-agnostic shipping rates, services, packages, and label purchase
      for PickFlow
  - name: Cycle Counts
    description: >-
      Create, drive, and post PickFlow cycle counts — batches, per-warehouse
      sessions, and CSV import/export
  - name: Print Stations
    description: List paired print stations and enqueue print jobs to them
  - name: Invoices
    description: Get and manage invoices
  - name: Work Orders
    description: >-
      Manage work orders — production lifecycle, steps, materials, links,
      shipments, and comments
  - name: Production Batches
    description: Group and manage work orders as production batches
  - name: Bills
    description: >-
      Accounts payable bill management, payments, attachments, allocations, and
      variance
  - name: Prepayments
    description: Manage vendor prepayments and applications
  - name: Vendor Credits
    description: Manage vendor credits and applications
  - name: Vendor Returns
    description: Manage vendor returns and credit generation
  - name: Customer Returns
    description: Manage customer returns (sales returns), receiving, and restock behavior
  - name: Stock Snapshot
    description: Point-in-time stock snapshots with export support
  - name: Consumption
    description: Consumption reports and exports
  - name: Inventory Aging
    description: Cost-layer-based inventory aging reports
  - name: Bills Reports
    description: Accounts payable bills aging reports
  - name: Forecast
    description: Materialized forecast data
  - name: Reports
    description: Close the books, inventory discrepancy, transaction COGS, and EDI reports
  - name: Tags
    description: Add/remove tags across various resources
  - name: Custom Fields
    description: Get and set custom fields across various resources
  - name: Approvals
    description: >-
      Approval rules that hold sales orders and supplier POs for sign-off, and
      their approver templates
  - name: Currency
    description: Currency configuration, exchange rates, and conversion
  - name: Drive
    description: >
      Browse, upload, tag and manage files in your Luminous Drive. An API token
      sees the shared

      drive only, never My Files or restricted folders and files. Every write
      and download made

      through the API is recorded in the file's activity log (`GET
      /file-cabinet/files/{id}/activity`)

      with `actor_kind: api_token`.
  - name: Integration Mappings
    description: Manage integration mappings for external systems
  - name: Integration Field Mappings
    description: Manage field-level mappings between Luminous and external systems
  - name: Automations
    description: Create, test, and inspect automation rules and their runs
paths:
  /companies:
    get:
      tags:
        - Companies
      summary: Companies
      description: >
        Get a paginated list of companies with optional filtering and sorting.


        For detailed information about the filtering system and available
        operators, 

        refer to the [Filter System Documentation](/filters).


        ## Available Sort Fields


        - `id` - Sort by company ID

        - `created_at` - Sort by creation date (default: `updated_at:desc`)

        - `updated_at` - Sort by last update date (default: `updated_at:desc`)


        Sort format: `field:direction` where direction is `asc` (ascending) or
        `desc` (descending).


        Examples:

        - `?sort=id:asc` - Sort by ID ascending

        - `?sort=created_at:desc` - Sort by creation date descending

        - `?sort=updated_at:asc` - Sort by update date ascending


        ## Available Filters

        ### String Filters

        - `name`: Company name

        - `type`: Type of business

        - `city`: City

        - `state`: State

        - `country`: Country

        - `zip`: ZIP/Postal code

        - `phone`: Phone number

        - `payment_term`: Payment term

        - `status`: Company status

        - `tag`: Filter by tag name


        ### DateTime Filters

        - `created_at`: When the company was created

        - `updated_at`: When the company was last updated


        ### Custom Field Filters

        Custom fields can be filtered using their field names. Custom field
        filters are dynamically 

        generated based on the custom fields defined for companies in your
        system.


        Custom field filters use the format `custom_fields.{field_label}` where
        `{field_label}` is 

        the exact label of the custom field as defined in your system. The
        available operators depend 

        on the custom field type:


        - **String/Dropdown fields**: `eq`, `neq`, `contains`, `notcontains`,
        `in`, `notin`, `set`, `notset`

        - **Number fields**: `eq`, `neq`, `gt`, `gte`, `lt`, `lte`, `in`,
        `notin`, `set`, `notset`

        - **Date fields**: `eq`, `neq`, `gt`, `gte`, `lt`, `lte`, `set`,
        `notset`


        **Note**: Custom field labels may contain spaces or special characters.
        When using them in URLs, 

        ensure proper URL encoding (e.g., spaces become `%20` or `+`).


        ## Examples

        ```

        # Find companies by name

        ?name[eq]=Acme Corp


        # Find companies in a specific state

        ?state[eq]=CA


        # Find companies with a specific payment term

        ?payment_term[eq]=Net 30


        # Find companies by tag

        ?tag[eq]=VIP


        # Find companies by status

        ?status[eq]=active


        # Filter by custom field (string) - exact match

        ?custom_fields.Industry[eq]=Manufacturing


        # Filter by custom field (string) - contains

        ?custom_fields.Region[contains]=West


        # Filter by custom field (number) - greater than

        ?custom_fields.Annual Revenue[gt]=1000000


        # Filter by custom field (number) - range

        ?custom_fields.Employee Count[gte]=50&custom_fields.Employee
        Count[lte]=200


        # Filter by custom field (date) - after date

        ?custom_fields.Contract Start Date[gte]=2024-01-01


        # Filter by custom field (dropdown) - multiple values

        ?custom_fields.Customer Tier[in]=Premium,Enterprise


        # Filter by custom field - has value set

        ?custom_fields.Industry[set]=true


        # Filter by custom field - no value set

        ?custom_fields.Notes[notset]=true


        # Combine custom field filter with other filters

        ?state[eq]=CA&custom_fields.Industry[eq]=Retail&tag[eq]=VIP

        ```
      operationId: getCompanies
      parameters:
        - name: page
          in: query
          schema:
            type: integer
            default: 1
            minimum: 1
          description: Page number for pagination (starts at 1)
        - name: limit
          in: query
          schema:
            type: integer
            default: 10
            minimum: 1
            maximum: 100
          description: Number of items per page (max 100)
        - in: query
          name: sort
          schema:
            type: string
            default: updated_at:desc
          description: |
            Sort results by field and direction. Format: `field:direction`

            Available sort fields:
            - `id` - Company ID
            - `created_at` - Creation date
            - `updated_at` - Last update date (default)

            Examples:
            - `id:asc` - Sort by ID ascending
            - `created_at:desc` - Sort by creation date descending
            - `updated_at:asc` - Sort by update date ascending
        - in: query
          name: fields
          schema:
            type: string
          description: >-
            Comma-separated list of fields to include in each returned company
            (field projection). When omitted, the full company object is
            returned. Example: `fields=id,name,status`.
        - in: query
          name: name
          schema:
            type: string
          description: Filter by company name
        - in: query
          name: type
          schema:
            type: string
          description: Filter by business type
        - in: query
          name: phone
          schema:
            type: string
          description: Filter by phone number
        - in: query
          name: city
          schema:
            type: string
          description: Filter by city
        - in: query
          name: state
          schema:
            type: string
          description: Filter by state
        - in: query
          name: country
          schema:
            type: string
          description: Filter by country
        - in: query
          name: zip
          schema:
            type: string
          description: Filter by ZIP/Postal code
        - in: query
          name: payment_term
          schema:
            type: string
          description: Filter by payment term
        - in: query
          name: status
          schema:
            type: string
          description: Filter by company status
        - in: query
          name: tag
          schema:
            type: string
          description: Filter by tag name
        - in: query
          name: created_at
          schema:
            type: string
            format: date-time
          description: Filter by creation date
        - in: query
          name: updated_at
          schema:
            type: string
            format: date-time
          description: Filter by last update date
      responses:
        '200':
          description: A list of companies
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          description: Unique identifier for the company
                          example: 123456
                        created_at:
                          type: string
                          format: date-time
                          description: When the company was created
                          example: '2023-03-15T14:30:00Z'
                        updated_at:
                          type: string
                          format: date-time
                          description: When the company was last updated
                          example: '2023-03-15T14:30:00Z'
                        status:
                          type: string
                          description: Status of the company
                          enum:
                            - active
                            - inactive
                          example: active
                        name:
                          type: string
                          description: Company name
                          example: Acme Corporation
                        type:
                          type: string
                          nullable: true
                          description: Type of business
                          example: Retail
                        phone:
                          type: string
                          nullable: true
                          description: Primary phone number for the company
                          example: 555-123-4567
                        address:
                          type: string
                          nullable: true
                          description: Street address for the company
                          example: 123 Main St
                        address_line_2:
                          type: string
                          nullable: true
                          description: Additional address information
                          example: Suite 500
                        city:
                          type: string
                          nullable: true
                          description: City
                          example: Austin
                        state:
                          type: string
                          nullable: true
                          description: State/province
                          example: TX
                        postal_code:
                          type: string
                          nullable: true
                          description: Postal/ZIP code
                          example: '78701'
                        country:
                          type: string
                          nullable: true
                          description: Country
                          example: USA
                        full_address:
                          type: string
                          nullable: true
                          description: Complete formatted address
                          example: 123 Main St, Suite 500, Austin, TX 78701, USA
                        shipping_first_name:
                          type: string
                          nullable: true
                          description: First name for shipping contact (legacy field)
                          example: John
                        shipping_last_name:
                          type: string
                          nullable: true
                          description: Last name for shipping contact (legacy field)
                          example: Doe
                        shipping_email:
                          type: string
                          format: email
                          nullable: true
                          description: Email for shipping contact (legacy field)
                          example: shipping@acmecorp.com
                        shipping_phone:
                          type: string
                          nullable: true
                          description: Phone number for shipping contact (legacy field)
                          example: 555-987-6543
                        shipping_address:
                          type: string
                          nullable: true
                          description: Shipping street address (legacy field)
                          example: 456 Warehouse Blvd
                        shipping_city:
                          type: string
                          nullable: true
                          description: Shipping city (legacy field)
                          example: Austin
                        shipping_state:
                          type: string
                          nullable: true
                          description: Shipping state/province (legacy field)
                          example: TX
                        shipping_postal_code:
                          type: string
                          nullable: true
                          description: Shipping postal/ZIP code (legacy field)
                          example: '78745'
                        shipping_country:
                          type: string
                          nullable: true
                          description: Shipping country (legacy field)
                          example: USA
                        shipping_full_address:
                          type: string
                          nullable: true
                          description: Complete formatted shipping address (legacy field)
                          example: 456 Warehouse Blvd, Austin, TX 78745, USA
                        payment_term:
                          type: string
                          nullable: true
                          description: Payment terms for the company
                          example: Net 30
                        tax_exempt:
                          type: boolean
                          nullable: true
                          description: Whether the company is exempt from taxes
                          example: false
                        tax_rate:
                          type: number
                          format: float
                          nullable: true
                          description: Tax rate applied to the company's orders
                          example: 8.25
                        due_date_days:
                          type: integer
                          nullable: true
                          description: Number of days until payment is due
                          example: 30
                        credit_limit:
                          type: number
                          format: float
                          nullable: true
                          description: >-
                            Credit limit for the company. `null` means no limit
                            is set.
                          example: 5000
                        header_discount_enabled:
                          type: boolean
                          description: >-
                            Whether an order-header trade discount is applied by
                            default for this company
                          example: false
                        header_discount_type:
                          type: string
                          nullable: true
                          enum:
                            - PERCENT
                            - FIXED_AMOUNT
                          description: >-
                            How the header discount is calculated — a percentage
                            of the order or a fixed amount
                          example: PERCENT
                        header_discount_value:
                          type: number
                          format: float
                          nullable: true
                          description: >-
                            The header discount amount — a percentage when
                            `header_discount_type` is `PERCENT`, otherwise a
                            fixed currency amount
                          example: 5
                        header_discount_effective_from:
                          type: string
                          format: date
                          nullable: true
                          description: >-
                            Date from which the header discount takes effect
                            (YYYY-MM-DD)
                          example: '2026-01-01'
                        default_currency_code:
                          type: string
                          nullable: true
                          description: >-
                            Default ISO 4217 currency code for this company.
                            Auto-applied to new orders created for the company.
                          example: USD
                        price_level:
                          nullable: true
                          description: Price level associated with this company
                          type: object
                          properties:
                            id:
                              type: number
                              description: Unique identifier for the price level
                              example: 123
                            created_at:
                              type: string
                              format: date-time
                              description: When the price level was created
                              example: '2023-03-15T14:30:00Z'
                            updated_at:
                              type: string
                              format: date-time
                              description: When the price level was last updated
                              example: '2023-03-15T14:30:00Z'
                            status:
                              type: string
                              description: Status of the price level
                              enum:
                                - active
                                - inactive
                              example: active
                            name:
                              type: string
                              description: Name of the price level
                              example: Wholesale
                            type:
                              type: string
                              description: Type of the price level
                              example: percentage
                            percent_increase:
                              type: number
                              format: float
                              description: >-
                                Percentage increase (or decrease) for this price
                                level
                              example: 15.5
                        notes:
                          type: string
                          nullable: true
                          description: Additional notes about the company
                          example: Key account, requires special handling
                        fein:
                          type: string
                          nullable: true
                          description: Federal Employer Identification Number
                          example: 12-3456789
                        tags:
                          type: array
                          nullable: true
                          description: List of tags associated with the company
                          items:
                            type: object
                            properties:
                              id:
                                type: integer
                                description: Unique identifier for the tag
                              name:
                                type: string
                                description: Name of the tag
                              description:
                                type: string
                                nullable: true
                                description: Description of the tag
                              icon:
                                type: string
                                nullable: true
                                description: Icon identifier or URL for the tag
                              color:
                                type: string
                                nullable: true
                                description: Color code for the tag
                            required:
                              - id
                              - name
                        default_shipping:
                          nullable: true
                          description: Default shipping address
                          type: object
                          properties:
                            id:
                              type: integer
                              description: Unique identifier for the shipping address
                              example: 789
                            created_at:
                              type: string
                              format: date-time
                              description: When the shipping address was created
                              example: '2023-03-15T14:30:00Z'
                            updated_at:
                              type: string
                              format: date-time
                              description: When the shipping address was last updated
                              example: '2023-03-15T14:30:00Z'
                            company_id:
                              type: integer
                              description: >-
                                ID of the company this shipping address belongs
                                to
                              example: 123456
                            company_name:
                              type: string
                              nullable: true
                              description: Name of the company
                              example: Acme Corporation
                            address:
                              type: string
                              description: Street address
                              example: 456 Warehouse Blvd
                            address_line_2:
                              type: string
                              nullable: true
                              description: Additional address information
                              example: Building 2
                            city:
                              type: string
                              description: City
                              example: Austin
                            state:
                              type: string
                              description: State/province
                              example: TX
                            postal_code:
                              type: string
                              description: Postal/ZIP code
                              example: '78745'
                            country:
                              type: string
                              description: Country
                              example: USA
                            full_address:
                              type: string
                              description: Complete formatted address
                              example: >-
                                456 Warehouse Blvd, Building 2, Austin, TX
                                78745, USA
                            full_name:
                              type: string
                              description: Full name of the contact person
                              example: John Doe
                            first_name:
                              type: string
                              nullable: true
                              description: First name of the contact person
                              example: John
                            last_name:
                              type: string
                              nullable: true
                              description: Last name of the contact person
                              example: Doe
                            phone:
                              type: string
                              nullable: true
                              description: Phone number
                              example: 555-987-6543
                            email:
                              type: string
                              format: email
                              nullable: true
                              description: Email address
                              example: shipping@acmecorp.com
                            is_default:
                              type: boolean
                              description: Whether this is the default shipping address
                              example: true
                          required:
                            - id
                            - company_id
                            - address
                            - city
                            - state
                            - postal_code
                            - country
                        shipping_addresses:
                          type: array
                          nullable: true
                          description: List of shipping addresses for the company
                          items:
                            type: object
                            properties:
                              id:
                                type: integer
                                description: Unique identifier for the shipping address
                                example: 789
                              created_at:
                                type: string
                                format: date-time
                                description: When the shipping address was created
                                example: '2023-03-15T14:30:00Z'
                              updated_at:
                                type: string
                                format: date-time
                                description: When the shipping address was last updated
                                example: '2023-03-15T14:30:00Z'
                              company_id:
                                type: integer
                                description: >-
                                  ID of the company this shipping address
                                  belongs to
                                example: 123456
                              company_name:
                                type: string
                                nullable: true
                                description: Name of the company
                                example: Acme Corporation
                              address:
                                type: string
                                description: Street address
                                example: 456 Warehouse Blvd
                              address_line_2:
                                type: string
                                nullable: true
                                description: Additional address information
                                example: Building 2
                              city:
                                type: string
                                description: City
                                example: Austin
                              state:
                                type: string
                                description: State/province
                                example: TX
                              postal_code:
                                type: string
                                description: Postal/ZIP code
                                example: '78745'
                              country:
                                type: string
                                description: Country
                                example: USA
                              full_address:
                                type: string
                                description: Complete formatted address
                                example: >-
                                  456 Warehouse Blvd, Building 2, Austin, TX
                                  78745, USA
                              full_name:
                                type: string
                                description: Full name of the contact person
                                example: John Doe
                              first_name:
                                type: string
                                nullable: true
                                description: First name of the contact person
                                example: John
                              last_name:
                                type: string
                                nullable: true
                                description: Last name of the contact person
                                example: Doe
                              phone:
                                type: string
                                nullable: true
                                description: Phone number
                                example: 555-987-6543
                              email:
                                type: string
                                format: email
                                nullable: true
                                description: Email address
                                example: shipping@acmecorp.com
                              is_default:
                                type: boolean
                                description: Whether this is the default shipping address
                                example: true
                            required:
                              - id
                              - company_id
                              - address
                              - city
                              - state
                              - postal_code
                              - country
                        billing_info:
                          type: object
                          nullable: true
                          description: Billing information
                          properties:
                            id:
                              type: integer
                              example: 456
                            created_at:
                              type: string
                              format: date-time
                              example: '2023-03-15T14:30:00Z'
                            updated_at:
                              type: string
                              format: date-time
                              example: '2023-03-15T14:30:00Z'
                            first_name:
                              type: string
                              nullable: true
                              example: Jane
                            last_name:
                              type: string
                              nullable: true
                              example: Smith
                            email:
                              type: string
                              format: email
                              nullable: true
                              example: accounting@acmecorp.com
                            receiving_bank_name:
                              type: string
                              nullable: true
                              example: First National Bank
                            receiving_bank_address:
                              type: string
                              nullable: true
                              example: 789 Finance Street, Austin, TX 78701
                        client_type:
                          type: object
                          nullable: true
                          description: Type of client
                          properties:
                            id:
                              type: integer
                              example: 123
                            created_at:
                              type: string
                              format: date-time
                              example: '2023-03-15T14:30:00Z'
                            updated_at:
                              type: string
                              format: date-time
                              example: '2023-03-15T14:30:00Z'
                            name:
                              type: string
                              example: Retail
                            description:
                              type: string
                              nullable: true
                              example: Retail business client
                        parent_company_id:
                          type: integer
                          nullable: true
                          description: ID of the parent company
                          example: 456
                        invoice_export_template_id:
                          type: integer
                          nullable: true
                          description: ID of the invoice export template
                          example: 789
                        custom_fields:
                          type: object
                          description: >-
                            Custom fields for the company. Number-type custom
                            fields come back as numbers (the stored numeric
                            value, or stored numeric text converted to a
                            number); a number field holding non-numeric text
                            returns `null`.
                          example:
                            Industry: Manufacturing
                            Region: Southwest
                            Annual Revenue: $5M-$10M
                        assigned_sales_reps:
                          type: array
                          description: >
                            Sales rep users assigned to this company (Go Team
                            members). Resolved from the company's

                            `goTeamMember.user` relation. Only present when the
                            relation is loaded.
                          items:
                            type: object
                            properties:
                              id:
                                type: integer
                                description: User ID of the assigned sales rep
                                example: 42
                              email:
                                type: string
                                description: >-
                                  Email of the assigned sales rep (PII-hashed
                                  when PII filtering is enabled)
                                example: rep@example.com
                              first_name:
                                type: string
                                nullable: true
                                example: Jane
                              last_name:
                                type: string
                                nullable: true
                                example: Doe
                        sales_channel:
                          allOf:
                            - type: object
                              properties:
                                id:
                                  type: integer
                                  description: Sales channel ID.
                                status:
                                  type: string
                                  description: Sales channel status (e.g. active).
                                label:
                                  type: string
                                  nullable: true
                                  description: Human-readable channel label.
                                channel_type:
                                  type: string
                                  nullable: true
                                  description: >-
                                    Channel type (e.g. the integration/platform
                                    the channel represents).
                                created_at:
                                  type: string
                                  format: date-time
                                updated_at:
                                  type: string
                                  format: date-time
                          nullable: true
                          description: >-
                            The company's default sales channel. Only present
                            when the relation is loaded.
                      required:
                        - id
                        - name
                        - status
                  meta:
                    type: object
                    properties:
                      current_page:
                        type: integer
                        description: The current page number
                        example: 1
                      from:
                        type: integer
                        description: The starting index of the paginated results
                        example: 1
                      last_page:
                        type: integer
                        description: The last page number
                        example: 5
                      per_page:
                        type: integer
                        description: Number of items per page
                        example: 10
                      to:
                        type: integer
                        description: The ending index of the paginated results
                        example: 10
                      total:
                        type: integer
                        description: Total number of items across all pages
                        example: 50
        '401':
          description: Authentication credentials were missing or invalid
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Unauthorized
                  message:
                    type: string
                    example: Authentication credentials are missing or invalid
                  status_code:
                    type: integer
                    example: 401
        '403':
          description: You do not have permission to perform this action
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Forbidden
                  message:
                    type: string
                    example: You do not have permission to access this resource
                  status_code:
                    type: integer
                    example: 403
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Authenticate using a bearer token. To create a token, navigate to
        /settings/api-tokens and click Create API Token.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.