Featured
API Governance
Principles for Effective Enterprise API Governance
Robust API governance is at the heart of any successful API program, however it is a HUGE topic with enormous scope that is typically underestimated and under-resourced in large organisations. Whether you are starting from scratch, or trying to improve the status quo, API governance will be built up iteratively over time — this article briefly discusses some of the many facets of API governance to help you prioritise next steps.
This discussion will cover the following topics:
- The API Governance Organisation
- API Governance Foundations and Tactics
- Strategic Governance
- API Lifecycle Governance
- Runtime Governance
1 . The API Governance Organisation
A key feature of a mature API governance framework is autonomous management of the API lifecycle by API product teams, under the guidance of business owners and domain architects.
Individual teams and business domains, however, operate within a broader organisational context and will be expected to align with broader API program goals and constraints. A federated governance structure is required to enable domain autonomy with ‘just enough’ governance to ensure the ongoing success of the enterprise API platform and program.
The API governance organisation will be responsible for the operating model: building and incrementally maturing platform operational capabilities, the API program and the developer community.
Operational Capabilities
Operational capabilities managed by a centralised API competency may cover the following:
- API Strategy and Governance. Including API strategy, roadmap, interoperability framework, security governance framework, technical-governance strategies. Facilitating business and technology collaboration, prioritising resources & investment. Governing the API Program, API Products, API portal and API platforms.
- API Platform Management. Responsibility for the API Platform Architecture & Roadmap, platform operating procedures, SLAs, continuous improvement, infrastructure-as-code, security platform integration, policy-as-code controls and self-service policy options in alignment with enterprise patterns.
- API Product Delivery. Establishing reference architecture, standards, patterns, protocols and exemplars. API consultancy services, governing API design practice, API validation and curation of the API catalog. Facilitating self-service deployment, observability and support of APIs by product teams. Facilitating API Release Governance.
- API Consumer Engagement. Providing self-service single-pane-of-glass onboarding, discovery and subscription. Facilitating early and continuous client engagement. Promoting API Products to consumer communities via API product announcements, marketing and events. Encouraging and facilitating direct client feedback, engagement and support via self-service channels.
Distribution of Responsibilities
The distribution of design, development and governance functions will vary depending on program maturity, and the model should be expected to evolve over time toward decentralisation, autonomy and self-service.
2 . Governance Foundations
API governance rests on a foundation of policies, processes, patterns and tooling. This is the “what” and “how” of API governance, and a significant amount of focus and engagement will go into establishing these foundations.
‘Minimum-viable-governance’ is a term sometimes used to describe a governance tactic that seeks to apply just-enough governance at just the right time with as little friction as possible. MVG is typically guided and enforced by collaborative tooling, automation and policy-as-code to ensure minimal blocking touchpoints. In order to achieve this, a governance framework that spans all facets of API design, implementation, security, release, operation and retirement is required.
2.1 API Quality Foundations
API Design Standards, Patterns and Blueprints
API Design Standards, Patterns and Blueprints improve the consistency, stability, generality and usability of business resource APIs. Robust quality standards are key to self-service API discovery and re-use.
Standards should cover (at least):
- API Lifecycle Model
- Version management
- Naming, path and payload conventions
- Error handling & standard response types
- IAM authorization blueprints (OAuth2/OIDC)
- Documentation & validation rules
- Testing practices
In some organisations enterprise governance is applied to domain data models (and by extension, API schema)—governance & engagement requirements should be clearly reflected in API design & development guidelines and governance processes.
Give your standards room to evolve along with the API maturity of your organisation — start with focussed and achievable API quality goals. Standards or rules defined as mandatory must imply consequences (such as blocked deployment) for non-compliance, and even failure to meet non-mandatory standards would ideally be followed up by an API quality team. Consider whether your team has the time and tools to follow up with API dev teams when a particular standard or principle is contravened.
Enterprise API standards (particularly those invoking RFC 2119 MUST/SHOULD keywords) should be captured and enforced by an OpenAPI linting (validation) ruleset. The Spectral OpenAPI ruleset is supported by the open-source Spectral and Vacuum OpenAPI document linters, and may be easily modified or extended to provide automated API document quality governance in alignment with API design guidance.
Engaging widely with developers and enterprise stakeholders when developing standards will ensure buy-in and raise awareness — both are extremely important. In a “federated” environment, such as a partner network, API standards may be collaboratively managed in a public/shared repository such as GitHub (consider Pages and Workflows features).
2.2 API Security Foundations
There will be a number of stakeholders invested in API security in a large organization.
Enterprise IAM teams will have published endorsed security patterns covering user and service authentication and authorization, including OAuth2 & OIDC, in different contexts (hybrid cloud, internal\external).
Policies and controls will be defined by an enterprise Information Rights Management (IRM) governing body to govern data managed by a business service, covering security classification, integrity and confidentiality, storage/persistence, limitation and minimisation, and data sovereignty.
API security policies may have been already established within your organisation — whether this is the case or not, seek to actively participate in ongoing development and evolution of enterprise API security policies and the mandate behind them. There should be transparent traceability & mapping of API security controls to enterprise security policies. Controls should be codified and applied by policy-as-code where possible, and periodically audited with configuration scanning and penetration testing.
Secure By Design
Security must be addressed at each and every phase of the API Lifecycle. An API security governance framework must must clearly articulate requirements and responsibilities at each stage of the API Lifecycle, and use a variety of levers to ensure compliance. For example:
- Data is classified and information-rights-management (IRM) / regulatory controls identified during the design and modelling phase
- API development guidelines outline controls, patterns and tactics to be employed by developers to secure APIs
- API specification linting and policy policy-as-code validation is embedded into design tools and applied by CICD pipelines
- Enforced API policy-as-code and runtime gateway controls are directly traceable to enterprise IRM/security/regulatory controls and are actively maintained.
- API testing incorporates OWASP API vulnerability testing as well as targeted testing against applicable enterprise security controls
Security-focused enterprise controls, a process of security by design, and a commitment to security testing are crucial to underpinning robust API security.
2.3 Technology Foundations
An API Management Framework covers the collection of components that together enable management of APIs by autonomous teams within well-defined guardrails.
API Management Platform
- Developer Portal Service: provides client developers a single point-of-entry for API discovery, self-registration of the client application, API key and credential management, self-subscription to APIs and client-side analytics. Portal services provide a means for client developers to engage with API product teams and vice-versa.
- API Management Service: facilitates the publishing of APIs, supports API lifecycle management (including versioning and deprecation) and manages API subscription and approval workflows. The API Management platform will manage APIs deployed to an API Gateway, and expose its own APIs for CICD integration.
- API Gateways: implement API policy and proxy connections to the business APIs behind the gateway. Provides resilience, security and visibility, including threat protection, authentication & authorization, payload validation, rate-limiting, caching, logging and audit.
Devops, Testing and Release Management
- API DevOps framework: provides code-first API configuration management, facilitating a domain autonomous approach to DevOps via a team’s own pipelines. Templated API Gateway configuration, such as API security schemes and rate limiting, may be applied. API specifications may be linted to enforce compliance with standards.
API Security, IAM, Analytics, Cyber Security
- Analytics Service: provides monitoring and operational insights such as usage patterns and trends and performance metrics such as latency and error rates. Dashboards support self-service by client, provider, platform and enterprise users.
- Observability platform integration with automation tools, intelligent systems and IT Service Management (ITSM) platforms enhance timely identification, resolution and escalation of issues.
- IAM: Close integration with enterprise Identity and Access Management (IAM) platforms is a key component of API security architecture. Trusted IAM/IDP service (and JWKS caching) configurations are added to API gateways, and a ‘single-pane-of-glass’ client registration process initiated from the API developer portal synchronises client Ids & profiles across IAM and API management platforms (‘DCR’ rfc 7591).
- Audit & SIEM: Audit logs and run-time API authorization failures should be logged to a Security Information and Event Management (SIEM) platform where incidents and patterns can be analysed and appropriately actioned.
3. Strategic Governance
A core responsibility of the API governance program is the realisation of the over-arching API strategy and roadmap.
Strategic governance is enterprise-driven — it sets the conditions for API success and lays the foundation for a rich catalog of coherent, composable API products. The business objectives of the API program will be heavily predicated on enabling client business domains to meet theirs.
Along with building up the API program, communities and catalogs, strategic governance covers the evolution of the enterprise API framework — including; platforms, automation & integrations; workflows & user-journeys; analytics & reporting; policies, standards & blueprints.
3.1 Discovery, Planning and Prioritisation
A culture of self-service and re-use can ONLY evolve when developers have unfettered access to an API catalog of reusable, coherent and composable APIs, covering a critical mass of core business capabilities.
Particularly in the earlier stages of an API program, strategic governance will guide discovery and prioritisation of enterprise APIs with the aim of building up the catalog.
Discovery and demand generation is outside of the API lifecycle, however it is the setup and the initial entry point. The API catalog captures the organisational taxonomy and the API program will work closely with allied business leaders to help bring core business capabilities into the ecosystem. Once onboarded and published, business domains take ownership of this topic, with support from the API program as required.
Planning and Prioritisation of API management roadmap features (including platforms, workflows, automation, standards & patterns) on the journey toward frictionless self-service are prioritised in accordance with demand, evolving organisational objectives and emerging enterprise, security and regulatory requirements
Organisational objectives captured by an enterprise-level process of Management by Objectives, such as OKR (objectives and key results) or a program level Epic Kanban, will ensure commitments are traceable, and priorities are in alignment with strategic goals.
Key stakeholders will include: Enterprise Technology Architects, Enterprise Security Architects, Domain Solution Architects, Program Managers, Product Owners
3.2 API Ecosystems and Community Engagement
Community and Catalog management are at the heart of an API ecosystem and a key determinant of API program success. Communities must be actively engaged (regular announcements, events, training), and a catalog of high quality, composable API products must be iteratively built up.
Get TRGoodwill’s stories in your inbox
Join Medium for free to get updates from this writer.
An organisation may manage multiple API ecosystems encompassing Internal, partner and public API communities. APIs published for consumption by these communities are discovered via separate catalogs and are typically hosted on separate gateways. Governance policies will need to be tailored to each ecosystem in respect to different levels of risk, data sharing mandates, documentation requirements and client and user identity assurance.
Internal API Catalog & Community
The Internal API catalog is aimed at developers of internal applications consuming enterprise APIs. Client developer portals and published APIs are available from enterprise-controlled networks, potentially spanning multiple sites, cloud providers and regions.
External API Catalog & Community
The External API catalog is exposed to public (‘citizen’) and external institutional application developers. APIs modelled for external consumers are purposefully abstracted to prevent over-exposure of data and business models.
Partner API Catalog(s) & Community
A third ‘trusted partner’ category may encompass more than one catalog — a trusted partner community is typically defined by a community of OIDC/SAML federated trust, or a trusted network.
4. API Lifecycle Governance
API Lifecycle Governance covers distinct Design, Build & Release and Runtime lifecycle phases, and is focused on facilitating self-service API lifecycle management by decoupled and autonomous business domains.
Lifecycle governance policies and stage-gates are maintained by enterprise stakeholders, and imposed with a minimum of blocking touch-points with the assistance of collaborative tooling, CI/CD automation, policy-as-code and OpenAPI document linting. API governance policies and enforcement points must be clearly articulated to product teams.
4.1 Design Governance
Enterprise API Design Standards inform the API Design Phase, and ideally API developers will be familiar with design guidelines before an API is designed and developed. However, the maturity and API literacy of development teams will vary and API design, security and quality governance is essential.
An enterprise-guided, domain-oriented API Design Practice will provide opportunity for meaningful and timely input from business and enterprise stakeholders, and improve the security, quality and value of the APIs in your API catalog.
API Design Practice
The quality of the data / REST model has significant impact on the usability, evolvabilty and security of an API. An API Design Practice will cover design strategies, methodologies and tools to maximise stakeholder collaboration and feedback and ensure compliance with organisational standards.
Aspects of a design practice might, for example, include:
- Identification of enterprise stakeholders and applicable processes
- Guidance and tools for hosting collaborative domain-oriented design workshops such as Event Storming as a forum for discovery and validation of models
- REST modelling guidance including references to specific enterprise guidance on concerns such as data lineage, classification, purpose limitation and data minimisation
- Collaborative tooling to allow a diverse group of stakeholders to interact with and contribute to the development of the REST model and API specification, and API specification linting tools/plugins to provide early feedback on conformance to enterprise API standards.
Key Stakeholders will include: Business owner (domain expert), Domain architect, Security architect, Enterprise Data Architect, REST SME, Tech lead / API Developers.
4.2 Build & Release Governance
Build & Release Guidance
An API Developer Playbook aligned to the API Lifecycle Management model provides concrete, step-wise guidance to developers on how to build and deliver high quality, secure APIs that will make a valuable contribution to the API catalog and ecosystem. The API Developer Playbook is closely tailored to a specific enterprise environment, referencing approved and supported enterprise processes, tools, policies and standards.
The playbook should cover the entire API lifecycle — team and API onboarding, API design & development, API testing, publishing & release management, support, evolution and versioning, deprecation and retirement.
Deployment Automation
Code-first CI/CD automation can apply Policy-as-Code controls, enforce mandatory standards with specification document linting, and validate security configurations.
Pipeline deployment and regression testing validates security, function and performance. Testing, client engagement and analytics inform an evaluation of the API resulting in either promotion or rework. The API may loop through several test environments and evaluation checkpoints.
Key stakeholders will include: Business Owners, Release Management, Configuration Management, DevOps Community, Testing Community.
Release Governance
Access to a sandpit/dev environment should present a low barrier to both API publishers and API consumers, allowing teams to experiment rapidly.
Onboarding an autonomous CI-CD pipeline will require tighter governance and accountability. API delivery pipelines are white-listed for promotion through to production, and in order to be white-listed, pipelines must be onboarded and certified, perhaps by release management and/or CI/CD services. Full test coverage is expected. Support is provided by Testing ands DevOps competencies/communities.
The approval of the product owner and/or Release Management may be required before scheduling a release to production.
Managing New API Versions
Semantic versioning should be applied to OpenAPI documents, and captured in the info.version field. The following rules apply:
{MAJOR}.{MINOR}.{PATCH}
- MAJOR version when incompatible or breaking API changes are made,
- MINOR version when functionality is added in a backwards-compatible manner, and
- PATCH version when backwards-compatible bug fixes are made.
Patch and minor version updates may be safely republished without adversely affecting existing consumers (although consumers should be notified when functionality is added), while Introducing a new major API version will impact all consumers. Before deciding to introduce a new major version, API owners should explore all possible alternatives.
The following rules apply to the introduction of a new, breaking version of an API:
- Justify, Document and Socialise.
A decision to introduce a new major version should be documented as an Architecture Decision and teams should ensure that the potential impacts are discussed in agile planning forums, and impacted parties informed.
2. Decouple Cut-over.
The newly deployed version is effectively a new API, and consumers must subscribe to the new API version in order to use it. With each new major version of the API, older versions should be deprecated and maintained for a period to allow existing clients adequate time to cut over to the new version. New clients are not able to subscribe to a deprecated API. A retirement schedule should be communicated to currently subscribed clients.
3. Communicate a Retirement Schedule.
Once existing clients have cut-over to the new version, and/or the scheduled retirement date arrives, the API is retired, and will no longer be available. Clearly defined, well governed and automated processes should be in place to deprecate and retire APIs. API deprecation and client notification is supported by most API Management platforms.
5. Runtime Governance
Runtime governance is driven by the foundational policies and controls captured by the governance organisation. It is facilitated by the API Management platform team in close consultation with enterprise stakeholders.
Runtime Policies/Controls
Some initial disambiguation is necessary here. Architecturally speaking:
- Policies are a statement of strategic intent and are defined by an enterprise security, data and/or legal authority.
- Controls define the application of a policy or policies, and are typically directly traceable to specific information security & regulatory policies.
However… the mechanism with which API Gateways implement controls is commonly called a “gateway policy” or “processing policy”. Let’s keep in mind that in relation to enterprise policies and controls, a gateway policy is in fact a control implementation or enforcement point.
Runtime controls are applied by the API Gateway and IAM platforms, and interactions captured by API monitoring, enterprise logging and SIEM.
Key stakeholders will include: Product Owner, API Platform Team, IAM/IT Security, Cyber Security, Enterprise Monitoring Services
A Published API is actively monitored and supported by the API provider. Client engagement is encouraged via the client portal.
API Gateway Policies
The API Platform team manages run-time gateway policies that implement security controls and monitor enforcement. Mandatory policies might include enforcing HTTPS, JSON or XML threat protection, business schema validation and client application identification. Some policies, such as rate-limits may be optionally configured by API deployment configuration. Decisions will need to be made (and documented) as to which gateway policies will be applied by default (obligatory controls), how to handle exceptional cases, and which optional policies might be configurable by API owners via self-service workflows.
Standard API Gateway HTTP error responses should be defined for gateway policy error conditions. For example, where a rate limit is applied and exceeded, the API Gateway will return an HTTP status code of “429 Too Many Requests”, and unauthorized API calls are rejected with an HTTP “401 Unauthorized” status code.
Runtime API Authorization
Enterprise API Gateways must enforce documented OpenAPI security requirements and validate client API subscription. Depending on the gateway technology, additional steps may be required when deploying APIs to explicitly configure gateway policies to align with OpenAPI security schemes.
APIs may only be called by registered client applications who have subscribed to the API. A client subscription approval workflow should apply by default to APIs classified as sensitive. Clients of secured APIs are identified by an OAuth2 token client_id or OIDC azp claim.
Where defined, OAuth2/OIDC scopes of access are enforced at an operation (path & method) granularity. OIDC tokens may be propagated to the backend with the request to enable API providers to authorize user-level access to individual records — however the pattern needs to be supported by your enterprise security framework, so analyse carefully.
Analytics, Audit and Reporting
API management platforms provide centralised but narrow views of API health & usage. Robust end-to-end observability can be achieved with Distributed tracing. Distributed trace logging (e.g. via the Open Telemetry protocol) to an observability platform can provide:
- Traceable end-to-end visibility of the service context, data flows and dependencies.
- Self-service to detailed incident data, ensuring decreased mean-time-to-resolution and reduced ticket misdirection.
- The ability for internal API consumers to troubleshoot without requiring verbose and potentially un-secure error response messages, allowing secure error response policies to be enforced by API gateways.
Analytics and Feedback Drive Continuous Improvement
API analytics and user feedback may provide insights that shape the evolution of APIs and business processes. In support of this process, user feedback should be facilitated and tracked, API quality reporting captured and shared, and standardised periodic API reporting generated for API business owners and enterprise stakeholders.
Analytics and reporting provides the program and the enterprise with valuable insight into interconnected systems, platform and API bottlenecks, usage volume & trends, and API uptake and re-use. These insights help the program to tell a story about the business value of the platform, and inform roadmap evolution and feature prioritisation.
Wrap-up
A robust API governance framework is central to the success of an API program, but is challenging to design and implement. API governance is a broad topic covering many facets, including the API governance organisation, API standards, security and automation tactics, strategic governance and API lifecycle governance.
Don’t try to boil the ocean, an API governance framework can be built up iteratively over time. Target the most pressing pain points in your organisation, stay flexible and be ready to adapt as the program matures, and organisational support evolves.
Related Articles on Medium
- API Primer: Core Concepts in API Strategy and Architecture | API Central
- API Design Practice. A practical guide to API QA…
- Writing API Design Standards. An 8-step guide to tailoring resource API design standards to your organisational context
- API Documentation Rules. Improving the quality and consistency of APIs with OpenAPI documentation and linting rules
- API Lifecycle Management. Shaping an API lifecycle model for your organisational context
- Tactics to Secure Sensitive APIs | by TRGoodwill | API Central | Medium










