Update API Key

**CLI:** ```bash agentmail inboxes api-keys update --inbox-id <inbox_id> --api-key-id <api_key_id> --name "Renamed" ```

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

inbox_idstringRequired
The ID of the inbox.
api_key_idstringRequired
ID of api key.

Request

This endpoint expects an object.
namestringOptional
Name of api key.
permissionsobjectOptional
Granular permissions for the API key. When ommitted all permissions are granted. Otherwise, only permissions set to true are granted.

Response

This endpoint returns an object.
Bearer API Keyobject
OR
Public Key Credentialobject

Errors

400
Validation Error
404
Not Found Error