Skip to main content
POST
Create workspace api key

Authorizations

Authorization
string
header
required

Company API key (mwk_) or personal access token (mel_). A PAT requires X-Workspace-ID on company-scoped routes. An API key implies its own company.

Headers

X-Workspace-ID
string<uuid>

Company UUID for a personal token on company-scoped operations. A company API key already binds its company.

Path Parameters

id
string
required

id from the corresponding authorized response.

Body

application/json
name
string
expires_in_days
integer | null
scope
string | null

Response

{key: WorkspaceAPIKeyResponse, token: string}. token (mwk_…) is returned only here; Melso stores its hash.

key
object
required
token
string
required