Administrator Maps Integration API
Maps provider configuration is reserved for future use. Public property maps currently use Leaflet/OpenStreetMap.
Base URL: http://localhost:8000/api/v1
Prefix: /admins/platform-settings/integrations
Auth: Administrator JWT required
Headers: Content-Type: application/json
1. Get Maps Configuration
Retrieve the saved integration state and sanitized configuration.
/admins/platform-settings/integrations/maps/Auth: Required
Headers
Authorization: Bearer {{admin_access_token}}
Content-Type: application/jsonSuccess Example
{
"success": true,
"message": "Integration retrieved successfully.",
"data": {
"integration": {
"type": "maps",
"is_enabled": true,
"configured": true,
"config": {
"provider": "google",
"default_latitude": 30.2672,
"default_longitude": -97.7431,
"features": [],
"has_api_key": true
},
"updated_at": "2026-11-24T10:00:00Z"
}
}
}Notes
Sensitive values are returned as has_* flags. configured means encrypted configuration exists; it does not verify provider credentials. A missing integration record is created disabled.
Applicable errors: 401 missing/invalid JWT; 403 administrator access required; 406 unsupported response format.
Unauthorized - HTTP 401
{
"success": false,
"message": "Authentication credentials were not provided.",
"errors": {}
}Forbidden - HTTP 403
{
"success": false,
"message": "You do not have permission to perform this action.",
"errors": {}
}2. Update Maps Configuration
Save provider configuration and optionally enable or disable the integration.
/admins/platform-settings/integrations/maps/Auth: Required
Headers
Authorization: Bearer {{admin_access_token}}
Content-Type: application/jsonRequest Body
| Field | Type | Requirement |
|---|---|---|
is_enabled | boolean | Optional; preserves the saved state when omitted. |
config | object | Optional; merges the submitted fields with saved configuration. |
{
"is_enabled": true,
"config": {
"provider": "google",
"api_key": "replace-with-api-key",
"default_latitude": 30.2672,
"default_longitude": -97.7431,
"features": []
}
}Success Example
{
"success": true,
"message": "Integration updated successfully.",
"data": {
"integration": {
"type": "maps",
"is_enabled": true,
"configured": true,
"config": {
"provider": "google",
"default_latitude": 30.2672,
"default_longitude": -97.7431,
"features": [],
"has_api_key": true
},
"updated_at": "2026-11-24T10:00:00Z"
}
}
}Notes
Both is_enabled and config are optional. PATCH merges with saved configuration; omit unchanged secrets to retain them. Required values must exist in the merged configuration when enabled. Saving does not verify provider connectivity. Disable with { "is_enabled": false }; re-enable with { "is_enabled": true } when configuration is complete.
Maps configuration is reserved for future use. provider is a string; api_key is required when enabled. Latitude must be between -90 and 90; longitude between -180 and 180. features is a string array.
Configuration fields
| Field | Type | Details |
|---|---|---|
provider | string | Maximum length: 100 |
api_key | string | Maximum length: 255; blank allowed; write-only |
default_latitude | number | Minimum: -90; Maximum: 90 |
default_longitude | number | Minimum: -180; Maximum: 180 |
features | string array | Optional in a partial update |
Disable without deleting configuration
{
"is_enabled": false
}Re-enable with complete saved configuration
{
"is_enabled": true
}When enabling without saved provider configuration - HTTP 400
{
"success": false,
"message": "Validation failed.",
"errors": {
"config": {
"provider": "This field is required when enabling the integration.",
"api_key": "This field is required when enabling the integration."
}
}
}Applicable errors: 400 invalid/missing configuration or malformed JSON; 401 missing/invalid JWT; 403 administrator access required; 406 unsupported response format; 415 unsupported content type.
Unauthorized - HTTP 401
{
"success": false,
"message": "Authentication credentials were not provided.",
"errors": {}
}Forbidden - HTTP 403
{
"success": false,
"message": "You do not have permission to perform this action.",
"errors": {}
}