accept
Record acceptance of the terms version the caller was shown.
Code
accept › Request Body
keyIdentifier of the terms document, validated against the in-repo registry (core.terms_of_service). An unknown value is rejected.
versionThe version the caller actually displayed, as returned by /api/v2/terms/status. Always required. While the site shows the notice it must equal the currently registered version: sending the key alone would let a notice edit between page render and submit produce an audit row claiming the user accepted text they never saw, and a mismatch is rejected with a version field error so the client can reload and show the current notice. On a site where reports.enable-sql-editor-terms is off the notice is not in force, so nothing is recorded and a stale value is tolerated rather than rejected.
api_keyAPI key for authentication
accept › Responses
successThe recorded acceptance. On a site where reports.enable-sql-editor-terms is off the notice is not in force: no acceptance row and no audit note are written, and this reports the registered version rather than the submitted one, so an already-open dialog can close instead of erroring.
status
Return the ToS acceptance status for the current user.
Code
status › Request Body
keyIdentifier of the terms document, validated against the in-repo registry (core.terms_of_service). An unknown value is rejected.
api_keyAPI key for authentication
status › Responses
successAcceptance state for the requested terms document
