Preview: the API is being built and these endpoints may change
GET/api/v1/catalog/networks
List networks
The networks you can sell on right now.
Returns each network on sale, by code. Only networks on sale are listed. For the services, call GET /api/v1/catalog/services; for one network's plans, see List plans.
Request
bash
curl https://api.simconnectng.com/api/v1/catalog/networks \
-H "Authorization: Bearer $SIMCONNECT_KEY"Response
json
{
"success": true,
"data": {
"items": [
{ "code": "mtn", "name": "MTN" },
{ "code": "airtel", "name": "Airtel" },
{ "code": "glo", "name": "Glo" },
{ "code": "9mobile", "name": "9mobile" }
]
},
"message": "OK",
"code": "OK"
}Error
json
{ "success": false, "data": null, "message": "API key required", "code": "AUTH_REQUIRED" }Give this to your coding agent
prompt
Read https://simconnectng.com/docs/api/list-networks.md and implement "List networks" (GET /api/v1/catalog/networks) in this project.
Read the API key from the SIMCONNECT_KEY environment variable.
Every response is { success, data, message, code }; on an error data is null (or carries data.errors), so branch on code.