cURL
curl --request GET \ --url https://api.example.com/api/v1/lookups/municipalities \ --header 'Authorization: <authorization>' \ --header 'X-Factus-Token: <x-factus-token>'
{ "400": {}, "401": {}, "success": true, "message": "<string>", "data": [ { "id": 123, "name": "<string>", "code": "<string>", "department": "<string>" } ], "errors": "<any>" }
Retrieve a list of Colombian municipalities with their codes and departments
Bearer <your_access_token>
curl --request GET \ --url https://api.yourapp.com/api/v1/lookups/municipalities \ --header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...' \ --header 'X-Factus-Token: your_factus_token_here'
{ "success": true, "message": "Municipios obtenidos exitosamente", "data": [ { "id": 1, "name": "Bogotá D.C.", "code": "11001", "department": "Bogotá D.C." }, { "id": 2, "name": "Medellín", "code": "05001", "department": "Antioquia" }, { "id": 3, "name": "Cali", "code": "76001", "department": "Valle del Cauca" }, { "id": 4, "name": "Barranquilla", "code": "08001", "department": "Atlántico" } ], "errors": null }
{ "detail": "Error al obtener datos de Factus: Invalid token" }
{ "detail": "Not authenticated" }
detail