# AfriSecMaster (AfriTreasury Security Master) API Reference > Authoritative Fixed Income Security Master covering 55 sovereign markets (all 54 African countries + U.S. Treasuries), currently holding 2,097 instruments across Treasury Bills, Fixed Coupon Bonds, Sovereign Eurobonds, FRNs, Inflation-Linked Bonds, Sukuk, and Zero-Coupon Notes. ## Base URLs & Spec Discovery - Primary API Base URL: https://afrisecmaster.io/api/v1 - Dedicated API Subdomain (when mapped): https://api.afrisecmaster.io/api/v1 - OpenAPI 3.1 JSON Spec: https://afrisecmaster.io/openapi.json (also at /api/openapi.json, /api/v1/openapi.json, /.well-known/openapi.json) - Human API Docs: https://afrisecmaster.io/docs (also at /api/docs) ## Authentication All protected `/api/v1/*` endpoints require an active API key supplied via: - Header `X-API-Key: ak_free_...` (recommended) - Header `Authorization: Bearer ak_free_...` - Query fallback `?api_key=ak_free_...` Unauthenticated public endpoints: - `GET /api/v1/health` — liveness & total security/market counts - `GET /api/v1/public/stats` — regional breakdown, plan limits, and sandbox policy - `POST /api/v1/auth/request-access` — register & provision a Free Sandbox API key - `POST /api/v1/auth/login` — retrieve console session token and key metadata ## Free Sandbox Details - Endpoint: `POST https://afrisecmaster.io/api/v1/auth/request-access` - Auto-provisioning currently: ADMIN REVIEW REQUIRED - Sample body: `{"fullName":"Jane Doe","email":"dev@example.com","organization":"Treasury Desk","password":"StrongPassword2026!","useCase":"OMS reference data","requestedPlan":"FREE"}` - Sandbox key prefix: `ak_free_...` - Free scopes: `markets:read`, `securities:read`, `isin_lookup:read` ## Rate Limits & Plans (UTC Daily Reset) - FREE ($0/mo): 30 req/min, 1,000 req/day, max 1 key(s) - PRO ($199/mo): 300 req/min, 50,000 req/day, max 5 keys (adds `eurobonds:read`, `export:bulk`) - INSTITUTIONAL ($950/mo): 2000 req/min, 1,000,000 req/day, max 25 keys (adds `securities:write`, `ingestion:trigger`, `webhooks:alerts`) - Response headers: `X-RateLimit-Limit`, `X-RateLimit-Remaining`, `X-Plan-Tier`, and `Retry-After` on HTTP 429. ## Key Read & Search Endpoints 1. `GET /api/v1/securities` Query parameters: - `marketCode` (ISO2, e.g. `KE`, `NG`, `CI`, `ZA`, `GH`, `US`) - `country` (country name, ISO2, or ISO3, e.g. `Kenya` or `KEN`) - `isin` (exact or partial 12-char ISIN) - `region` (`U.S. Treasury`, `North Africa`, `West Africa (UEMOA)`, `West Africa (Non-UEMOA)`, `East Africa`, `Southern Africa`, `Central Africa (CEMAC)`, `Central & Island Africa`) - `instrumentType` (`T_BILL`, `FIXED_BOND`, `FRN`, `INFLATION_LINKED`, `SUKUK`, `ZERO_COUPON`) - `status` (`ACTIVE`, `MATURED`, `PENDING_APPROVAL`, `DRAFT`, `REJECTED`) - `q` (free-text across ISIN, CUSIP, ticker, issuerName, marketCode, country, localCode) Response: `{ "count": number, "securities": SecurityMasterRecord[] }` 2. `GET /api/v1/securities/by-isin/{isin}` Direct lookup by 12-character ISO 6166 ISIN (e.g. `KE9910008433`). Response: `{ "security": SecurityMasterRecord, "market": MarketConvention }` 3. `GET /api/v1/securities/{id}` Lookup by internal security UUID. 4. `GET /api/v1/markets` & `GET /api/v1/markets/{iso2}` Returns sovereign market conventions (day count, frequency, T+N settlement, central bank, CSD, withholding tax, Bloomberg curve code) for all 55 markets. 5. `GET /api/v1/securities/export` (PRO+ `export:bulk`) Bulk JSON export (optional `?marketCode=KE`). ## SecurityMasterRecord Fields - `id` (uuid), `isin` (12-char string), `cusip` (string | null), `localCode` (string | null) - `ticker` (string), `issuerName` (string), `marketCode` (ISO2), `instrumentType`, `currency` (ISO 4217) - `issueDate`, `datedDate`, `firstCouponDate`, `maturityDate` (YYYY-MM-DD) - `couponRatePct` (number), `spreadBps` (number | null), `benchmarkIndex` (string | null) - `dayCount` (`ACT/ACT_ICMA` | `ACT/365` | `ACT/360` | `30/360` | `ACT/ACT_ISDA`) - `couponFrequency` (`ZERO` | `ANNUAL` | `SEMI_ANNUAL` | `QUARTERLY`) - `settlementDays` (integer), `minDenomination` (number) - `authorizedAmount` (number), `outstandingAmount` (number), `indicativeYieldPct` (number | null), `cleanPrice` (number | null) - `status` (`ACTIVE` | `MATURED` | `PENDING_APPROVAL` | `DRAFT` | `REJECTED`) - `sourceSystem`, `tranches` (SecurityTranche[]), `auditLog` (MakerCheckerAuditEntry[])