api.unkey.dev/v1
cURL
curl --request POST \ --url https://api.unkey.dev/v1/keys.setPermissions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "keyId": "<string>", "permissions": [ { "id": "perm_123" }, { "name": "dns.record.create" }, { "name": "dns.record.delete", "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>
All currently connected permissions
The response is of type object[].
object[]
Was this page helpful?