Accept Terms
POST
/api/auth/accept-terms
const url = 'https://example.com/api/auth/accept-terms';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"business_use":true,"terms_version":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/auth/accept-terms \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "business_use": true, "terms_version": "example" }'Record the authenticated user’s acceptance of the CURRENT terms.
Used by the console’s post-login gate (Google sign-ups, pre-existing users, and everyone after a TERMS_VERSION bump). Nothing server-side is gated on the result — see UserResponse.terms_acceptance_required.
Authorizations
Section titled “ Authorizations ”Request Bodyrequired
Section titled “ Request Bodyrequired ” Media type application/json
AcceptTermsRequest
POST /auth/accept-terms — an authenticated user records acceptance.
object
business_use
required
Business Use
boolean
terms_version
required
Terms Version
string
Example generated
{ "business_use": true, "terms_version": "example"}Responses
Section titled “ Responses ”Successful Response
Media type application/json
Example generated
exampleValidation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}