Spec0docsCLI 0.7.0
API Explorer

Soft-delete a team-scoped private API

Marks the team-scoped API as deleted (deleted_at is set). The row is retained for audit; subsequent CLI lookups by name or id treat the API as non-existent. This is what the spec0 api delete lifecycle command targets.

Distinct from DELETE /api/v1/public/apis/{publicApiId}, which soft-deletes a record in the customer-facing public registry — different table, different lifecycle.

DELETE
/api/v1/public/apis/team/{apiId}

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

Path Parameters

apiId*string
Formatuuid

Response Body

application/json

application/json

application/json

curl -X DELETE "https://app.spec0.io/api/v1/public/apis/team/497f6eca-6276-4993-bfeb-53cbbbba6f08"
Empty
{
  "error": "string",
  "message": "string"
}
{
  "status": 0,
  "title": "string",
  "detail": "string",
  "type": "string",
  "instance": "string"
}
{
  "status": 0,
  "title": "string",
  "detail": "string",
  "type": "string",
  "instance": "string"
}
Was this helpful?