Webflow API and Documentation · API Governance Rules
Webflow API and Documentation API Rules
Spectral linting rules defining API design standards and conventions for Webflow API and Documentation.
26 Rules
error 8
warn 10
info 8
Rule Categories
delete
get
info
no
openapi
operation
parameter
paths
request
response
schema
security
servers
Rules
warn
info-title-webflow-prefix
API title must start with "Webflow" to match provider naming convention.
$.info
warn
info-description-required
API must have a non-empty description.
$.info
error
info-version-required
API info must include a version.
$.info
error
openapi-version-3
Webflow API specs must use OpenAPI 3.x.
$
warn
servers-defined
At least one server must be defined.
$
error
servers-https
Server URLs must use HTTPS.
$.servers[*]
info
servers-webflow-domain
Webflow API servers must use the api.webflow.com domain.
$.servers[*]
warn
paths-no-trailing-slash
Paths must not end with a trailing slash.
$.paths[*]~
info
paths-snake-case-segments
Webflow path segments use snake_case (underscores).
$.paths[*]~
error
operation-summary-required
Every operation must have a summary.
$.paths[*][get,post,put,patch,delete]
warn
operation-summary-title-case
Operation summaries must start with an uppercase letter.
$.paths[*][get,post,put,patch,delete].summary
error
operation-id-required
Every operation must have an operationId.
$.paths[*][get,post,put,patch,delete]
info
operation-id-kebab-case
Operation IDs in Webflow APIs use kebab-case.
$.paths[*][get,post,put,patch,delete].operationId
warn
operation-tags-required
Every operation must have at least one tag.
$.paths[*][get,post,put,patch,delete]
warn
parameter-description-required
Every parameter must have a description.
$.paths[*][get,post,put,patch,delete].parameters[*]
warn
request-body-content-type
Request bodies must define application/json content type.
$.paths[*][post,put,patch].requestBody.content
error
response-success-required
Every operation must define at least one 2xx response.
$.paths[*][get,post,put,patch,delete].responses
warn
response-description-required
Every response must have a description.
$.paths[*][get,post,put,patch,delete].responses[*]
info
response-error-401
Operations should define 401 Unauthorized response.
$.paths[*][get,post,put,patch,delete].responses
info
schema-camelcase-properties
Webflow API schema properties use camelCase naming.
$.components.schemas[*].properties[*]~
info
schema-description-recommended
Component schemas should have descriptions.
$.components.schemas[*]
warn
security-schemes-defined
Security schemes must be defined.
$.components
info
security-oauth2-or-apikey
Webflow uses OAuth 2.0 and API key authentication.
$.components.securitySchemes[*].type
error
get-no-request-body
GET operations must not have a request body.
$.paths[*].get
info
delete-returns-204
DELETE operations should return 204 No Content.
$.paths[*].delete.responses
error
no-empty-descriptions
Descriptions must not be empty strings.
$..description