Galon Cloud
Galon API v1

/terms/acceptance

Base URL https://api.galon.ai/v1 · export GALON_API_BASE="https://api.galon.ai/v1"

GET /terms/acceptance

Acceptance status of the current terms

Console session only (signed-in console).

Responses

StatusDescriptionBody
200galon.cloud.terms-acceptance.v1: version, accepted, language, accepted_at

Examples

curl

curl -X GET "$GALON_API_BASE/terms/acceptance" \
  -H "Authorization: Bearer $GALON_API_KEY"

POST /terms/acceptance

Accept the current terms (two checkboxes)

read = 'I have read', commit = 'I undertake to comply with them': two required true booleans. A new version requires a new acceptance before Mail activation and any sending.

Console session only (signed-in console).

Request body

application/json

FieldTypeDescription
versionstring · requiredversion returned by GET /terms
languagestring · requiredlanguage of the text read
readtrue · requiredI have read the terms
committrue · requiredI undertake to comply with them

Responses

StatusDescriptionBody
200Already accepted
201Acceptance recorded
422Missing checkbox, stale version or unknown language

Examples

curl

curl -X POST "$GALON_API_BASE/terms/acceptance" \
  -H "Authorization: Bearer $GALON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"version": "string", "language": "string", "read": true, "commit": true}'