Skip to main content
POST
Generate a new API key. The full key is only returned once — store it securely. Optionally set a webhook URL at creation time.

Request Body

string
required
Must be generate.
string
required
Descriptive name for the key (e.g., “Production Server”, “CI Pipeline”). Max 64 characters.
string
Optional HTTPS URL to receive webhook events. A signing secret is auto-generated when set.

Response

string
The full API key. Only shown once. Format: mgp_ followed by 40 hex characters.
string
UUID of the created key. Use this for update/revoke operations.
string
The key name.
string
First 8 characters of the key for identification.
string
ISO 8601 creation timestamp.
string
Signing secret for HMAC verification, or null if no webhook URL was set.
The full API key is only returned in this response. Store it immediately — you cannot retrieve it later.