Join our Newsletter — 33% off our NHI Course
Home› Guides› API Inventory Template: Endpoints, Owners, Auth Methods and…
Template Web & API Security

API Inventory Template: Endpoints, Owners, Auth Methods and Data Classes

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 14 November 2026 13 min read
On this page

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

FieldEntry
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.

#FieldAllowed values or formatExample
2.1API IDUnique, never reused[API-0142]
2.2API name and business purposeOne sentence a non-engineer can read[Customer Accounts API: returns account and plan details to the mobile app]
2.3StyleREST, GraphQL, gRPC, SOAP, WebSocket, webhook (outbound)[REST]
2.4VersionMajor version as exposed to callers[v2]
2.5EnvironmentProduction, pre-production, test, development[Production]
2.6Base URL and hostnamesEvery hostname that serves this version, including aliases[https://api.example.com/accounts/v2]
2.7Network audiencePublic internet, partner (allowlisted), internal, private (service to service only)[Public]
2.8Front doorGateway, WAF, service mesh, direct[Gateway: [name]; WAF: [policy]]
2.9HostingCloud account or subscription, cluster, region[aws:123456789012 / eu-west-2 / eks-prod-1]
2.10Business ownerNamed person accountable for the data and the decision to expose it[Name]
2.11Technical ownerNamed person or team who can change and fix it[Team, on-call alias]
2.12Specification locationPath to the machine-readable contract[repo/accounts-api/openapi.yaml at tag v2.7.0]
2.13Specification generated in CIYes, no[Yes]
2.14Lifecycle statePlanned, active, deprecated, retiring, retired[Active]
2.15Highest data class returned or acceptedFrom your scheme, e.g. Public, Internal, Confidential, Restricted[Restricted]
2.16Record last verifiedDate 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.

MethodPath or operationAuth scheme and scopeObject-level checkData classes in responseRate limitDeprecated
[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

MethodRecord these fieldsReview trigger
OAuth 2.0 / OpenID Connect access tokenAuthorisation server, token format (JWT or opaque), audience value, scopes, token lifetime, sender constraint (mTLS or DPoP) if anyScopes broader than the operations in section 3
Mutual TLSIssuing CA, certificate subject pattern, expiry monitoring ownerCertificates from a CA you do not control
API keyWhere keys are issued, how they are stored by callers, rotation interval, whether keys are scoped per clientShared keys or no rotation date
HTTP Basic or static bearerJustification and migration dateAlways: treat as an exception with an expiry
None (anonymous)Why anonymous access is intended; data class must be PublicAny 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 accountTypeOwnerCredential type and locationScopes grantedCredential expiry or rotation dateLast 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 classExample fieldsDirectionRecipientsLegal or contractual basisApproved 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

#FieldEntry
6.1Date first exposed[date]
6.2Versions currently live (all environments)[v1 (deprecated), v2]
6.3Deprecation announced and how callers were told[date; Deprecation and Sunset response headers, portal notice, partner email]
6.4Sunset date for each older version[date]
6.5Security fixes in newer versions and the decision for older ones[Backported / older version retired early / risk accepted by [name] until [date]]
6.6Older versions protected by the same gateway, WAF and monitoring as current[Yes / no]
6.7Retirement 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 APIPurposeCredential and where storedData sentData received and how it is validatedOwnerContract 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.

SourceWhat it findsWhat it missesLast run and result
API gateway and ingress route exportsEvery route published through the front doorAPIs that bypass the gateway[date; n routes, n unmatched]
Specification repositories and CI artefactsDocumented contracts and versionsUndocumented endpoints in code[...]
Traffic analysis (gateway logs, mesh telemetry, WAF logs)Endpoints actually receiving calls, including undocumented onesIdle but reachable hosts[...]
External attack surface scan and certificate transparency logsInternet-facing hostnames, including forgotten onesInternal APIs[...]
Cloud provider inventories (API gateways, load balancers, functions)Resources created outside the platform teamOn-premises services[...]
Code scanning for route definitionsEndpoints declared in sourceRuntime-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

FindingAPI IDSeverityOwnerDue dateStatus
[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

  1. 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.
  2. 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.
  3. 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.
  4. Reconcile against independent sources: run the section 8 sources and work every unmatched item. Repeat [monthly] until the unmatched count is stable, then [quarterly].
  5. 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

FrameworkReferenceWhat this template evidences
OWASP API Security Top 10 2023API9:2023 Improper Inventory ManagementHost, version, environment and audience records; data flow inventory; retirement plan
NIST CSF 2.0ID.AM-02, ID.AM-03, ID.AM-07Inventory of services; authorised data flows; data inventories with metadata
NIST SP 800-53 Rev. 5CM-8 System Component Inventory; CM-7 Least FunctionalityComponent inventory with owners; removal of unneeded endpoints and versions
OWASP ASVS 5.0V13.1.1; V13.4.5Documented communication needs and external services; internal API documentation not exposed unless intended
MITRE ATT&CKT1190 Exploit Public-Facing ApplicationKnowing every public-facing API so it can be patched, tested and monitored

Standards and references

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.

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.