Skip to Content
APIEndpointsDelete fact

Delete fact

Removes a verified fact. Alignment runs after this stop checking responses against it; verdicts already recorded are unchanged.

Requires the write:brand_profile scope, and the workspace must be enabled for API writes.

DELETE /v1/brands/{brand_id}/facts/{fact_id}

Authorization

HeaderTypeRequired
AuthorizationBearer asky_sk_…required
Idempotency-Keystringrequired

Path parameters

ParameterTypeRequiredDescription
brand_iduuidrequiredFrom List brands
fact_iduuidrequiredFrom verified_facts[].id on Get brand profile

Query parameters

None.

Unlike Delete topic, there is no outcome parameter: a fact owns nothing beneath it, so there is no second decision to make.

Request

curl --request DELETE \ --url 'https://api.askylabs.com/v1/brands/242546de-4cee-4a7d-952e-f6aa60c63ef8/facts/9f2c1d84-6b31-4a2e-9c77-1e5b0a3f8d42' \ --header 'Authorization: Bearer <api-key>' \ --header 'Idempotency-Key: <unique-per-attempt>'

Response

{ "data": { "deleted_fact_id": "9f2c1d84-6b31-4a2e-9c77-1e5b0a3f8d42" }, "request_id": "req_7d21b0af59c34e18b6ac" }

Response fields

FieldTypeDescription
data.deleted_fact_iduuidrequired. The fact that was removed
request_idstringrequired. Also returned as the x-request-id header

Errors

StatusCodeWhen
401invalid_tokenThe key is missing, malformed, or does not exist
403insufficient_scopeThe key does not carry write:brand_profile
403plan_requiredThis workspace is not enabled for API writes
404not_foundThe fact does not exist, was already deleted, belongs to another brand, or belongs to an alignment category
429rate_limitedOver 60 requests per minute. See the Retry-After header

Notes

Deleting twice returns 404, not a second success. The fact is gone after the first call, and reporting success for a row that no longer exists would hide a bug in a client’s bookkeeping.

Past alignment verdicts are not rewritten. A verdict recorded against this fact stays in the history; only future runs stop checking it.

Idempotency-Key is required. Reuse it when retrying an attempt and the original response is replayed rather than a second delete being attempted. See Idempotency.

Last updated on