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

# List the contracts an organization must accept

> Contracts that require acceptance and whose current published version is not accepted yet.



## OpenAPI

````yaml https://api.onetsolutions.net/schema get /v1/organizations/{organization_id}/contracts/pending
openapi: 3.0.3
info:
  title: OnetSolutions API
  version: v1 (v1)
  description: >

    ## Overview


    The OnetSolutions API provides programmatic access to manage your cloud
    infrastructure, domains, and web hosting services.


    ## Authentication


    All API requests require authentication using one of the following methods:


    - **JWT Token**: Obtain a token via login endpoints and include it in the
    `Authorization: Bearer <token>` header

    - **API Key**: Generate an API key from your account settings and use it as
    `Authorization: Bearer sk-onetsolutions-...`


    ## Rate Limiting


    API requests are rate-limited to ensure fair usage:

    - **Standard**: 1000 requests per minute

    - **Burst**: 100 requests per second


    ## Pagination


    List endpoints return paginated results. Use `page` and `page_size` query
    parameters.


    ## Error Handling


    The API uses standard HTTP status codes:

    - `200` Success

    - `201` Created

    - `400` Bad Request

    - `401` Unauthorized

    - `403` Forbidden

    - `404` Not Found

    - `429` Too Many Requests
servers: []
security: []
tags:
  - name: Authentication
    description: >-
      Login, passwordless authentication, MFA, OAuth providers, and token
      management.
  - name: Organizations
    description: >-
      Organization management, members, roles, modules, audit logs, and
      notification settings.
  - name: Projects
    description: Project management, team members, and project-scoped resources.
  - name: Compute
    description: >-
      Cloud instances, volumes, snapshots, backups, VPCs, firewalls, SSH keys,
      uptime monitors, and instance tasks.
  - name: Billing
    description: >-
      Shopping cart, orders, invoices, payments, payment methods, gateways,
      promo codes, and balance management.
  - name: Domains
    description: >-
      Domain availability, registration, transfers, DNS zones, DNS records, and
      TLD information.
  - name: Web Hosting
    description: >-
      cPanel-based web hosting, emails, databases, subdomains, FTP accounts,
      addon domains, and SSL certificates.
paths:
  /v1/organizations/{organization_id}/contracts/pending:
    get:
      tags:
        - Contracts
      summary: List the contracts an organization must accept
      description: >-
        Contracts that require acceptance and whose current published version is
        not accepted yet.
      operationId: list_pending_contracts
      parameters:
        - in: path
          name: organization_id
          schema:
            type: string
            pattern: ^[^/]+$
          required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ContractStatus'
          description: ''
      security:
        - BearerAuth: []
components:
  schemas:
    ContractStatus:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        slug:
          type: string
          readOnly: true
        name:
          type: string
          readOnly: true
        kind:
          type: string
          readOnly: true
        scope:
          type: string
          readOnly: true
        requires_acceptance:
          type: boolean
          readOnly: true
        version:
          allOf:
            - $ref: '#/components/schemas/ContractVersion'
          readOnly: true
        is_accepted:
          type: boolean
          readOnly: true
        needs_acceptance:
          type: boolean
          readOnly: true
        accepted_earlier_version:
          type: boolean
          readOnly: true
        is_applicable:
          type: boolean
          readOnly: true
        accepted_at:
          type: string
          readOnly: true
          nullable: true
        accepted_by:
          type: string
          readOnly: true
          nullable: true
        accepted_order_number:
          type: string
          readOnly: true
          nullable: true
        available_locales:
          type: array
          items:
            type: string
          readOnly: true
      required:
        - accepted_at
        - accepted_by
        - accepted_earlier_version
        - accepted_order_number
        - available_locales
        - id
        - is_accepted
        - is_applicable
        - kind
        - name
        - needs_acceptance
        - requires_acceptance
        - scope
        - slug
        - version
    ContractVersion:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        version:
          type: string
          readOnly: true
          description: Customer-facing version, for example 1.0
        effective_at:
          type: string
          format: date-time
          readOnly: true
      required:
        - effective_at
        - id
        - version
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT or API Key
      description: >-
        Use `Authorization: Bearer <token>` header. Token can be a JWT token or
        an API key (format: `sk-onetsolutions-...`).

````