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

# List employers



## OpenAPI

````yaml /openapi.yaml get /employers
openapi: 3.1.0
info:
  title: Hammock Partner API
  version: '2026-12-01'
  summary: Offer Hammock benefits inside your payroll product.
  description: |
    Preview of the Hammock Partner API. Nothing in this document is live yet:
    object shapes and endpoints may change before release.
  contact:
    name: Hammock
    email: support@usehammock.co
servers:
  - url: https://api.usehammock.co
    description: Live
  - url: https://api.sandbox.usehammock.co
    description: Sandbox
security:
  - bearerAuth: []
tags:
  - name: Employers
    description: The companies you offer Hammock benefits to.
  - name: Pay schedules
    description: >-
      How often an employer pays its employees, and the lock date of each pay
      period.
  - name: Employees
    description: An employer's roster, kept in sync by you.
  - name: Benefits
    description: The benefits an employer offers for a plan year.
  - name: Elections
    description: What an employee chose in the hosted enrollment flow.
  - name: Deductions
    description: >-
      Standing instructions for what to withhold and contribute on each
      paycheck.
  - name: Reimbursements
    description: One-time amounts to pay an employee through payroll.
  - name: Employer contributions
    description: >-
      One-time employer contributions made outside payroll, for year-end
      reporting.
  - name: Payrolls
    description: Payrolls you report to Hammock, with what was withheld and paid.
  - name: Pulls
    description: ACH debits from an employer's bank account.
  - name: Events
    description: A record of everything that changed.
  - name: Webhook endpoints
    description: Where Hammock delivers events.
  - name: Test helpers
    description: Sandbox-only endpoints that skip hosted flows and waiting periods.
paths:
  /employers:
    get:
      tags:
        - Employers
      summary: List employers
      operationId: listEmployers
      parameters:
        - $ref: '#/components/parameters/HammockVersion'
        - name: status
          in: query
          schema:
            $ref: '#/components/schemas/EmployerStatus'
        - name: external_id
          in: query
          description: Return the employer with this external ID.
          schema:
            type: string
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/StartingAfter'
        - $ref: '#/components/parameters/EndingBefore'
      responses:
        '200':
          description: A list of employers.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/List'
                  - type: object
                    properties:
                      url:
                        type: string
                        examples:
                          - /employers
                      data:
                        type: array
                        items:
                          $ref: '#/components/schemas/Employer'
        default:
          $ref: '#/components/responses/Error'
