Skip to content

Creating an API

Every API in Apiway starts with an OpenAPI specification. You can upload one you’ve already written or let Apiway’s design intelligence help you build one from a business context.

Terminal window
curl -X POST https://core.api.apiway.net/v1/programmes \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Payments API",
"specification": "<base64-encoded OAS>"
}'

Once your spec is uploaded, Apiway processes it through several services:

  1. Specification Parsing

    The OAS is parsed and validated against the OpenAPI 3.x standard. Invalid specs are rejected with specific error details.

  2. Compliance Scoring

    The compliance service evaluates your spec against your organisation’s rules — naming conventions, security requirements, documentation completeness, and more. Each violation has a severity (error, warning, info) and remediation advice.

  3. Design Recommendations

    The recommendations service analyses your spec for patterns and best practices — missing pagination on collections, inconsistent error schemas, security gaps, header conventions, and versioning alignment.

    Recommendations are suggestions, not blockers. They help you improve API quality over time.

  4. Security Analysis

    Apiway inspects the security and securitySchemes sections of your OAS. If your spec defines no security:

    • OAuth 2.0 client credentials is applied automatically
    • Each operation gets a scope based on its operationId
    • Consumers authenticate with client credentials and receive scoped JWTs

    This “secure by default” behaviour ensures no API reaches production without authentication.

Beyond the spec, each API has metadata managed by the platform:

FieldDescription
NameHuman-readable name displayed in the catalogue
Technical nameURL-safe identifier (auto-generated from name, lowercase)
Major versionSemVer major version — drives versioning and entitlement boundaries
DescriptionSummary shown in the developer portal
Business functionOrganisational capability this API serves
ExposureInternal, Partner, or Public — controls visibility in the marketplace

An API moves through these lifecycle states:

StateMeaning
ProspectUploaded, not yet deployed — undergoing review
ActiveDeployed and serving traffic
DeprecatedStill serving traffic but scheduled for retirement
RetiredNo longer available