Issue a workspace master key
POST
https://myagentmail.com/v1/workspaces/{id}/keysFor agents View as Markdown
Returns a wk_... key scoped to this workspace. The key is only shown in the response body — store it securely.
Path parameters
idrequired string | Workspace UUID |
Request body
Content-Type: application/json
namestring |
Responses
201application/jsonCreated
idstring | format: uuid |
keystring | Plain-text key — only returned on creation. Store it somewhere safe. |
prefixstring | |
namestring | |
workspaceIdstring | format: uuid |
createdAtstring | 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.