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

# Record Terms of Service acceptance

> Stores the current datetime in the user's `ss_tos_accepted`
meta. One-time — if already set, it is **not** overwritten.

Used for compliance/audit trail.




## OpenAPI

````yaml /openapi/private/specs/wp/wp-ajax-misc.yml post /wp-admin/admin-ajax.php?action=sagescreen_save_tos_acceptance
openapi: 3.1.0
info:
  title: SageScreen — Misc AJAX Modules (User · Council · Billing · Splash · Demo)
  version: 1.0.0
servers:
  - url: https://{domain}/wp-json/sagescreen/v1
    description: WordPress REST API
    variables:
      domain:
        default: api.sagescreen.app
security: []
tags:
  - name: User – REST
    description: Zapier-facing REST endpoints
  - name: User – AJAX
    description: Council user management AJAX endpoints
  - name: User – Profile
    description: Self-service profile updates
  - name: Council – REST
    description: Zapier-facing REST endpoints for council data sync
  - name: Council – AJAX
    description: Council user and sage management AJAX endpoints
  - name: Billing – Stripe
    description: Stripe webhook and subscription endpoints
  - name: Billing – Broadcast
    description: Postmark broadcast unsubscribe endpoint
  - name: Billing – Pipedrive
    description: Pipedrive CRM ID set-* webhook endpoints (called by Zapier)
  - name: Billing – AJAX
    description: Credit ledger, reactivation, and portal AJAX endpoints
  - name: Splash
    description: Splash banner AJAX endpoints
  - name: Demo
    description: Demo signup and management AJAX endpoints
  - name: CSV Upload
    description: Bulk candidate CSV upload
paths:
  /wp-admin/admin-ajax.php?action=sagescreen_save_tos_acceptance:
    post:
      tags:
        - User – Profile
      summary: Record Terms of Service acceptance
      description: |
        Stores the current datetime in the user's `ss_tos_accepted`
        meta. One-time — if already set, it is **not** overwritten.

        Used for compliance/audit trail.
      operationId: ajaxSaveTosAcceptance
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              required:
                - action
                - nonce
              properties:
                action:
                  type: string
                  const: sagescreen_save_tos_acceptance
                nonce:
                  type: string
                  description: WP nonce for `sagescreen_frontend_nonce`
      responses:
        '200':
          description: TOS acceptance result
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/AjaxSuccessMessage'
                  - $ref: '#/components/schemas/AjaxErrorResponse'
              examples:
                accepted:
                  summary: TOS accepted
                  value:
                    success: true
                    message: Terms of Service accepted
                notLoggedIn:
                  summary: Not logged in
                  value:
                    success: false
                    message: User not logged in
      security:
        - wpAjaxNonce: []
components:
  schemas:
    AjaxSuccessMessage:
      type: object
      properties:
        success:
          type: boolean
          const: true
        message:
          type: string
          examples:
            - Terms of Service accepted
    AjaxErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          const: false
        message:
          type: string
          examples:
            - All fields are required
  securitySchemes:
    wpAjaxNonce:
      type: apiKey
      in: query
      name: nonce
      description: WordPress AJAX nonce (passed as form field, verified per-action)

````