Mint API key

Mint a Merge Gateway API key scoped to this customer. The raw key is returned ONCE, in key. Requires an organization-level access key. Max 5 keys per customer.

Authentication

AuthorizationBearer
Your production key sent as a bearer token.

Path parameters

customer_idstringRequired

Request

This endpoint expects an object.
namestringOptional
spending_limitdoubleOptional

Per-key spend cap over reset_period, independent of the customer’s budget.

reset_periodenumOptional

Requires spending_limit.

Allowed values:
rate_limit_rpmintegerOptional
rate_limit_tpmintegerOptional

Response

Successful Response
keystring

The raw secret. Shown only in this response; store it now.

idstringOptional

Key identifier; pass to DELETE.

customerstringOptional

The customer this key is bound to (immutable).

namestring or nullOptional
key_prefixstringOptional
is_activebooleanOptional
spending_limitdouble or nullOptional
reset_periodstring or nullOptional
rate_limit_rpminteger or nullOptional
rate_limit_tpminteger or nullOptional
created_atdatetime or nullOptional
expires_atdatetime or nullOptional