components:
  parameters:
    HammockVersion:
      name: Hammock-Version
      in: header
      description: >-
        The API version to use for this request. Defaults to the version pinned
        to your API key.
      schema:
        type: string
      example: '2026-12-01'
    Limit:
      name: limit
      in: query
      description: How many objects to return, from 1 to 100.
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 10
    StartingAfter:
      name: starting_after
      in: query
      description: An object ID. Returns the page that follows this object.
      schema:
        type: string
    EndingBefore:
      name: ending_before
      in: query
      description: An object ID. Returns the page that precedes this object.
      schema:
        type: string
  schemas:
    EmployerStatus:
      type: string
      enum:
        - onboarding
        - pending_review
        - active
        - closed
      description: >
        `onboarding`: hosted setup isn't finished. `pending_review`: setup is
        submitted and Hammock

        is reviewing it. `active`: employees can enroll and payrolls can be
        reported. `closed`: the

        employer no longer offers Hammock benefits.
    List:
      type: object
      required:
        - object
        - data
        - has_more
        - url
      properties:
        object:
          type: string
          const: list
        data:
          type: array
          items: {}
        has_more:
          type: boolean
          description: Whether more objects follow this page.
        url:
          type: string
          description: The path of this list.
    Employer:
      type: object
      required:
        - id
        - object
        - name
        - status
        - requirements
        - metadata
        - livemode
        - created
      properties:
        id:
          type: string
          examples:
            - empr_1Qx8Zt2eZvKYlo2C
        object:
          type: string
          const: employer
        name:
          type: string
          examples:
            - Acme Robotics
        legal_name:
          type:
            - string
            - 'null'
          examples:
            - Acme Robotics, Inc.
        external_id:
          type:
            - string
            - 'null'
          description: Your ID for this company. Unique across your employers.
          examples:
            - company_8f2k1
        ein_last4:
          type:
            - string
            - 'null'
          description: >-
            Last four digits of the employer's EIN. The full EIN is never
            returned.
          examples:
            - '6789'
        status:
          $ref: '#/components/schemas/EmployerStatus'
        requirements:
          type: object
          required:
            - currently_due
            - pending_verification
            - disabled_reason
          properties:
            currently_due:
              type: array
              description: What the employer still has to provide in hosted setup.
              items:
                $ref: '#/components/schemas/EmployerRequirement'
              examples:
                - - agreements
                  - bank_account
            pending_verification:
              type: array
              description: What Hammock or its banking partner is checking.
              items:
                $ref: '#/components/schemas/EmployerRequirement'
              examples:
                - - business_verification
            disabled_reason:
              type:
                - string
                - 'null'
              description: Why the employer isn't `active`, when it isn't.
              examples:
                - requirements.currently_due
        address:
          oneOf:
            - $ref: '#/components/schemas/Address'
            - type: 'null'
        primary_contact:
          $ref: '#/components/schemas/Contact'
        metadata:
          $ref: '#/components/schemas/Metadata'
        livemode:
          type: boolean
          description: '`false` for objects in the sandbox.'
        created:
          type: string
          format: date-time
          examples:
            - '2027-02-01T15:00:00Z'
    EmployerRequirement:
      type: string
      enum:
        - company_details
        - authorized_signer
        - business_verification
        - agreements
        - bank_account
        - benefit_plan
        - pay_schedule
        - hammock_review
    Address:
      type: object
      required:
        - line1
        - city
        - state
        - postal_code
        - country
      properties:
        line1:
          type: string
          examples:
            - 500 Howard St
        line2:
          type:
            - string
            - 'null'
        city:
          type: string
          examples:
            - San Francisco
        state:
          type: string
          description: Two-letter state code.
          examples:
            - CA
        postal_code:
          type: string
          examples:
            - '94105'
        country:
          type: string
          description: Two-letter country code. Only `US` is supported.
          examples:
            - US
    Contact:
      type: object
      required:
        - first_name
        - last_name
        - email
      properties:
        first_name:
          type: string
          examples:
            - Dana
        last_name:
          type: string
          examples:
            - Whitfield
        email:
          type: string
          format: email
          examples:
            - dana@acmerobotics.example
    Metadata:
      type: object
      description: >-
        Up to 50 key-value pairs you can attach to an object. Keys are up to 40
        characters and values up to 500.
      additionalProperties:
        type: string
      examples:
        - plan: growth
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - type
            - message
          properties:
            type:
              type: string
              enum:
                - invalid_request_error
                - idempotency_error
                - api_error
              description: The category of error.
            code:
              type: string
              description: A short, stable string identifying the specific error.
              examples:
                - payroll_not_voidable
            message:
              type: string
              description: >-
                A human-readable explanation. Don't parse it, and don't show it
                to end users.
            param:
              type:
                - string
                - 'null'
              description: >-
                The parameter the error relates to, using dot and bracket
                notation for nested fields.
              examples:
                - deductions[0].employee_amount
            doc_url:
              type: string
              format: uri
            request_id:
              type: string
              examples:
                - req_9Kd2Lm5nPq8R
  responses:
    Error:
      description: An error. The HTTP status and `error.type` say what kind.
      headers:
        Request-Id:
          description: Identifies this request. Include it when you contact support.
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              type: invalid_request_error
              code: parameter_missing
              message: 'Missing required parameter: employer.'
              param: employer
              doc_url: https://docs.usehammock.co/api/errors#parameter_missing
              request_id: req_9Kd2Lm5nPq8R
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Your secret API key, sent as `Authorization: Bearer hmk_test_...`.'

````

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