AfriSecMaster Public API Contract (v1)
Canonical fixed-income reference data across all 54 African sovereign markets and U.S. Treasuries — covering Treasury Bills, Fixed Coupon Bonds, Sovereign Eurobonds, FRNs, Inflation-Linked Bonds, Sukuk, and Zero-Coupon Notes.
1. Machine-Readable Specification & Discovery
- OpenAPI 3.1 JSON:
https://afrisecmaster.io/openapi.json(also mirrored at/api/openapi.json,/api/v1/openapi.json, and/.well-known/openapi.json) - LLM / Integration Markdown Spec:
https://afrisecmaster.io/llms.txt(and/docs.md) - HTML Documentation:
https://afrisecmaster.io/docs(and/api/docs) - Last CSD Ingestion Sync:
2026-11-29T11:01:46.606Z
2. Authentication Format
Every protected /api/v1/* endpoint requires an active API key issued to your account:
- Header (Recommended):
X-API-Key: ak_free_...(orak_live_...) - Bearer Header:
Authorization: Bearer ak_free_... - Query Parameter Fallback:
?api_key=ak_free_...
3. Sandbox Access Provisioning (Free Tier)
New developers or platforms can obtain a Free Sandbox key programmatically or via the portal at https://afrisecmaster.io:
curl -X POST "https://afrisecmaster.io/api/v1/auth/request-access" \
-H "Content-Type: application/json" \
-d '{
"fullName": "Integration Engineering",
"email": "[email protected]",
"organization": "Your Platform",
"password": "StrongPassword2026!",
"useCase": "Fixed Income Security Master integration",
"requestedPlan": "FREE"
}'
When automatic free-tier approval is enabled, HTTP 201 immediately returns status: "APPROVED" along with rawApiKey (ak_free_...) and sessionToken.
4. Rate Limits & Commercial Plans
| Plan | Price | Burst Limit | Daily Quota (UTC) | Max Keys | Entitlement Scopes |
|---|---|---|---|---|---|
| FREE | $0/mo | 30 req/min | 1,000 req/day | 1 | markets:read, securities:read, isin_lookup:read |
| PRO | $199/mo | 300 req/min | 50,000 req/day | 5 | markets:read, securities:read, isin_lookup:read, eurobonds:read, export:bulk |
| INSTITUTIONAL | $950/mo | 2000 req/min | 1,000,000 req/day | 25 | markets:read, securities:read, isin_lookup:read, eurobonds:read, export:bulk, securities:write, ingestion:trigger, webhooks:alerts |
Authenticated responses return X-RateLimit-Limit, X-RateLimit-Remaining, and X-Plan-Tier headers (plus Retry-After on HTTP 429).
5. Search & Reference Endpoints
| Endpoint | Auth / Scope | Parameters & Purpose |
|---|---|---|
GET /api/v1/health |
Public | Service health, total securities, market count, storage mode. |
GET /api/v1/public/stats |
Public | Regional breakdown, plan catalog, sandbox auto-approval status. |
POST /api/v1/auth/request-access |
Public | Self-service registration & instant Free Sandbox API key provisioning. |
GET /api/v1/securities |
securities:read |
Query by marketCode, country, isin, region, instrumentType, status, q. |
GET /api/v1/securities/by-isin/{isin} |
isin_lookup:read |
Direct lookup by 12-char ISO 6166 ISIN (returns { security, market }). |
GET /api/v1/securities/{id} |
securities:read |
Retrieve single security & market conventions by UUID. |
GET /api/v1/markets |
markets:read |
List all 55 market conventions (region, q filters). |
GET /api/v1/markets/{iso2} |
markets:read |
Market conventions for a sovereign ISO2 code (e.g. KE, CI, NG, US). |
GET /api/v1/securities/export |
export:bulk (PRO+) |
Bulk JSON export across all 55 markets or a single ?marketCode=. |
6. Sample Query & Response Schema
curl -H "X-API-Key: ak_free_YOUR_KEY" \ "https://afrisecmaster.io/api/v1/securities?marketCode=KE&instrumentType=T_BILL"
{
"count": 94,
"securities": [
{
"id": "8e3b2f41-6b19-4a2b-9f11-2a0e1d4c5b6a",
"isin": "KE9910008433",
"cusip": null,
"localCode": "TB-2653-182D",
"ticker": "KETB 182D 05/27",
"issuerName": "Republic of Kenya — Central Bank of Kenya (DhowCSD)",
"marketCode": "KE",
"instrumentType": "T_BILL",
"currency": "KES",
"issueDate": "2026-11-16",
"datedDate": "2026-11-16",
"firstCouponDate": null,
"maturityDate": "2027-05-17",
"couponRatePct": 0,
"dayCount": "ACT/365",
"couponFrequency": "ZERO",
"settlementDays": 2,
"minDenomination": 50000,
"authorizedAmount": 7500000000,
"outstandingAmount": 7500000000,
"indicativeYieldPct": 7.45,
"cleanPrice": 96.412,
"status": "ACTIVE",
"sourceSystem": "AFRICAN_CSD_FEED",
"tranches": [
{
"trancheNumber": 1,
"trancheType": "ORIGINAL",
"auctionDate": "2026-11-16",
"issuedAmount": 7500000000,
"awardedYieldPct": 7.45,
"stopOutPrice": 96.412
}
]
}
]
}
7. Market Coverage (55 Sovereign Markets)
Includes U.S. Treasury (US), North Africa (MA, EG, TN, DZ, LY, SD), West Africa UEMOA (BJ, BF, CI, GW, ML, NE, SN, TG), West Africa Non-UEMOA (NG, GH, GM, GN, LR, SL, CV, MR), East Africa (KE, UG, TZ, RW, BI, ET, DJ, ER, SO, SS), Southern Africa (ZA, NA, BW, LS, SZ, ZM, MW, MZ, AO, ZW), Central Africa CEMAC (CM, CF, TD, CG, GQ, GA), and Central & Island Africa (CD, MU, SC, MG, KM, ST).