Platform API reference

Platform API · Platform-Api-Keys

delete/v1/workspaces/{workspace_slug}/api-keys/{id}Auth

Revoke a PAK. Default behaviour: introspect returns null on the next upstream call; downstream services fail-closed within the 60s cache TTL window. Pass `?force=true` to additionally publish a Redis fan-out that evicts the matching cache entry across every PAK-consuming service immediately — use it when rotating a leaked PAK and the 60s window matters.

Path parameters

workspace_slug*string

Slug of the workspace. Platform routes name the workspace by slug, positionally in the SDK (`platform.workspaces.retrieve("acme")`); the product APIs bind `workspace_id` instead.

id*string · uuid

Id of the api key.

Query parameters

forceboolean

When `true`, publish a `pak:revoked` Redis fan-out so subscribed services evict their caches immediately instead of waiting out the 60s TTL.

Response · 204

PAK revoked.

Example

Request

DELETE https://api.platform-auth.productcraft.co/v1/workspaces/{workspace_slug}/api-keys/{id}
Authorization: Bearer YOUR_TOKEN