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

# Accept Terms of Service

> Accepts the Terms of Service for an entity across all configured providers. Records client IP, user agent, and acceptance method for audit compliance. If KYB is already approved, auto-distribution to providers is triggered.



## OpenAPI

````yaml https://grid.squads.xyz/api-docs/openapi.json post /api/compliance/v1/entities/{id}/tos
openapi: 3.1.0
info:
  title: Grid v1 API
  description: Grid v1 REST API for Solana-based smart account system
  contact:
    name: Grid API Support
    url: https://squads.so
    email: support@squads.so
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://grid.squads.xyz
    description: Production server
security:
  - bearer_auth: []
tags:
  - name: accounts
    description: Smart account management operations
  - name: spending-limits
    description: Spending limit management
  - name: standing-orders
    description: Standing order operations
  - name: transactions
    description: Transaction management
  - name: trade
    description: Trade operations and management
  - name: payments
    description: Payment intent operations
  - name: passkeys
    description: Passkey management
  - name: kyc
    description: Know Your Customer operations
  - name: external-accounts
    description: External bank account management
  - name: virtual-accounts
    description: Virtual account management
  - name: auth
    description: Authentication operations
  - name: proposals
    description: Proposal management for multi-sig operations
  - name: compliance
    description: Compliance entity management and KYB/KYC operations
paths:
  /api/compliance/v1/entities/{id}/tos:
    post:
      tags:
        - compliance
      summary: Accept Terms of Service
      description: >-
        Accepts the Terms of Service for an entity across all configured
        providers. Records client IP, user agent, and acceptance method for
        audit compliance. If KYB is already approved, auto-distribution to
        providers is triggered.
      operationId: handler
      parameters:
        - name: id
          in: path
          description: Entity ID
          required: true
          schema:
            type: string
            format: uuid
        - name: x-grid-environment
          in: header
          description: Solana network environment (sandbox, devnet, mainnet)
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AcceptTosRequestPayload'
        required: true
      responses:
        '200':
          description: TOS accepted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GridApiResponse_AcceptTosResponsePayload'
        '400':
          description: Invalid request parameters
        '401':
          description: Unauthorized
        '404':
          description: Entity not found
        '500':
          description: Internal server error
      security:
        - bearer_auth: []
components:
  schemas:
    AcceptTosRequestPayload:
      type: object
      required:
        - client_ip
        - acceptance_method
      properties:
        acceptance_method:
          type: string
          description: 'How the user accepted: checkbox, click, link, or api'
        client_ip:
          type: string
          description: End user's IP address (captured by your frontend)
        client_user_agent:
          type:
            - string
            - 'null'
          description: End user's browser user agent
    GridApiResponse_AcceptTosResponsePayload:
      type: object
      required:
        - data
        - metadata
      properties:
        data:
          type: object
          required:
            - accepted
            - accepted_at
            - providers
          properties:
            accepted:
              type: boolean
              description: Whether TOS was accepted
            accepted_at:
              type: string
              format: date-time
              description: When the TOS was accepted
            providers:
              type: array
              items:
                $ref: '#/components/schemas/AcceptTosProviderAcceptance'
              description: Per-provider acceptance details
        metadata:
          $ref: '#/components/schemas/Metadata'
    AcceptTosProviderAcceptance:
      type: object
      required:
        - provider
        - version
        - signed_agreement_id
      properties:
        provider:
          type: string
          description: Provider identifier
        signed_agreement_id:
          type: string
          description: Unique agreement identifier for audit
        version:
          type: string
          description: TOS version that was accepted
    Metadata:
      type: object
      required:
        - request_id
        - timestamp
      properties:
        request_id:
          type: string
        timestamp:
          type: string
          format: date-time
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      description: Your Grid API key from the Grid Dashboard

````