---
title: "Contract"
url: "https://developer-staging.agentsync.io/apis/platform-api/versions/8177e94d-86f2-48a5-8ed6-d5fbcb69f38a/schemas/Contract"
---

> Full API specification: https://developer-staging.agentsync.io/apis/platform-api/versions/8177e94d-86f2-48a5-8ed6-d5fbcb69f38a.md

# Contract

A contract your organization is a party to: the paper between a carrier and a distribution organization that the carrier's products are placed under.

## OpenAPI definition

```yaml
openapi: 3.1.1
info:
  title: AgentSync Platform API
  version: 0.0.1
servers:
  - url: https://api.{environment}.agentsync.io/platform
    description: AgentSync API gateway
    variables:
      environment:
        default: sandbox
        enum:
          - sandbox
components:
  schemas:
    ContractId:
      type: string
      description: A contract's ID, a TypeID with the prefix contract.
      pattern: ^contract_[0-7][0-9a-hjkmnp-tv-z]{25}$
      example: contract_01h455vb4pex5vsknk084sn02q
    OrganizationId:
      type: string
      description: "An organization's ID: a TypeID with the prefix org. It never
        changes, and is the same ID for the organization across the AgentSync
        API."
      pattern: ^org_[0-7][0-9a-hjkmnp-tv-z]{25}$
      example: org_01h455vb4pex5vsknk084sn02q
    ProductId:
      type: string
      description: The ID of a product or bucket of products, a TypeID with the prefix
        product.
      pattern: ^product_[0-7][0-9a-hjkmnp-tv-z]{25}$
      example: product_01h455vb4pex5vsknk084sn02q
    Contract:
      type: object
      description: "A contract your organization is a party to: the paper between a
        carrier and a distribution organization that the carrier's products are
        placed under."
      required:
        - id
        - name
        - status
        - provisioningMode
        - counterpartyOrganizationId
        - productIds
        - createdAt
        - lastChangedAt
      properties:
        id:
          $ref: "#/components/schemas/ContractId"
        name:
          type: string
          description: The contract's name.
          example: Acme Life 2026
        code:
          type: string
          description: The carrier's code for the contract. Absent when it has none.
          example: ACME-2026
        status:
          type: string
          description: active until the contract is terminated, then terminated.
          enum:
            - active
            - terminated
          example: active
        terminatedAt:
          type: string
          format: date-time
          description: When the contract was terminated. Absent while it is active.
          example: 2026-06-30T00:00:00Z
        provisioningMode:
          type: string
          description: How placements under the contract are provisioned. full_onboarding
            runs the carrier's onboarding for each placement; under
            auto_provision and internal_only a new placement is activated with
            the carrier at once.
          enum:
            - auto_provision
            - full_onboarding
            - internal_only
          example: full_onboarding
        counterpartyOrganizationId:
          $ref: "#/components/schemas/OrganizationId"
          description: "The organization on the contract's other side: the distribution
            organization when you are the carrier, the carrier when you are
            not."
          example: org_01h455vb4pex5vsknk084sn02q
        productIds:
          type: array
          description: The TypeIDs of the buckets and products the contract covers, in id
            order. Empty when it covers none.
          items:
            $ref: "#/components/schemas/ProductId"
          example:
            - product_01h455vb4pex5vsknk084sn02q
        createdAt:
          type: string
          format: date-time
          description: When the contract was created.
          example: 2026-01-15T17:04:05Z
        lastChangedAt:
          type: string
          format: date-time
          description: When the contract last changed.
          example: 2026-03-02T09:30:00Z
      example:
        id: contract_01h455vb4pex5vsknk084sn02q
        name: Acme Life 2026
        code: ACME-2026
        status: active
        provisioningMode: full_onboarding
        counterpartyOrganizationId: org_01h455vb4pex5vsknk084sn02q
        productIds:
          - product_01h455vb4pex5vsknk084sn02q
        createdAt: 2026-01-15T17:04:05Z
        lastChangedAt: 2026-03-02T09:30:00Z
```
