All endpoints

Issue a workspace master key

POSThttps://myagentmail.com/v1/workspaces/{id}/keys

Returns a wk_... key scoped to this workspace. The key is only shown in the response body — store it securely.

Path parameters

id
required
string

Workspace UUID

Request body

Content-Type: application/json

name
string

Responses

201application/jsonCreated
id
string

format: uuid

key
string

Plain-text key — only returned on creation. Store it somewhere safe.

prefix
string
name
string
workspaceId
string

format: uuid

createdAt
string

format: date-time

Authentication

Send your API key in the X-API-Key header (or Authorization: Bearer <key>). Any prefix accepted by this endpoint — tk_, wk_, ak_, or sa_ — is documented in the key prefix table.