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

# Record that a member accepted one or more document versions

> Re-accepting a version already on file is a no-op, not an error. The response is the same shape as GET /v1/terms, so a client can render the outcome without a second call.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/terms/acceptance
openapi: 3.0.3
info:
  description: Public REST API for embedding Expys experiences into a client app.
  title: Expys API
  version: 1.4.0
servers:
  - url: https://api.expys.com
    description: >-
      Expys API. Sandbox and live share this host; the environment is selected
      by which key you exchange for a member token, not by the URL.
security: []
paths:
  /v1/terms/acceptance:
    post:
      tags:
        - Terms
      summary: Record that a member accepted one or more document versions
      description: >-
        Re-accepting a version already on file is a no-op, not an error. The
        response is the same shape as GET /v1/terms, so a client can render the
        outcome without a second call.
      operationId: acceptTerms
      parameters:
        - description: >-
            Optional client-generated key (<=255 chars). A retried POST carrying
            the same key replays the original response instead of acting twice;
            reusing a key with a different body returns 409.
          in: header
          name: Idempotency-Key
          required: false
          schema:
            maxLength: 255
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AcceptTermsRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetTermsResponse'
          description: Response for status 200
          headers:
            X-Request-Id:
              description: >-
                Per-request correlation id. Quote it to support to trace the
                call in the server logs.
              schema:
                type: string
        '401':
          description: Authentication is missing or invalid.
          headers:
            X-Request-Id:
              description: >-
                Per-request correlation id. Quote it to support to trace the
                call in the server logs.
              schema:
                type: string
        '403':
          description: Authenticated, but not permitted to access this resource.
          headers:
            X-Request-Id:
              description: >-
                Per-request correlation id. Quote it to support to trace the
                call in the server logs.
              schema:
                type: string
        '429':
          description: Rate limit exceeded; honor the Retry-After header.
          headers:
            X-Request-Id:
              description: >-
                Per-request correlation id. Quote it to support to trace the
                call in the server logs.
              schema:
                type: string
        '500':
          description: An unexpected server error occurred.
          headers:
            X-Request-Id:
              description: >-
                Per-request correlation id. Quote it to support to trace the
                call in the server logs.
              schema:
                type: string
      security:
        - ApiKeyBearer: []
        - ApiKeyHeader: []
      x-codeSamples:
        - lang: curl
          label: curl
          source: |-
            curl -X POST https://api.expys.com/v1/terms/acceptance \
              -H "Authorization: Bearer YOUR_MEMBER_TOKEN" \
              -H "Content-Type: application/json" \
              -d '{
                "externalUserID": "string",
                "versions": [
                  "string"
                ]
              }'
components:
  schemas:
    AcceptTermsRequest:
      properties:
        externalUserID:
          type: string
        versions:
          items:
            type: string
          type: array
      required:
        - versions
      type: object
    GetTermsResponse:
      properties:
        documents:
          items:
            $ref: '#/components/schemas/LegalDocument'
          type: array
      required:
        - documents
      type: object
    LegalDocument:
      properties:
        acceptedAt:
          nullable: true
          type: string
        publishedAt:
          type: string
        type:
          enum:
            - TERMS_OF_SERVICE
            - PRIVACY_POLICY
          type: string
        version:
          type: string
      required:
        - acceptedAt
        - publishedAt
        - type
        - version
      type: object
  securitySchemes:
    ApiKeyBearer:
      description: Org-API-Key as a Bearer token.
      scheme: bearer
      type: http
    ApiKeyHeader:
      description: Org-API-Key as a header.
      in: header
      name: x-api-key
      type: apiKey

````