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

# Retrieve a company



## OpenAPI

````yaml /partner/openapi.yaml get /companies/{companyID}
openapi: 3.1.0
info:
  title: Clemta Partner API
  description: |
    The Clemta partner surface. Authenticate with your API key as a bearer
    token (`Authorization: Bearer clmt_live_` or `clmt_test_`). Keys with
    the `clmt_test_` prefix operate in sandbox mode (`livemode: false`): test
    data never reaches fulfillment or billing.

    Versioning is date-based: pass `Clemta-Version` to pin a
    version, omit it to run on your account's pinned default. The effective
    version is echoed back on every response.
  version: '2026-08-13'
servers:
  - url: https://api.clemta.com/v1
    description: >
      Single host for both modes: `clmt_test_` keys operate in sandbox mode,
      `clmt_live_` keys in live mode.
security:
  - apiKey: []
tags:
  - name: Identity
    description: Identify the calling API key.
  - name: Accounts
    description: >-
      Create and read customer accounts - the incorporators companies are
      created under.
  - name: Companies
    description: Create and read client companies.
  - name: Service orders
    description: Order services against a company and follow their fulfilment.
  - name: Products
    description: The catalog you can offer, at your wholesale prices.
  - name: Tax filings
    description: >-
      Federal and state tax filings on your companies, opened by your client
      against the company's entitlements and worked by Clemta. Read-only. Follow
      them with the tax_filing.* events.
  - name: Files
    description: >-
      Documents Clemta publishes on your companies - formation deliverables,
      filed forms, letters. Read-only. Client KYC uploads are write-only and
      never listed.
  - name: Requirements
    description: >-
      Everything needed from you or your client - identity documents,
      service-order forms, Clemta's asks - as one resolvable resource. Fulfill
      over the API or hand your client a hosted link.
  - name: Status tracking
    description: >-
      End-customer status links - keyless, read-only access to a company's live
      status.
  - name: Events
    description: Poll the partner event stream.
  - name: Webhooks
    description: >-
      Events we deliver to your endpoint, and how to verify them. Each webhook
      below is a request WE send to you. Respond 2xx to acknowledge. Deliveries
      are signed and retried with exponential backoff over multiple days until
      acknowledged. Answer `410 Gone` to have the endpoint disabled and
      deliveries stopped. A `Retry-After` header on a `429` or `503` pushes the
      next attempt back. An endpoint that fails continuously for days is
      disabled automatically and the workspace owner is emailed - no events are
      lost, the stream stays available on `GET /v1/events`.


      ## Verifying a delivery


      Deliveries are signed per the [Standard
      Webhooks](https://www.standardwebhooks.com) specification, carrying BOTH
      schemes in one header: a symmetric `v1` HMAC (verify with your endpoint
      secret and any standardwebhooks library) and an asymmetric `v1a` ed25519
      signature (verify with the endpoint's public key, no shared secret held).
      Use whichever suits your setup.


      Every endpoint has its OWN signing secret (`whsec_...`), shown once when
      you create the endpoint. Each delivery carries three headers:


      - `Clemta-Webhook-Id` - the event id. Stable across retries: use it as an
      idempotency key so a redelivered event is processed once.

      - `Clemta-Webhook-Timestamp` - unix seconds of THIS attempt (a retry
      carries a fresh one).

      - `Clemta-Webhook-Signature` - a space-delimited list of `v1,<base64>`
      signatures. More than one while a secret rotation's overlap window is
      open, one per active secret.


      Each is also sent under its bare Standard Webhooks name (`webhook-id`,
      `webhook-timestamp`, `webhook-signature`) with the same value, which is
      what off-the-shelf standardwebhooks libraries look up.


      To verify by hand:


      1. Build the signed content by joining the id, the timestamp, and the raw
      request body with literal `.` separators: `{id}.{timestamp}.{body}`. Use
      the body exactly as received - do not re-serialize the JSON.

      2. Base64-decode your endpoint secret after the `whsec_` prefix. That is
      the HMAC key.

      3. Compute HMAC-SHA256 over the signed content, base64 encode it, and
      compare it against each `v1,` entry in constant time. Accept if any
      matches, otherwise reject.

      4. Check the timestamp is within 5 minutes of now, to reject replays.


      Because the secret is unique to your endpoint, a signature can only be
      verified by you - a delivery meant for another endpoint cannot be made to
      verify here. Keep the secret confidential. If it leaks, roll the
      endpoint's secret from the Webhooks page of your partner dashboard.
  - name: Sandbox
    description: >-
      Test-key-only endpoints for rehearsing event flows. Trigger a lifecycle
      transition on a test company and receive the matching webhook, without
      waiting for a real formation to progress.
paths:
  /companies/{companyID}:
    get:
      tags:
        - Companies
      summary: Retrieve a company
      operationId: getCompany
      parameters:
        - $ref: '#/components/parameters/CompanyId'
        - $ref: '#/components/parameters/ClemtaVersion'
        - $ref: '#/components/parameters/ExpandCompany'
      responses:
        '200':
          description: The company.
          headers:
            Clemta-Version:
              $ref: '#/components/headers/ClemtaVersion'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Company'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  parameters:
    CompanyId:
      name: companyID
      in: path
      required: true
      description: ID of the company.
      schema:
        type: string
        pattern: ^cmp_[0-9A-Za-z]{22}$
      example: cmp_0346sFPEvSkJvY8vt14NNw
    ClemtaVersion:
      name: Clemta-Version
      in: header
      required: false
      description: Date-based API version to run this request against.
      schema:
        type: string
        example: '2026-08-13'
    ExpandCompany:
      name: expand[]
      in: query
      required: false
      description: >-
        Relations to embed. Expandable: account, requirements (the open
        requirements behind `open_requirements`), service_orders (every order on
        the company, auto-attached mandatory products included).
      schema:
        type: array
        items:
          type: string
          enum:
            - account
            - requirements
            - service_orders
  headers:
    ClemtaVersion:
      description: The API version the request was executed against.
      schema:
        type: string
  schemas:
    Company:
      type: object
      required:
        - object
        - id
        - account_id
        - livemode
        - name
        - state
        - entity_type
        - status
        - verification
        - created_at
        - updated_at
      additionalProperties: false
      properties:
        object:
          type: string
          enum:
            - company
          description: >-
            Entity name. Identifies this object when it arrives without its URL
            - nested under an `expand[]`, inside an event payload, or in a
            webhook.
        id:
          type: string
          pattern: ^cmp_[0-9A-Za-z]{22}$
          description: Identifier of the company.
          example: cmp_0346sFPEvSkJvY8vt14NNw
        external_id:
          type: string
          description: Your own identifier for this company, unique across your companies.
        account_id:
          type: string
          pattern: ^acct_[0-9A-Za-z]{22}$
          description: >-
            The account (the incorporator) this company was created under.
            Expand `account` to embed the full object.
          example: acct_0346sFPEvSkJvY8vt14NNw
        account:
          allOf:
            - $ref: '#/components/schemas/Account'
          description: >-
            The full account this company was created under. Present only when
            requested with `expand[]=account`.
        livemode:
          type: boolean
          description: >-
            False for a company created with a test key. A test company is a
            sandbox simulation - it never reaches fulfillment or billing.
        name:
          type: string
          description: Legal name of the company.
        state:
          $ref: '#/components/schemas/StateCode'
        entity_type:
          type: string
          enum:
            - llc
            - c_corp
          description: Entity type being formed.
          example: llc
        ending:
          type: string
        industry:
          type: string
        industry_description:
          type: string
          description: >-
            Free-text description of the business, present when industry is
            `other`.
        custom_industry:
          type: string
          description: Short name of the custom industry, present when industry is `other`.
        timezone:
          type: string
          description: The company's IANA time zone.
        name_style:
          type: string
          enum:
            - plain
            - comma
          description: How the legal name renders around the ending.
        legal_name:
          type: string
          readOnly: true
          description: >-
            The rendered legal name - `name`, the `name_style` separator, and
            the `ending` ("Acme, LLC").
        owner_privacy:
          type: string
          enum:
            - public
            - private
          description: >-
            Whether the owners are kept off the public filing. Choosable only in
            DE, NV, WY, NM.
        pre_existing:
          type: boolean
          description: >-
            True when the company already existed before it was brought to
            Clemta. False when Clemta forms it.
        status:
          type: string
          enum:
            - requires_information
            - in_progress
            - active
            - cancelled
            - dissolved
          description: >-
            Lifecycle status. A company starts in requires_information while it
            waits for its owners' identity documents. It moves to in_progress
            once every required document is present and it is submitted for
            formation, and to active once fulfilled.
        ein:
          type: string
          description: >-
            The federal tax id, once the IRS has issued it. Fires
            `company.ein.assigned` when it lands.
        verified_at:
          type: string
          format: date-time
          description: >-
            When every owner's identity document was in and the company was
            ready for formation. `company.verified` announces this moment, and
            it does not change afterward.
        dissolved_at:
          type: string
          format: date-time
          description: >-
            When the company was dissolved. Terminal: the company's status is
            `dissolved` from that moment, every recurring service stopped
            renewing, open requirements were closed, and nothing further can be
            ordered. `company.dissolved` announces this moment, and it does not
            change afterward.
        incorporated_at:
          type: string
          format: date-time
          description: >-
            When the company was marked incorporated in Clemta - the moment
            `company.incorporated` fires. It can differ from
            `incorporation_date`, the legal formation date the state assigned.
        ein_assigned_at:
          type: string
          format: date-time
          description: >-
            When the EIN was assigned. `company.ein.assigned` announces this
            moment, and it does not change afterward.
        stage:
          type: string
          enum:
            - preparing_documents
            - documents_generated
            - signature_requested
            - submitted_to_state
            - name_conflict
            - incorporated
            - closed
          description: >-
            The fine-grained formation step under `status` - where formation
            stands right now. Changes fire `company.status.changed`. Reaching
            `incorporated` also fires `company.incorporated`.
        incorporation_date:
          type: string
          description: >-
            The legal formation date the state assigned, recorded from the
            formation document (for a `pre_existing` company, the one uploaded
            through its requirement). It can differ from `incorporated_at`,
            which is when Clemta marked the company incorporated. Never an
            input. `company.updated` announces changes.
        address:
          allOf:
            - $ref: '#/components/schemas/Address'
          description: The company's legal address, maintained by Clemta.
        foreign_qualifications:
          type: array
          items:
            $ref: '#/components/schemas/ForeignQualification'
          description: States the company is registered in beside its formation state.
        entitlements:
          $ref: '#/components/schemas/CompanyEntitlements'
        open_requirements:
          type: integer
          format: int64
          readOnly: true
          description: >-
            How many requirements currently stand open on this company - "is
            anything waiting on you" in one number, without touching `status`.
            Derived at read time on API responses. Webhook `data.object`
            snapshots omit it.
        service_orders:
          type: array
          readOnly: true
          items:
            $ref: '#/components/schemas/ServiceOrder'
          description: >-
            Every service order on the company, newest first, embedded when the
            request carries `expand[]=service_orders` - including the mandatory
            products a create attached automatically. The same rows `GET
            /companies/{id}/service-orders` lists.
        requirements:
          type: array
          readOnly: true
          items:
            $ref: '#/components/schemas/Requirement'
          description: >-
            The open requirements themselves, embedded when the request carries
            `expand[]=requirements` - the list behind `open_requirements`.
            Resolved history stays on `GET /companies/{id}/requirements`.
        verification:
          type: string
          enum:
            - pending
            - verified
          description: >-
            Whether the company's owners have submitted the identity documents
            needed to file. `verified_at` records when. State filings wait for
            it.
        created_at:
          type: string
          format: date-time
          description: When the company was created.
        updated_at:
          type: string
          format: date-time
          description: >-
            When the company was last modified. Also written to the
            `Last-Modified` response header on a single-company fetch, so a
            conditional `If-Modified-Since` request can be answered `304 Not
            Modified`.
        shareholders:
          type: array
          items:
            $ref: '#/components/schemas/Shareholder'
          description: >-
            The company's owners. Collect a missing identity document by
            attaching an uploaded file (`passport`) or by creating a
            verification session for the owner.
        officers:
          type: array
          items:
            $ref: '#/components/schemas/CompanyOfficer'
          description: >-
            The management roster - everyone who holds a position. A director is
            an officer holding the `director` role. There is no separate
            directors list. Includes officers who are not owners. Set at company
            creation, and kept current as the roster changes.
        management_type:
          type: string
          enum:
            - member_managed
            - manager_managed
          description: LLC only - whether the company is member-managed or manager-managed.
        officers_settled:
          type: boolean
          description: >-
            Whether the officer roster is final. When true with an empty
            `officers`, the company has no officers by design, not a roster
            still being collected.
        metadata:
          type: object
          maxProperties: 50
          additionalProperties: true
          description: >-
            Your own key-value pairs, stored and returned verbatim. Clemta never
            reads them.
    Account:
      type: object
      required:
        - object
        - id
        - livemode
        - first_name
        - last_name
        - email
        - created_at
      additionalProperties: false
      properties:
        object:
          type: string
          enum:
            - account
          description: Entity name. Identifies this object when it arrives without its URL.
        id:
          type: string
          pattern: ^acct_[0-9A-Za-z]{22}$
          description: Identifier of the account.
          example: acct_0346sFPEvSkJvY8vt14NNw
        external_id:
          type: string
          description: Your own identifier for this account, unique across your accounts.
        livemode:
          type: boolean
          description: Whether this account was created with a live key.
        first_name:
          type: string
          description: The customer's first name.
        last_name:
          type: string
          description: The customer's last name.
        email:
          type: string
          format: email
          description: >-
            The customer's email. Stored as contact data only - the customer
            never receives any message from Clemta.
        phone:
          type: string
          description: The customer's phone number, optional, stored as contact data.
        metadata:
          type: object
          additionalProperties: true
          description: >-
            Your own key-value pairs, stored and returned verbatim. Clemta never
            reads them. Use them to correlate the account with your system.
        created_at:
          type: string
          format: date-time
    StateCode:
      type: string
      description: US state of formation, as a two-letter code.
      example: DE
      enum:
        - AL
        - AK
        - AZ
        - AR
        - CA
        - CO
        - CT
        - DE
        - FL
        - GA
        - HI
        - ID
        - IL
        - IN
        - IA
        - KS
        - KY
        - LA
        - ME
        - MD
        - MA
        - MI
        - MN
        - MS
        - MO
        - MT
        - NE
        - NV
        - NH
        - NJ
        - NM
        - NY
        - NC
        - ND
        - OH
        - OK
        - OR
        - PA
        - RI
        - SC
        - SD
        - TN
        - TX
        - UT
        - VT
        - VA
        - WA
        - WV
        - WI
        - WY
        - DC
    Address:
      type: object
      required:
        - country
        - line1
        - city
        - state
        - postal_code
      additionalProperties: false
      description: A postal address.
      properties:
        country:
          type: string
          minLength: 2
          maxLength: 2
          description: ISO 3166-1 alpha-2 country code.
        line1:
          type: string
          maxLength: 255
        line2:
          type: string
          maxLength: 255
        city:
          type: string
          maxLength: 120
        state:
          type: string
          maxLength: 120
        postal_code:
          type: string
          maxLength: 20
    ForeignQualification:
      type: object
      required:
        - state
        - line1
        - city
        - postal_code
      additionalProperties: false
      description: >-
        A US state the company is registered to do business in beside its
        formation state, with the registered address there.
      properties:
        state:
          $ref: '#/components/schemas/StateCode'
        line1:
          type: string
          maxLength: 255
        line2:
          type: string
          maxLength: 255
        city:
          type: string
          maxLength: 120
        postal_code:
          type: string
          maxLength: 20
    CompanyEntitlements:
      type: object
      description: >-
        Rights the company holds, as counts remaining. An order for an
        entitlement product adds one. A tax filing consumes one when it is
        submitted. Some may be granted directly. `company.entitlements.changed`
        announces every move.
      properties:
        federal_tax_filing:
          type: integer
          format: int64
          minimum: 0
          description: Federal tax filings the company may still open.
          example: 1
        state_tax_filing:
          type: integer
          format: int64
          minimum: 0
          description: State tax / annual compliance filings the company may still open.
          example: 0
    ServiceOrder:
      type: object
      description: >-
        One product ordered on a company. Billed to you when created (or at each
        period end for arrears products). Reversed by a credit if cancelled
        before fulfilment starts. An active recurring order can be cancelled to
        stop renewing at the period end.
      required:
        - object
        - id
        - company
        - product_key
        - status
        - unit_amount
        - currency
        - created_at
      properties:
        object:
          type: string
          enum:
            - service_order
          description: Entity name.
        id:
          type: string
          pattern: ^so_[0-9A-Za-z]{22}$
          example: so_0346sFPEvSkJvY8vt14NNw
        company:
          type: string
          pattern: ^cmp_[0-9A-Za-z]{22}$
          description: The company this order is on.
        product_key:
          type: string
          example: ein
        interval:
          type: string
          enum:
            - one_time
            - monthly
            - yearly
          description: Billing cadence - one_time, or recurring monthly/yearly.
        status:
          type: string
          enum:
            - received
            - quote_pending
            - in_progress
            - requires_action
            - completed
            - canceled
          description: >-
            Fulfilment status, derived from where Clemta has the order:
            `received` until fulfilment starts (a cancellable state),
            `quote_pending` while a priced-by-quote product waits for the price
            and your acceptance (also cancellable - cancelling declines the
            quote), `in_progress` while Clemta works, `requires_action` while
            the current step waits on a form from you or your client (an open
            `form` requirement says which), `completed` once the final step is
            reached - terminal, `completed_at` is set and
            `service_order.completed` fires once - and `canceled`.
        options:
          type: object
          additionalProperties:
            type: string
          description: >-
            The variant choices this order was placed with (option key ->
            value).
          example:
            llc_members: multi_member
        form_required:
          type: boolean
          description: >-
            True when fulfilment needs a form from the client (e.g. an ITIN or
            BOI service). Known once the order reaches fulfilment.
        workflow_status:
          type: string
          description: >-
            The live fulfilment step (e.g. "Application In Progress", "Signature
            Request"). Present once the order is being fulfilled.
        form:
          allOf:
            - $ref: '#/components/schemas/ServiceOrderForm'
          description: >-
            The form the current step is waiting on, when `form_required` is
            true - the fields to submit next via the form endpoint. Present on
            the single-order view.
        unit_amount:
          type: integer
          format: int64
          description: >-
            The wholesale price you were billed, in the currency's smallest unit
            (cents).
          example: 7900
        currency:
          type: string
          example: usd
        created_at:
          type: string
          format: date-time
        quote:
          $ref: '#/components/schemas/ServiceOrderQuote'
        shareholder:
          type: string
          description: >-
            The company owner this order is for (products ordered per owner,
            e.g. an ITIN).
        outcome:
          type: string
          description: >-
            How a completed order ended, where completion alone does not say - a
            bank application's approved or declined, a good-standing check's not
            eligible. Recorded by Clemta. A decline is a delivered service, not
            a credit. Absent while the work runs and on orders whose completion
            is the whole answer.
        included_in:
          type: string
          description: >-
            Present when this order was attached by a bundle order (the
            formation's included services) - it names the bundle product.
            Included orders bill nothing of their own. A paid option choice
            bills only the difference.
        fees:
          type: array
          items:
            $ref: '#/components/schemas/OrderFee'
          description: >-
            Pass-through lines this order carried beside `unit_amount` - the
            state's own charge and the processing fee, frozen at their
            order-time amounts. Each appears as its own line on your statement.
        next_renewal_at:
          type: string
          format: date-time
          description: >-
            When the next period bills (for a product billed in arrears, the end
            of the running period). Only on recurring orders. Absent once
            renewals end.
        renewal_cancel_requested_at:
          type: string
          format: date-time
          description: >-
            When you requested cancellation. The request awaits a Clemta
            decision - renewals keep billing until it is approved. You hear the
            outcome as `service_order.renewal_canceled` or
            `service_order.renewal_cancel_denied`.
        renewal_canceled_at:
          type: string
          format: date-time
          description: >-
            When the cancellation was approved. The order stops billing at
            `renewal_ends_at`. Fulfilment status is unaffected.
        renewal_ends_at:
          type: string
          format: date-time
          description: >-
            The period end the service runs to after a renewal cancel. An
            arrears product still bills this period at that moment, then stops.
        canceled_at:
          type: string
          format: date-time
        completed_at:
          type: string
          format: date-time
          description: >-
            When the order first reached `completed`. `service_order.completed`
            announces this moment, and it does not change afterward.
    Requirement:
      type: object
      description: >-
        One thing needed from you or your client: an owner's identity document,
        a service-order form, or something Clemta asked for (a company-name
        change, extra information). Fulfill it over the API, or mint a hosted
        link and hand fulfillment to your client.
      required:
        - object
        - id
        - company
        - type
        - status
        - requested_by
        - livemode
        - created_at
      properties:
        object:
          type: string
          enum:
            - requirement
          description: Entity name.
        id:
          type: string
          pattern: ^rqmt_[0-9A-Za-z]{22}$
          example: rqmt_0346sFPEvSkJvY8vt14NNw
        company:
          type: string
          pattern: ^cmp_[0-9A-Za-z]{22}$
          description: The company this requirement is on.
        service_order:
          type: string
          pattern: ^so_[0-9A-Za-z]{22}$
          description: >-
            The service order this requirement belongs to - a form requirement's
            own order, or the order a Clemta-opened information or document ask
            was scoped to.
        shareholder:
          type: string
          pattern: ^sh_[0-9A-Za-z]{22}$
          description: The owner a document requirement is about.
        purpose:
          type: string
          enum:
            - identity_document
            - formation_document
            - additional_document
          description: >-
            On a `document` requirement: the file-policy purpose it collects
            under, which decides the accepted size, content types, page count
            and link lifetime (see the file upload guide's policy table).
        type:
          type: string
          enum:
            - document
            - form
            - name_change
            - information
            - signature
          description: >-
            What fulfills it. `document` - an identity document file. `form` -
            the current fulfilment step's answers. `name_change` - a new company
            name (a `name` value). `information` - free-form answers.
        status:
          type: string
          enum:
            - open
            - resolved
            - canceled
        requested_by:
          type: string
          enum:
            - system
            - operations
          description: Who opened it - the platform itself, or Clemta.
        document_name:
          type: string
          description: >-
            For a signature requirement - the name of the document awaiting
            signature.
        signers:
          type: array
          items:
            $ref: '#/components/schemas/RequirementSigner'
          description: >-
            For a signature requirement - every party that must sign, with each
            one's progress. The requirement resolves only when they have all
            signed.
        message:
          type: string
          description: Why it was opened, in words you can show your client.
        cancel_reason:
          type: string
          description: >-
            On a canceled requirement - why it closed without being fulfilled: a
            signer's decline reason, or Clemta withdrawing the ask. Safe to show
            your client.
        form:
          $ref: '#/components/schemas/ServiceOrderForm'
          description: >-
            For an OPEN `form` requirement: the fields to collect, read live
            from the fulfilment workflow.
        response:
          type: array
          items:
            $ref: '#/components/schemas/ServiceFormField'
          description: What fulfilled it (absent for documents).
        attachments:
          type: array
          items:
            $ref: '#/components/schemas/RequirementAttachment'
          description: >-
            A form requirement's file-field uploads collected so far. Forwarded
            together with the values when the form is fulfilled.
        livemode:
          type: boolean
        created_at:
          type: string
          format: date-time
        resolved_at:
          type: string
          format: date-time
    Shareholder:
      type: object
      required:
        - object
        - id
        - type
        - relationship
        - document
      description: A company owner.
      properties:
        object:
          type: string
          enum:
            - shareholder
        id:
          type: string
          pattern: ^sh_[0-9A-Za-z]{22}$
        type:
          type: string
          enum:
            - individual
            - company
            - option_pool
        first_name:
          type: string
        last_name:
          type: string
        name:
          type: string
        representative_name:
          type: string
          maxLength: 255
          description: >-
            The natural person acting for a company owner. Required for a
            company owner.
        email:
          type: string
        phone:
          type: string
        phone_country:
          type: string
          description: The phone's ISO 3166 alpha-2 country code.
        tax_id_type:
          type: string
          enum:
            - ssn
            - itin
            - ein
        relationship:
          $ref: '#/components/schemas/Relationship'
        document:
          $ref: '#/components/schemas/Document'
        address:
          $ref: '#/components/schemas/Address'
    CompanyOfficer:
      type: object
      description: >-
        One row of the company's management roster: a person and the positions
        they hold. A director is an officer holding the `director` role - there
        is no separate directors list. An officer who is also an owner carries
        the `shareholder` id of the owner they are. A non-owner officer (a hired
        director or officer who holds no shares) carries none.
      required:
        - object
        - id
        - roles
      properties:
        object:
          type: string
          enum:
            - officer
          description: Entity name.
        id:
          type: string
          pattern: ^off_[0-9A-Za-z]{22}$
          example: off_0346sFPEvSkJvY8vt14NNw
        shareholder:
          type: string
          pattern: ^sh_[0-9A-Za-z]{22}$
          description: >-
            The owner this officer is, when they hold shares. Absent for a
            non-owner officer.
        first_name:
          type: string
        last_name:
          type: string
        email:
          type: string
        title:
          type: string
          description: A free-text position label Clemta may keep alongside the roles.
        roles:
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/OfficerRole'
          description: The positions this person holds, entity-gated.
        source:
          type: string
          enum:
            - onboarding
            - ops
          description: Who put the row on the roster - the customer's onboarding or Clemta.
        address:
          $ref: '#/components/schemas/Address'
    Error:
      type: object
      description: >-
        Error response: a stable machine-readable `code`, human-readable
        `title`/`detail`, and for validation failures an `errors` array naming
        every violating field.
      required:
        - type
        - title
        - status
        - code
      additionalProperties: false
      properties:
        type:
          type: string
          description: Link to the error reference entry for this code.
          example: https://docs.clemta.com/partner/errors#resource_already_exists
        title:
          type: string
          description: Short human summary of the error class.
        status:
          type: integer
          format: int32
          minimum: 100
          maximum: 599
          description: HTTP status code, also included in the body.
        code:
          type: string
          enum:
            - api_key_invalid
            - api_key_expired
            - insufficient_scope
            - ip_address_not_allowed
            - invalid_request
            - invalid_api_version
            - resource_missing
            - method_not_allowed
            - test_mode_only
            - resource_already_exists
            - idempotency_key_mismatch
            - idempotency_key_in_use
            - request_too_large
            - billing_account_inactive
            - entitlement_required
            - rate_limit
            - api_error
          description: Stable machine-readable code - branch on this, never on `detail`.
        detail:
          type: string
          description: Human-readable specifics of this occurrence, wording may change.
        request_id:
          type: string
          description: >-
            Identifier of this request. Quote it in a support request so we can
            trace the failure.
        errors:
          type: array
          description: 'Present on validation failures: one entry per violating field.'
          items:
            type: object
            required:
              - reason
            additionalProperties: false
            properties:
              reason:
                type: string
              location:
                type: string
                description: JSONPath of the failing field, e.g. `$.name`.
              validation_type:
                type: string
                description: Schema keyword that failed.
              how_to_fix:
                type: string
    ServiceOrderForm:
      type: object
      description: The form the order's current fulfilment step is waiting on.
      required:
        - fields
      properties:
        title:
          type: string
        warning:
          type: string
          description: A caution to show above the form.
        fields:
          type: array
          items:
            $ref: '#/components/schemas/ServiceFormFieldDef'
    ServiceOrderQuote:
      type: object
      description: >-
        The negotiated-price lifecycle on a product priced per order (for
        example, catch-up bookkeeping). `pending` until Clemta reviews the work
        and sets the amount, `quoted` while the price waits for your
        `accept_quote`, `accepted` once you took it and the charge landed.
        Nothing is billed before acceptance.
      required:
        - state
      properties:
        state:
          type: string
          enum:
            - pending
            - quoted
            - accepted
        unit_amount:
          type: integer
          format: int64
          description: >-
            The Clemta-set wholesale price, in the currency's smallest unit.
            Absent while pending.
        currency:
          type: string
        quoted_at:
          type: string
          format: date-time
        expires_at:
          type: string
          format: date-time
          description: >-
            Accept before this moment. A lapsed quote refuses acceptance, and
            Clemta re-prices on request.
        accepted_at:
          type: string
          format: date-time
    OrderFee:
      type: object
      required:
        - kind
        - unit_amount
      description: >-
        One pass-through charge riding a service order, at the amount resolved
        when the order was made.
      properties:
        kind:
          type: string
          description: What the line is - state_fee, processing_fee or government_fee.
          example: state_fee
        unit_amount:
          type: integer
          format: int64
          description: The amount in the currency's smallest unit.
          example: 30000
        currency:
          type: string
          example: usd
    RequirementSigner:
      type: object
      description: >-
        One party on a signature requirement. A document may need several
        signatures. Each signer gets their own hosted signing session and signs
        independently, and the requirement resolves only once the last of them
        completes.
      required:
        - ref
        - status
      properties:
        ref:
          type: string
          pattern: ^sgr_[0-9A-Za-z]{22}$
          description: >-
            The signer's stable handle. Supply a deferred (name-only) signer's
            email by this ref on POST /v1/companies/{id}/signature-signers.
        email:
          type: string
          description: >-
            The signer's email. Absent while status is `pending_email` - a
            name-only signer whose email you still owe.
        name:
          type: string
          description: The signer's display name.
        status:
          type: string
          enum:
            - pending_email
            - pending
            - viewed
            - signed
            - declined
          description: >-
            Where this signer is: `pending_email` (no email yet - supply it),
            `pending` (email set, not opened), `viewed` (opened or started),
            `signed` (completed their part), `declined` (refused - which cancels
            the whole requirement).
        viewed_at:
          type: string
          format: date-time
          description: When this signer first opened the document.
        started_at:
          type: string
          format: date-time
          description: When this signer began filling the document.
        signed_at:
          type: string
          format: date-time
          description: When this signer completed their part.
        declined_at:
          type: string
          format: date-time
          description: When this signer declined.
    ServiceFormField:
      type: object
      description: One answer to a service order's current form step.
      required:
        - value
      properties:
        key:
          type: string
          description: The field key from the form schema, when it has one.
        field_name:
          type: string
          description: The field's label from the form schema.
        value:
          description: >-
            The answer - a string, number, or boolean. A file field's value is a
            pre-uploaded file id (POST /v1/files, purpose additional_document).
    RequirementAttachment:
      type: object
      description: One file-field upload collected on a form requirement.
      required:
        - filename
      properties:
        field:
          type: string
          description: The form field key this file answers.
        field_name:
          type: string
        filename:
          type: string
        content_type:
          type: string
        size:
          type: integer
          format: int64
    Relationship:
      type: object
      additionalProperties: false
      description: The owner's relationship to the company - role, stake, and standing.
      properties:
        title:
          type: string
          enum:
            - sole_owner
            - ceo
            - coo
            - cfo
            - cto
            - cmo
            - cio
            - hr_director
            - sales_director
            - product_manager
            - project_manager
            - software_engineer
            - data_analyst
            - ux_designer
            - ui_designer
            - operations_manager
            - other
          description: >-
            The owner's role, as an API token - the platform's position list.
            Use `other` with `custom_title` for any role outside it.
        custom_title:
          type: string
          maxLength: 120
          pattern: ^[A-Za-z0-9 &.,:;'#-]+$
          description: >-
            The custom role name. Required when `title` is `other`, rejected
            otherwise.
        percent_ownership:
          type: number
          exclusiveMinimum: 0
          maximum: 100
          description: Must be above 0 for an individual or company owner.
        representative:
          type: boolean
          description: >-
            The primary owner authorized to act for the company. Exactly one
            owner must be.
        director:
          type: boolean
    Document:
      type: object
      required:
        - status
      description: The state of an owner's identity document.
      properties:
        status:
          type: string
          enum:
            - required
            - received
            - not_required
          description: >-
            not_required for a company owner. required until the individual
            uploads it, then received.
    OfficerRole:
      type: string
      enum:
        - member
        - managing_member
        - manager
        - director
        - president
        - ceo
        - secretary
        - treasurer
        - cfo
        - vice_president
      description: >-
        A position on the company's management roster. The catalogue is fixed
        per entity type. An LLC holds `member`, `managing_member` or `manager`.
        A C-Corp holds `director`, `president`, `ceo`, `secretary`, `treasurer`,
        `cfo` or `vice_president`. A director is simply an officer holding the
        `director` role.
    ServiceFormFieldDef:
      type: object
      description: >-
        One field of a form. It carries every attribute you need to render the
        field in your own UI, and the server validates answers against the same
        definition.
      required:
        - field_name
        - field_type
      properties:
        key:
          type: string
          description: Stable field key - pass it back as the answer's `key`.
        field_name:
          type: string
          description: The field's label.
        field_type:
          type: string
          enum:
            - text
            - textarea
            - number
            - date
            - boolean
            - select
            - multi_select
            - file
            - email
            - phone
            - address
          description: >-
            What kind of answer the field takes. `select` takes one of
            `options`, `multi_select` a list of them, `date` an ISO date
            (YYYY-MM-DD), `file` a pre-uploaded file id (POST /v1/files, purpose
            additional_document).
        required:
          type: boolean
        options:
          type: array
          items:
            type: string
          description: Allowed values for select / multi_select.
        guidance:
          type: string
          description: Longer explanation of what is being asked.
        help:
          type: string
          description: Short helper text under the input.
        note:
          type: string
          description: A caution shown near the field.
        placeholder:
          type: string
        info_points:
          type: array
          items:
            type: string
        conditional:
          $ref: '#/components/schemas/FieldConditional'
        validation:
          $ref: '#/components/schemas/FieldValidation'
        file:
          $ref: '#/components/schemas/FieldFileRule'
    FieldConditional:
      type: object
      description: >-
        This field applies only while another field holds one of the listed
        values.
      required:
        - field
        - values
      properties:
        field:
          type: string
          description: Key of the controlling field.
        values:
          type: array
          items:
            type: string
          description: Any of these values on the controlling field switches this one on.
    FieldValidation:
      type: object
      description: >-
        Constraints an answer must satisfy beyond its type. The server enforces
        these. A violation answers `invalid_request` with the field named in
        `errors[]`.
      properties:
        pattern:
          type: string
          description: Regular expression a text answer must match.
        min_length:
          type: integer
        max_length:
          type: integer
        min:
          type: number
          description: Lower bound for a number.
        max:
          type: number
    FieldFileRule:
      type: object
      description: Constraints on a file field's upload.
      properties:
        accepted_types:
          type: array
          items:
            type: string
          description: >-
            Media types or extensions accepted (e.g. `application/pdf`, `jpg`).
            Absent means PDF, JPEG and PNG.
        max_size_bytes:
          type: integer
          format: int64
  responses:
    BadRequest:
      description: Malformed request (e.g. unknown `Clemta-Version`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing, invalid, revoked, or grace-expired API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: The requested resource does not exist, or is not yours.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: Rate limit exceeded, retry after the `Retry-After` header.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >
        Your API key, e.g. `Authorization: Bearer clmt_test_`. Live keys use the
        `clmt_live_` prefix.

````