Create a new API key. (admin access required)
Changed onCreates a API key
Request
- Base URL: ./../api/v1/ (relative, and the document was published on a file host, not at the API’s origin)
- URL: ./../api/v1/api-key
- Auth: API key in header token
Request body
Example request
{
"usageLimited": "true",
"UsageCredits": [
{
"unit": "",
"amount": "10000000"
}
],
"canAdmin": true,
"walletScopeEnabled": "false",
"WalletScopeHotWalletIds": []
}Response
API key created
Example response
{
"status": "Success",
"data": {
"id": "api_key_id",
"token": "masumi_payment_api_key_secret",
"permission": "Admin",
"canRead": true,
"canPay": true,
"canAdmin": true,
"usageLimited": true,
"NetworkLimit": [
"Preprod"
],
"ChainIdLimit": [
"cardano:preprod"
],
"RemainingUsageCredits": [
{
"unit": "",
"amount": "10000000"
}
],
"status": "Active",
"walletScopeEnabled": false,
"WalletScopes": [],
"x402WalletScopeEnabled": false,
"X402WalletScopes": []
}
}Changes
- info
added the new optional request property
- info
added the new optional request property
- info
the
request property default value changed fromfalsetofalse - info
the
request property default valuewas removed - info
the
request property default valueReadwas removed - info
the
request property default valuetruewas removed - info
request property
list-of-types was widened by adding typesbooleanto media typeapplication/json - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status
- info
- breaking
request property
list-of-types was narrowed by removing typesbooleanfrom media typeapplication/json - breaking
removed the required property
/from the response with the status - breaking
removed the required property
/from the response with the status - warning
removed the request property
- warning
removed the request property
- info
the
request property default valuewas added - info
the
request property default valueReadwas added - info
the
request property default valuetruewas added - info
the
request property default value changed fromfalsetofalse
- breaking