api.unkey.dev/v1 (deprecated)
DEPRECATED: This API version is deprecated. Please migrate to v2. See https://www.unkey.com/docs/api-reference/v1/migration for more information.
cURL
curl --request POST \ --url https://api.unkey.dev/v1/keys.addPermissions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "keyId": "<string>", "permissions": [ { "id": "<string>", "name": "<string>", "create": true } ] } '
[ { "id": "perm_123", "name": "dns.record.create" } ]
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The id of the key.
1
The permissions you want to add to this key
Show child attributes
All currently connected permissions
The id of the permission. This is used internally
"perm_123"
The name of the permission
"dns.record.create"
Was this page helpful?