Unkey · Schema

V2KeysAddPermissionsResponseData

Complete list of all permissions directly assigned to the key (including both newly added permissions and those that were already assigned). This response includes: - All direct permissions assigned to the key (both pre-existing and newly added) - Both the permission ID and name for each permission Important notes: - This list does NOT include permissions granted through roles - For a complete permission picture, use `/v2/keys.getKey` instead - An empty array indicates the key has no direct permissions assigned

API KeysRate LimitingAuthenticationDeveloper PlatformAccess ControlIdentityAnalytics
View JSON Schema on GitHub

JSON Schema

unkey-v2keysaddpermissionsresponsedata-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/V2KeysAddPermissionsResponseData",
  "title": "V2KeysAddPermissionsResponseData",
  "type": "array",
  "description": "Complete list of all permissions directly assigned to the key (including both newly added permissions and those that were already assigned).\n\nThis response includes:\n- All direct permissions assigned to the key (both pre-existing and newly added)\n- Both the permission ID and name for each permission\n\nImportant notes:\n- This list does NOT include permissions granted through roles\n- For a complete permission picture, use `/v2/keys.getKey` instead\n- An empty array indicates the key has no direct permissions assigned",
  "items": {
    "$ref": "#/components/schemas/Permission"
  }
}