Skip to content

Accept Terms

POST
/api/auth/accept-terms
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.

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
>= 1 characters <= 32 characters
Example generated
{
"business_use": true,
"terms_version": "example"
}

Successful Response

Media type application/json
Example generated
example

Validation 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"
}
]
}