Published terms & conditions for the client and driver apps, and the acceptance
record of the authenticated user. The text is the same version the admin panel
publishes under Admin terms, and the human
readable page lives at /legal/terminos. Paths are relative to the /api/v1
prefix.
GET /config/termsis public (the sign-up screen shows the text before there is a token). The acceptance routes requireAuthorization: Bearer {token}(client or driver).
See Common errors.
| Method | URI | Role | Description |
|---|---|---|---|
GET |
/config/terms |
Public | Current published terms |
GET |
/config/terms/acceptance |
Client · Driver | Whether the user accepted the current version |
POST |
/config/terms/accept |
Client · Driver | Record the acceptance of the current version |
Returns the last published version, or terms: null when nothing is published.
Response 200
{
"terms": {
"version": 3,
"title": "Términos y Condiciones",
"content": "<h2>Uso del servicio</h2><p>…</p>",
"published_at": "2026-10-16T18:30:00+00:00",
"url": "https://api.pideaguita.com/legal/terminos"
}
}
| Field | Type | Description |
|---|---|---|
terms |
object|null | null when no version has been published |
terms.version |
integer | Version number, increasing |
terms.title |
string | Document title |
terms.content |
string | Sanitized HTML (headings, paragraphs, lists, links, emphasis) |
terms.published_at |
string | ISO 8601 datetime |
terms.url |
string | Public web page with the same version |
The example below is a user who accepted version 1 while version 3 is
published: accepted_version is scoped to the current version, so it reads
null, and has_ever_accepted is what tells this apart from a sign-up that has
never accepted anything.
Response 200
{
"current_version": 3,
"accepted_version": null,
"accepted_at": null,
"needs_acceptance": true,
"has_ever_accepted": true
}
| Field | Type | Description |
|---|---|---|
current_version |
integer|null | Published version, null when none |
accepted_version |
integer|null | current_version when the user accepted it, null otherwise. Never an older version |
accepted_at |
string|null | ISO 8601 datetime of the acceptance |
needs_acceptance |
boolean | true when there is a published version the user has not accepted |
has_ever_accepted |
boolean | true when the user has accepted any version, current or older |
Errors
| Status | When |
|---|---|
401 |
Missing or invalid bearer token |
Request
| Field | Type | Required | Rules |
|---|---|---|---|
version |
integer | yes | min:1, must match the current published version |
{ "version": 3 }
Response 201 (first acceptance) · 200 (already recorded)
{
"accepted": true,
"version": 3,
"accepted_at": "2026-10-16T18:45:12+00:00"
}
Errors
| Status | When |
|---|---|
401 |
Missing or invalid bearer token |
404 |
TermsNotPublished — no version has been published |
409 |
OutdatedTermsVersion — version is not the current one (response includes current_version) |
422 |
ValidationError — version missing or not an integer |
# Public text (sign-up screen)
curl /api/v1/config/terms
# Acceptance state and acceptance
curl /api/v1/config/terms/acceptance -H "Authorization: Bearer {token}"
curl -X POST /api/v1/config/terms/accept -H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" -d '{"version":3}'