Skip to main content
PATCH
Revoke an API key

Authorizations

x-api-key
string
header
required

Your platform key for user management, or a user key for everything else.

Headers

Sapiom-Scope
string

tenant: and a user's ID. A versioned platform key uses it to act for that user.

Path Parameters

id
string
required

API Key ID

Response

API key revoked successfully

accessType
enum<string> | null
required

platform or tenant.

Available options:
platform,
tenant
Example:

"tenant"

authorizationVersion
number
required

1 for a versioned key.

Example:

1

createdAt
string<date-time>
required
effectivePermissions
string[] | null
required

The permissions the key has. null means that Sapiom cannot resolve them. This field does not show whether the key is revoked or expired.

Example:
expiresAt
string<date-time> | null
required
id
string<uuid>
required
keyPrefix
string
required
name
string
required
permissionMode
enum<string>
required

shared for a user key that follows your organization's default permissions. fixed for all other keys.

Available options:
fixed,
shared
permissions
string[] | null
required

The stored permissions, including the permissions that they include. A versioned platform key stores [].

Example:
source
enum<string>
required
Available options:
dashboard,
cli-oauth,
device-oauth,
oauth,
derived,
auto-payment
tenantId
string<uuid>
required
type
enum<string>
required
Available options:
live,
test,
development
Example:

"live"

updatedAt
string<date-time>
required
createdByApiKeyId
string<uuid> | null
createdByUserId
string<uuid> | null
deletedAt
string<date-time> | null
description
string | null
lastUsedAt
string<date-time> | null
revokedAt
string<date-time> | null