Skip to navigation

Create API Key

CLI:

agentmail inboxes api-keys create --inbox-id <inbox_id> --name "My Key"

Authentication

AuthorizationBearer

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

Path parameters

inbox_idstringRequired
The ID of the inbox.

Request

This endpoint expects an object.
Create Bearer API Key RequestobjectRequired
OR
Create Public Key RequestobjectRequired

Response

This endpoint returns an object.
Create API Key Responseobject
OR
Public Key Credentialobject

Errors

400
Validation Error
404
Not Found Error