API Explorer
Get the calling org's Spectral ruleset
Returns the org's custom Spectral ruleset YAML, or an empty string when the org
has not configured one. The CLI fetches this on every spec0 lint invocation so
lint behaviour stays consistent between local dev and CI. Built-in rulesets are
applied regardless of whether a custom ruleset is set.
Authorization
BearerAuth AuthorizationBearer <token>
Bearer token. Either a Personal Access Token (pat_...) or a Service Account
Token (sat_...). Issued via the Spec0 dashboard or /me/personal-access-tokens.
In: header
Response Body
application/json
application/json
application/json
curl -X GET "https://app.spec0.io/api/v1/public/spectral/ruleset"{
"rulesetYaml": "string"
}{
"error": "string",
"message": "string"
}{
"status": 0,
"title": "string",
"detail": "string",
"type": "string",
"instance": "string"
}Was this helpful?