Get terms and conditions
Returns the latest signed terms and conditions for the authenticated user.
GET
/v1/broker/document/terms-and-conditionsRequest
Headers
| Field | Type | Required | Description |
|---|---|---|---|
Authorization | string | Yes | Access token in Bearer ACCESS_TOKEN format |
Not applicable: Path Parameters, Query Parameters.
Body
Not applicable.
note
No parameters are needed. The caller is resolved server-side from the identity carried by the bearer token.
Response
2XX Success
| Field | Type | Description |
|---|---|---|
account_id | string | Account identifier that signed the terms and conditions. |
version | string | Terms and conditions version that was signed. |
privacy_policy_version | string | Privacy policy version that was signed. |
email | string | Email of the caller the terms and conditions record belongs to. |
signed_at | string (ISO 8601 datetime) | Timestamp when the terms and conditions were signed. |
Error Codes
| Status | Description |
|---|---|
400 | Bad Request — no terms and conditions record was found for the caller |
401 | Unauthorized — invalid or missing access token |
403 | Forbidden — the token does not have permission to access this resource |
500 | Internal Server Error |
Error structure:
{
"code": "invalid_request",
"description": "No terms and conditions found for email cliente@example.com"
}
Code Example
- cURL
- JavaScript
- Python
- Node.js
curl -X GET https://b2b.allaria.dev/v1/broker/document/terms-and-conditions \
-H "Authorization: Bearer ACCESS_TOKEN"
const response = await fetch(
'https://b2b.allaria.dev/v1/broker/document/terms-and-conditions',
{
method: 'GET',
headers: { 'Authorization': 'Bearer ACCESS_TOKEN' }
}
);
const data = await response.json();
console.log(data);
import requests
response = requests.get(
'https://b2b.allaria.dev/v1/broker/document/terms-and-conditions',
headers={ 'Authorization': 'Bearer ACCESS_TOKEN' }
)
data = response.json()
print(data)
const axios = require('axios');
const response = await axios.get(
'https://b2b.allaria.dev/v1/broker/document/terms-and-conditions',
{ headers: { Authorization: 'Bearer ACCESS_TOKEN' } }
);
console.log(response.data);
2XX Success
{
"account_id": "1234",
"version": "1.0",
"privacy_policy_version": "1.0",
"email": "cliente@example.com",
"signed_at": "2026-07-15T09:32:10"
}