User content deletion API
Use this API from your backend account-deletion workflow. Requests match the
exact user_id supplied through the Metergraph SDK, including case and
whitespace. The API key determines the workspace.
Authentication
Section titled “Authentication”Use a dedicated server-side key with the content:delete permission.
Ingest, read and coding-agent keys do not grant this permission. Never put a
content-deletion key in a browser, mobile application or SDK initialization.
A workspace owner or admin can create a key in Keys. Under Key purpose, select User content deletion, enter a name and select Create key.
The token is shown once. Store it in your backend’s secret manager as
METERGRAPH_CONTENT_KEY. Disable the key in Keys to revoke its access.
Submit a request
Section titled “Submit a request”curl https://app.metergraph.dev/v1/content-deletions \ -H "Authorization: Bearer $METERGRAPH_CONTENT_KEY" \ -H 'Content-Type: application/json' \ -d '{"user_id":"user_123"}'A successful submission returns 202 Accepted:
{ "id": "00000000-0000-4000-8000-000000000001", "user_id": "user_123", "before": "2026-11-25T12:00:00Z", "status": "pending"}before is the capture-time cutoff for the request. Repeated submissions reuse
its request ID and advance the cutoff to include content captured before the
latest submission.
Check status
Section titled “Check status”curl https://app.metergraph.dev/v1/content-deletions/REQUEST_ID \ -H "Authorization: Bearer $METERGRAPH_CONTENT_KEY"The response contains pending until content removal finishes, then completed.
An accepted request is not confirmation that its content has been deleted.
The API submits to the same user-content request workflow as Settings → User content deletion. Processing runs in the background.
Scope and errors
Section titled “Scope and errors”User-content removal preserves report identity, grades, costs and timing. Content without reliable user attribution is excluded. Requests do not delete the Metergraph workspace or user account.
- 401: missing, invalid or revoked key.
- 403: the key lacks the required permission or cannot submit for this workspace.
- 404: the request does not exist in the key’s workspace.
- 422: missing or invalid
user_id, or an unsupported request field.