Skip to content
GAMPEONCreate
New project

Accept the current terms

POST
/v1/me/terms
curl --request POST \
--url https://api.gampeon.com/v1/me/terms \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "version": "example" }'

For accounts that have not accepted the version in force yet (terms.current is false in GET /v1/me). Only with a portal session, not with an access token: an AI assistant cannot accept terms for a person.

Not available with access tokens.

Media typeapplication/json
object
version
required

Current version from GET /v1/legal/terms

string
<= 40 characters

Example generated

{
"version": "example"
}

Accepted

Media typeapplication/json
object
version
required
One of:

Last accepted version, null if none yet (accounts created before the terms)

string
acceptedAt
required
One of:

Unix time in milliseconds

integer format: int64
currentVersion
required

Version in force

string
current
required

false: show the terms and ask the person to accept them (POST /v1/me/terms)

boolean

Example generated

{
"version": "example",
"acceptedAt": 1,
"currentVersion": "example",
"current": true
}

Error codes: invalid_field

Media typeapplication/json
object
error
required

Machine-readable error code, for example not_found or rate_limited.

string
message

Human-readable detail. Only present for some errors.

string

Example generated

{
"error": "example",
"message": "example"
}

Error codes: unauthorized

Media typeapplication/json
object
error
required

Machine-readable error code, for example not_found or rate_limited.

string
message

Human-readable detail. Only present for some errors.

string

Example generated

{
"error": "example",
"message": "example"
}

Error codes: token_not_allowed

Media typeapplication/json
object
error
required

Machine-readable error code, for example not_found or rate_limited.

string
message

Human-readable detail. Only present for some errors.

string

Example generated

{
"error": "example",
"message": "example"
}

Error codes: terms_outdated

Media typeapplication/json
object
error
required

Machine-readable error code, for example not_found or rate_limited.

string
message

Human-readable detail. Only present for some errors.

string

Example generated

{
"error": "example",
"message": "example"
}

Report a problem with this pageOther ways to give feedback