API REFERENCE
Read authorized business settings
/api/v1/businesses/{id}/settingsRead the selected business name, IANA time zone, and operational settings. Requires an administrator account with membership in that business; settings are isolated from every other business.
Authentication
Requires an authorized administrator bearer session; business membership rules apply. Do not assume an integration key can replace an account session.
Parameters
| Parameter | In | Type | Description |
|---|---|---|---|
idRequired | path | string | Business ID must belong to the authenticated administrator.Format: uuid |
Request
No JSON request body is required.
Example request
Replace synthetic identifiers and credentials. Example dates, coordinates, revisions, and IDs are not production defaults. Read the workflow guide before making a write.
curl --request GET 'https://route-api.okok.space/api/v1/businesses/11111111-1111-4111-8111-111111111111/settings' \
--header 'Authorization: Bearer REPLACE_WITH_TOKEN' \
--output response.binResponses
Examples illustrate the documented shape; optional fields and current state can differ. JSON extraction/body-limit errors may be plain text.
200 · Selected business settings. Zone changes preserve existing UTC appointment instants.
application/json
| Field | Type | Description & constraints |
|---|---|---|
id | string | Identifier unique within its authorized business. Some create operations generate it when omitted. |
nameRequired | string | Human-readable name shown in the workspace. |
time_zoneRequired | string | Resource-specific value; see the related workflow and schema. |
planning | object | Business planning preferences. |
evidence | object | Shared completion-evidence requirements. |
routing | object | Local road-routing engine and approved-dataset update schedule. |
planning fields
| Field | Type | Description & constraints |
|---|---|---|
planning.travel_metric | time | distance | null | Resource-specific value; see the related workflow and schema. |
planning.objectives | array<completed_tasks | travel> | Planning objectives; completing more work and minimizing travel can be combined. |
planning.location_freshness_seconds | integer | Resource-specific value; see the related workflow and schema. |
planning.min_rest_seconds | integer | null | Resource-specific value; see the related workflow and schema. |
planning.notify_unplanned | boolean | Resource-specific value; see the related workflow and schema. |
evidence fields
| Field | Type | Description & constraints |
|---|---|---|
evidence.require_photos | boolean | Resource-specific value; see the related workflow and schema. |
evidence.require_signature | boolean | Resource-specific value; see the related workflow and schema. |
routing fields
| Field | Type | Description & constraints |
|---|---|---|
routing.engine | osrm | valhalla | Resource-specific value; see the related workflow and schema. |
routing.update_schedule | string | Five-field cron in business time zone. Weekly Sunday03:00 default; approved regions only. |
Illustrative response
{
"id": "example-id",
"name": "Example Services",
"time_zone": "Europe/Warsaw",
"planning": {
"travel_metric": "time",
"objectives": [
"completed_tasks",
"travel"
],
"location_freshness_seconds": 1,
"min_rest_seconds": 1,
"notify_unplanned": false
},
"evidence": {
"require_photos": false,
"require_signature": false
},
"routing": {
"engine": "osrm",
"update_schedule": "example"
}
}Response schema
{
"$ref": "#/components/schemas/OperationalSettings"
}400 · Axum extraction rejects invalid JSON/type, oversized body, or malformed UUID before the domain handler. These responses may be text/plain rather than the domain Error object.
text/plain
Binary response. Save the returned bytes to a file; do not parse as JSON.
401 · Invalid credentials, missing bearer token, or expired/unverified session.
application/json
| Field | Type | Description & constraints |
|---|---|---|
errorRequired | object | Resource-specific value; see the related workflow and schema. |
error fields
| Field | Type | Description & constraints |
|---|---|---|
error.codeRequired | validation | unauthorized | not_found | conflict | unavailable | rate_limited | Private activation or recovery code supplied to the driver. |
error.messageRequired | string | Resource-specific value; see the related workflow and schema. |
Illustrative response
{
"error": {
"code": "unauthorized",
"message": "Invalid credentials, missing bearer token, or expired/unverified session."
}
}Response schema
{
"$ref": "#/components/schemas/Error"
}404 · Business absent or not authorized for this account; no cross-business existence disclosure.
application/json
| Field | Type | Description & constraints |
|---|---|---|
errorRequired | object | Resource-specific value; see the related workflow and schema. |
error fields
| Field | Type | Description & constraints |
|---|---|---|
error.codeRequired | validation | unauthorized | not_found | conflict | unavailable | rate_limited | Private activation or recovery code supplied to the driver. |
error.messageRequired | string | Resource-specific value; see the related workflow and schema. |
Illustrative response
{
"error": {
"code": "not_found",
"message": "Business absent or not authorized for this account; no cross-business existence disclosure."
}
}Response schema
{
"$ref": "#/components/schemas/Error"
}503 · Required persistence or credential operation unavailable.
application/json
| Field | Type | Description & constraints |
|---|---|---|
errorRequired | object | Resource-specific value; see the related workflow and schema. |
error fields
| Field | Type | Description & constraints |
|---|---|---|
error.codeRequired | validation | unauthorized | not_found | conflict | unavailable | rate_limited | Private activation or recovery code supplied to the driver. |
error.messageRequired | string | Resource-specific value; see the related workflow and schema. |
Illustrative response
{
"error": {
"code": "unavailable",
"message": "Required persistence or credential operation unavailable."
}
}Response schema
{
"$ref": "#/components/schemas/Error"
}