API Keys
Manage API keys for the Masumi Payment Service API
Last updated
Was this helpful?
Manage API keys for the Masumi Payment Service API
Last updated
Was this helpful?
Gets api key status
{"status":"success","data":{"status":"Active","token":"masumi_payment_api_key_secret","permission":"Admin","networkLimit":["Preprod"],"usageLimited":true,"RemainingUsageCredits":[{"unit":"","amount":"10000000"}]}}
API key status
Gets api key status
The number of API keys to return
10
Used to paginate through the API keys
{"data":{"ApiKeys":[{"id":"unique_cuid_v2_of_entry","token":"masumi_payment_api_key_secret","permission":"Admin","usageLimited":true,"RemainingUsageCredits":[{"unit":"","amount":"10000000"}],"status":"Active","networkLimit":["Mainnet"]}]},"status":"success"}
Gets rpc api keys, currently only blockfrost is supported (internal)
Used to paginate through the rpc provider keys
The number of rpc provider keys to return
100
{"RpcProviderKeys":[{"network":"Preprod","id":"unique_cuid_v2","rpcProviderApiKey":"blockfrost_api_key","rpcProvider":"Blockfrost","createdAt":"1970-01-20T20:00:36.260Z","updatedAt":"1970-01-20T20:00:36.260Z"}]}
Blockfrost keys
Creates a API key
Whether the API key is usage limited. Meaning only allowed to use the specified credits or can freely spend
true
The credits allowed to be used by the API key. Only relevant if usageLimited is true.
The networks the API key is allowed to use
["Mainnet","Preprod"]
The permission of the API key
Read
Available options: {"status":"success","data":{"id":"unique_cuid_v2_of_entry_to_delete","token":"masumi_payment_api_key_secret","permission":"Admin","usageLimited":true,"networkLimit":["Preprod"],"status":"Active"}}
Creates a API key
The id of the API key to update. Provide either id or apiKey
To change the api key token
The amount of credits to add or remove from the API key. Only relevant if usageLimited is true.
Whether the API key is usage limited
true
The status of the API key
Active
Available options: The networks the API key is allowed to use
["Mainnet","Preprod"]
{"status":"success","data":{"id":"unique_cuid_v2_of_entry_to_delete","token":"masumi_payment_api_key_secret","permission":"Admin","usageLimited":true,"networkLimit":["Preprod","Mainnet"],"status":"Active"}}
Removes a API key
The id of the API key to be (soft) deleted.
{"status":"success","data":{"id":"unique_cuid_v2_of_entry_to_delete","token":"masumi_registry_api_key_secret","status":"Revoked","permission":"Admin","usageLimited":true,"networkLimit":["Preprod","Mainnet"],"deletedAt":"1970-01-20T20:00:36.260Z"}}