Create an API key
Create a new API key. The full key (key) is returned ONLY in this response — save it securely, it cannot be retrieved later. Optionally scope the key to a single organization and/or set an expiry.
Authorizations
User API key: Authorization: Bearer mx_live_*. The X-API-KEY: mx_live_* header is also accepted.
Required organization context for org-scoped endpoints.
Body
Friendly name (e.g. 'Production Server').
1 - 255"Production API Key"
Scope the key to one organization. If null, the key works for all the user's organizations.
Expiry (ISO 8601). If null, never expires.
Max requests per minute for this key.
1 <= x <= 1000Response
The created API key, including the one-time plaintext key.
API key details (without the secret).
Full API key, shown ONLY ONCE. Save it securely.
"mx_live_2J9vK4xM8nP3wQ7tR5sL1yB6cF0dG2h4vN8pX5mK9rT3wY7u"
First 8 characters of the key.
"2J9vK4xM"
"mx_live_2J9vK4xM********"
Organization scope (null = all orgs).