Organization
List workspaces
GET
Requires the workspaces:read scope.
OrganizationApiKeyheader
Authorization<token>Api-Key mco_... — an organization management key.
search?stringLength
length <= 200type?stringValue in
"production""sandbox"sendingStatus?stringValue in
"active""paused"limit?integerRange
1 <= value <= 500Default
50offset?integerRange
0 <= valueDefault
0page?integerRange
1 <= valuesortBy?stringsortOrder?stringValue in
"ASC""DESC"A page of results.
application/json- response
data*array<>total*integerMatches across all pages.
limit*integeroffset*integerThe offset actually applied, also when you paginated with page.
curl -X GET 'https://api.mailcrate.io/public/organization/workspaces' \ -H 'Authorization: Api-Key <api_key>'Example Response
{ "data": [ { "id": "string", "name": "string", "type": "production", "sendingStatus": "active", "sendingPausedReason": "bounce-rate", "sendingPausedAt": "string", "postalAddress": {}, "icon": "string", "color": "string", "created": "string" } ], "total": 0, "limit": 0, "offset": 0}List a workspace's API keys GET
Prefixes, scopes and expiry. Never key material. Requires the `workspace-keys:manage` scope.
Provision a workspace POST
Creates a tenant workspace and, when asked, its first API key. The key's plaintext is in this response and nowhere else. Requires the `workspaces:provision` scope.