SnozeDevelopers
API referenceAi Artifacts

Delete an AI artifact

Soft-deletes the artifact and returns its id. Requires a workspace member with the `ai:write` permission; deleting an already-deleted artifact is a no-op rather than an error. Send an `Idempotency-Key` header to make retries safe; a replay within the window returns the original response.

DELETE
/v1/workspaces/{workspaceId}/ai-artifacts/{artifactId}
AuthorizationBearer <token>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

In: header

Path Parameters

workspaceId*string
artifactId*string

Query Parameters

clientMutationId?string|null

Response Body

application/json

application/json

application/json

curl -X DELETE "https://example.com/v1/workspaces/string/ai-artifacts/string"
{  "data": {    "id": "string"  }}