Phonely · API Governance Rules
Phonely API Rules
Spectral linting rules defining API design standards and conventions for Phonely.
9 Rules
error 5
warn 3
info 1
Rule Categories
phonely
Rules
error
phonely-server-baseurl
Phonely Frontend API uses https://app.phonely.ai/api as its base URL.
$.servers[*].url
error
phonely-auth-x-authorization
Phonely uses an API key in the X-Authorization header.
$.components.securitySchemes[*]
error
phonely-only-post-operations
All Phonely Frontend API operations are HTTP POST.
$.paths[*]
error
phonely-no-get-operations
Phonely Frontend API does not use GET; flag any GET paths.
$.paths[*]
warn
phonely-no-put-delete-patch
Phonely Frontend API does not use PUT/DELETE/PATCH; updates are POST /update-agent style.
$.paths[*]
warn
phonely-summary-title-case
Operation summaries should start with "Phonely " and use Title Case.
$.paths[*][*].summary
warn
phonely-operation-id-camel
operationId should be camelCase verbNoun (e.g. getAgent, getAgents, updateAgent).
$.paths[*][*].operationId
info
phonely-tag-agents
Operations on agent endpoints should be tagged with "Agents".
$.paths[?(@property=='/get-agent' || @property=='/get-agents' || @property=='/update-agent')].post.tags
error
phonely-request-requires-uid
Phonely request bodies require a uid field.
$.components.schemas[?(@property=='GetAgentRequest' || @property=='GetAgentsRequest' || @property=='UpdateAgentRequest')].required