You cannot protect, test or retire an API that nobody has written down, and most organisations run more API hosts, versions and integrations than their documentation shows. This template is a fillable API register: one record per API and version, with the endpoint, the environment, the accountable owner, the authentication method and the credential that calls it, the data classes it returns, and its lifecycle state. It is built around the inventory requirements in OWASP API9:2023 Improper Inventory Management and maps to NIST CSF 2.0 ID.AM-02 and NIST SP 800-53 CM-8. It is written for API platform teams, application security engineers and the people who must answer an auditor's question "which APIs return customer data, and who owns them?". For the wider programme see the API Security Guide; for per-API design and build checks use the API Security Checklist. This page is the register that both of them assume exists.
How to use this template
- Replace every [placeholder] with your own values. Keep the field names: consistent names let you merge records from gateways, specification repositories and discovery tools without manual mapping.
- Create one record per API per major version per environment. OWASP API9:2023 treats environment, network audience and version as the minimum facts for every API host, so a v1 and a v2 of the same service, or a production and a staging host, are separate records.
- Fill section 2 (core record) for every API, sections 3 to 6 for every API that is externally reachable or handles Confidential or Restricted data, and section 7 for every third-party API you consume.
- Hold the register where it can be queried and versioned: a CMDB class, a developer portal catalogue or a repository of structured files. A spreadsheet is acceptable for a first pass but decays quickly.
- Review the whole register [quarterly], and update a record within [5 working days] of any change to owner, authentication, data class or lifecycle state.
1. Register control record
| Field | Entry |
|---|---|
| Register owner (accountable) | [Name, role, e.g. Head of API Platform] |
| Register custodian (maintains it) | [Team] |
| Systems of record feeding the register | [API gateways, specification repository, service mesh, cloud accounts, discovery tool] |
| Scope | [All HTTP-based APIs: REST, GraphQL, gRPC, SOAP, WebSocket; internal, partner and public; first and third party] |
| Out of scope and why | [e.g. in-process library interfaces] |
| Last full reconciliation | [Date], [reviewer] |
| Classification scheme used for data classes | [Link to your scheme]; see the Data Classification Policy Template |
2. Core API record (every API)
These fields answer the OWASP "documentation blindspot" questions: what the host is for, which environment it runs in, who should reach it and which version is running.
| # | Field | Allowed values or format | Example |
|---|---|---|---|
| 2.1 | API ID | Unique, never reused | [API-0142] |
| 2.2 | API name and business purpose | One sentence a non-engineer can read | [Customer Accounts API: returns account and plan details to the mobile app] |
| 2.3 | Style | REST, GraphQL, gRPC, SOAP, WebSocket, webhook (outbound) | [REST] |
| 2.4 | Version | Major version as exposed to callers | [v2] |
| 2.5 | Environment | Production, pre-production, test, development | [Production] |
| 2.6 | Base URL and hostnames | Every hostname that serves this version, including aliases | [https://api.example.com/accounts/v2] |
| 2.7 | Network audience | Public internet, partner (allowlisted), internal, private (service to service only) | [Public] |
| 2.8 | Front door | Gateway, WAF, service mesh, direct | [Gateway: [name]; WAF: [policy]] |
| 2.9 | Hosting | Cloud account or subscription, cluster, region | [aws:123456789012 / eu-west-2 / eks-prod-1] |
| 2.10 | Business owner | Named person accountable for the data and the decision to expose it | [Name] |
| 2.11 | Technical owner | Named person or team who can change and fix it | [Team, on-call alias] |
| 2.12 | Specification location | Path to the machine-readable contract | [repo/accounts-api/openapi.yaml at tag v2.7.0] |
| 2.13 | Specification generated in CI | Yes, no | [Yes] |
| 2.14 | Lifecycle state | Planned, active, deprecated, retiring, retired | [Active] |
| 2.15 | Highest data class returned or accepted | From your scheme, e.g. Public, Internal, Confidential, Restricted | [Restricted] |
| 2.16 | Record last verified | Date and source of verification | [2026-11-03, gateway export] |
Owner fields hold people or teams, never a distribution list with no named lead. An API whose owner has left is treated as unowned until reassigned. The difference between undocumented live APIs and forgotten old versions is covered in Shadow APIs vs Zombie APIs.
3. Endpoint and operation detail
For APIs with a specification, generate this table from it rather than typing it. OWASP API9:2023 recommends generating documentation from open standards as part of the CI/CD pipeline; the OpenAPI Specification (v3.2.1 at the time of writing) provides an operation-level deprecated flag, a security requirement per operation and specification extensions for your own metadata, so fields such as owner and data class can live in the contract as x- properties. See the OpenAPI Specification Security Guide.
| Method | Path or operation | Auth scheme and scope | Object-level check | Data classes in response | Rate limit | Deprecated |
|---|---|---|---|---|---|---|
| [GET] | [/accounts/{accountId}] | [OAuth 2.0, scope accounts:read] | [Caller must own accountId] | [PII: name, address, date of birth] | [100/min per client] | [No] |
| [PATCH] | [/accounts/{accountId}/contact] | [OAuth 2.0, scope accounts:write, step-up] | [Caller must own accountId] | [PII] | [10/min per client] | [No] |
| [GET] | [/v1/accounts/search] | [API key] | [None recorded] | [PII, bulk] | [None] | [Yes, sunset [date]] |
| [query] | [GraphQL: account] | [...] | [...] | [...] | [Depth and cost limit] | [...] |
The "Object-level check" column is deliberate: recording who may read which object, per operation, surfaces broken object level authorisation before a tester does. See the OWASP API Top 10 API1 Broken Object Level Authorization Guide. An empty cell or "None recorded" against a Confidential or Restricted response is a finding, not a gap to leave.
4. Authentication and calling identities
Every API is called by something, and most callers are non-human: mobile app backends, partner systems, scheduled jobs, other microservices and increasingly AI agents. Record the inbound authentication method and, separately, each identity that holds a credential for it.
4a. Inbound authentication
| Method | Record these fields | Review trigger |
|---|---|---|
| OAuth 2.0 / OpenID Connect access token | Authorisation server, token format (JWT or opaque), audience value, scopes, token lifetime, sender constraint (mTLS or DPoP) if any | Scopes broader than the operations in section 3 |
| Mutual TLS | Issuing CA, certificate subject pattern, expiry monitoring owner | Certificates from a CA you do not control |
| API key | Where keys are issued, how they are stored by callers, rotation interval, whether keys are scoped per client | Shared keys or no rotation date |
| HTTP Basic or static bearer | Justification and migration date | Always: treat as an exception with an expiry |
| None (anonymous) | Why anonymous access is intended; data class must be Public | Any non-Public data class |
For key handling see the API Key Management Guide; for token validation see the JWT Security Guide.
4b. Calling identities (one row per client)
| Client ID or service account | Type | Owner | Credential type and location | Scopes granted | Credential expiry or rotation date | Last used |
|---|---|---|---|---|---|---|
| [mobile-backend-prod] | [Workload] | [Team] | [Client secret in [vault path]] | [accounts:read] | [2027-02-01] | [date] |
| [partner-billing] | [Partner] | [Partner manager] | [mTLS certificate] | [accounts:read, invoices:write] | [date] | [date] |
| [support-agent-ai] | [AI agent] | [Name] | [Short-lived token from [broker]] | [accounts:read (own customer only)] | [Per session] | [date] |
Link each row to the identity's entry in your service account register so a credential can be traced from API to owner and back. See the Service Account Inventory Template. A client unused for [90] days is a revocation candidate.
5. Data classes and data flows
OWASP API9:2023 describes a "data flow blindspot": an API that shares sensitive data with a third party with no business justification, no inventory of the flow, or no visibility of which data types are shared. Record each class the API handles and where it goes.
| Data class | Example fields | Direction | Recipients | Legal or contractual basis | Approved by and date |
|---|---|---|---|---|---|
| [Personal data] | [Name, email, date of birth] | [Out] | [Mobile app; partner-billing] | [Contract; DPA ref [ ]] | [Name, date] |
| [Payment data] | [Masked PAN] | [Out] | [...] | [PCI DSS scope: yes or no] | [...] |
| [Credentials or tokens] | [Refresh tokens] | [In] | [...] | [...] | [...] |
| [Health, financial or other special category] | [...] | [...] | [...] | [...] | [...] |
Two rules make this section useful. First, record what the API returns, not what the client screen displays: excessive data exposure happens in the response body. Second, a non-production API that holds production data gets the same data class and the same controls as production, which is what OWASP recommends when production data in test cannot be avoided.
6. Lifecycle, versioning and retirement
| # | Field | Entry |
|---|---|---|
| 6.1 | Date first exposed | [date] |
| 6.2 | Versions currently live (all environments) | [v1 (deprecated), v2] |
| 6.3 | Deprecation announced and how callers were told | [date; Deprecation and Sunset response headers, portal notice, partner email] |
| 6.4 | Sunset date for each older version | [date] |
| 6.5 | Security fixes in newer versions and the decision for older ones | [Backported / older version retired early / risk accepted by [name] until [date]] |
| 6.6 | Older versions protected by the same gateway, WAF and monitoring as current | [Yes / no] |
| 6.7 | Retirement evidence | [DNS removed, gateway route deleted, credentials revoked, traffic at zero for [30] days, ticket ref] |
Row 6.6 reflects a specific OWASP prevention point: protection measures must cover every exposed version, not only the current production one. OWASP's first API9 scenario is a beta host running the same password reset function without the rate limiting that protected the main host.
7. Third-party APIs consumed
| Provider and API | Purpose | Credential and where stored | Data sent | Data received and how it is validated | Owner | Contract or DPA ref |
|---|---|---|---|---|---|---|
| [Payments provider: charges API] | [Card payments] | [Secret key in [vault path]] | [Amount, token] | [Status; schema validated] | [Team] | [ref] |
| [Address lookup] | [Checkout] | [API key] | [Postcode] | [Address list; length limits applied] | [Team] | [ref] |
Consumed APIs carry their own risk: data from them must be validated like user input. See the OWASP API Top 10 API10 Unsafe Consumption of APIs Guide.
8. Discovery sources and reconciliation
A register filled from memory misses exactly the APIs attackers find. OWASP notes that DNS enumeration and internet search engines are enough to find unnecessarily exposed hosts. Reconcile the register against independent sources and record the result.
| Source | What it finds | What it misses | Last run and result |
|---|---|---|---|
| API gateway and ingress route exports | Every route published through the front door | APIs that bypass the gateway | [date; n routes, n unmatched] |
| Specification repositories and CI artefacts | Documented contracts and versions | Undocumented endpoints in code | [...] |
| Traffic analysis (gateway logs, mesh telemetry, WAF logs) | Endpoints actually receiving calls, including undocumented ones | Idle but reachable hosts | [...] |
| External attack surface scan and certificate transparency logs | Internet-facing hostnames, including forgotten ones | Internal APIs | [...] |
| Cloud provider inventories (API gateways, load balancers, functions) | Resources created outside the platform team | On-premises services | [...] |
| Code scanning for route definitions | Endpoints declared in source | Runtime-generated routes | [...] |
Every unmatched item becomes either a new record with an owner, or a removal ticket. For the discovery tooling decision see the Attack Surface Management Guide.
9. Findings and sign-off
| Finding | API ID | Severity | Owner | Due date | Status |
|---|---|---|---|---|---|
| [Unowned API: no technical owner] | [ ] | [High] | [ ] | [ ] | [Open] |
| [Deprecated version still receiving traffic past sunset] | [ ] | [ ] | [ ] | [ ] | [ ] |
| [Restricted data returned with no object-level check recorded] | [ ] | [ ] | [ ] | [ ] | [ ] |
Signed off by: [register owner], [date]. Next review: [date].
Implementation guidance
Rollout in five steps
- Seed from the gateway: export every route from each gateway and ingress controller and create a core record (section 2) per API, version and environment. This is usually the largest and most reliable first source.
- Assign owners before adding detail: chase owners for every record within [two weeks]. An unowned API stays on the findings list until claimed or scheduled for removal.
- Add data classes and callers for external and sensitive APIs: complete sections 4 and 5 for public, partner and Restricted-data APIs first; internal low-risk APIs can follow.
- Reconcile against independent sources: run the section 8 sources and work every unmatched item. Repeat [monthly] until the unmatched count is stable, then [quarterly].
- Make the register a gate: require an inventory record ID before a new gateway route, DNS name or production credential is issued, and require retirement evidence (6.7) before a record closes. This is what keeps the register current after the initial effort.
Decision guidance
- Spreadsheet, CMDB or catalogue: a small organisation with under [50] APIs can run this in a version-controlled spreadsheet or YAML files. Larger estates need the register in a CMDB class or developer portal catalogue fed automatically by the gateway and CI, because manual updates will not keep pace with deployments.
- Contract-first or traffic-first: where teams already publish OpenAPI or GraphQL schemas, generate sections 2 and 3 from the contracts and use traffic only for reconciliation. Where they do not, start from traffic and gateway data and require a contract as each API is next changed.
- How much per-endpoint detail: record section 3 per operation for APIs returning Confidential or Restricted data; for others, API-level fields are enough.
Metrics
- Ownership coverage: percentage of records with a current named business and technical owner (target [100%]).
- Specification coverage: percentage of active APIs with a machine-readable contract generated in CI.
- Discovery drift: count of endpoints seen in traffic or external scans with no record, per reconciliation run (trend towards zero).
- Version debt: number of deprecated versions still serving traffic after their sunset date.
- Caller hygiene: percentage of calling identities with an owner and a rotation or expiry date, and count unused for [90] days.
Common failure patterns
- Inventory equals the gateway: APIs deployed straight onto a load balancer or function URL never appear. Section 8 exists to catch them.
- One record for all versions: old versions and beta hosts disappear from view while still reachable, which is exactly the OWASP API9 scenario.
- Data class recorded from the user interface: the API returns far more fields than the screen shows, and the register understates the risk.
- Callers not recorded: when a credential leaks nobody knows which APIs it opens. In the T-Mobile API breach, one machine-facing API returned customer records to an unauthorised caller for about six weeks before detection; a register tying each customer-data API to named clients and expected call volumes gives monitoring a baseline to alert against.
- No retirement evidence: records are marked retired while DNS and routes remain live.
Framework mapping
| Framework | Reference | What this template evidences |
|---|---|---|
| OWASP API Security Top 10 2023 | API9:2023 Improper Inventory Management | Host, version, environment and audience records; data flow inventory; retirement plan |
| NIST CSF 2.0 | ID.AM-02, ID.AM-03, ID.AM-07 | Inventory of services; authorised data flows; data inventories with metadata |
| NIST SP 800-53 Rev. 5 | CM-8 System Component Inventory; CM-7 Least Functionality | Component inventory with owners; removal of unneeded endpoints and versions |
| OWASP ASVS 5.0 | V13.1.1; V13.4.5 | Documented communication needs and external services; internal API documentation not exposed unless intended |
| MITRE ATT&CK | T1190 Exploit Public-Facing Application | Knowing every public-facing API so it can be patched, tested and monitored |
Standards and references
- OWASP: API9:2023 Improper Inventory Management
- OWASP: API Security Top 10 2023
- OpenAPI Initiative: OpenAPI Specification
- NIST: SP 800-53 Rev. 5 Security and Privacy Controls
- NIST: Cybersecurity Framework 2.0
- OWASP: Application Security Verification Standard 5.0
- MITRE ATT&CK: T1190 Exploit Public-Facing Application
Related NHI Mgmt Group resources: OWASP API Top 10 API9 Improper Inventory Management Guide, API Security Policy Template, Service Account Inventory Template, API Security Checklist.