curl --request POST \
--url https://storekit.samarthh.me/v1/user/store/{storeId}/keys \
--header 'Content-Type: application/json' \
--data '
{
"name": "Production API Key",
"type": "PROD",
"permissions": [
"READ",
"WRITE",
"MANAGE_PRODUCTS"
],
"metadata": {
"description": "Key for CI/CD pipeline"
}
}
'Create a new API key for a store. Requires MANAGE_KEYS permission. The full key is only shown once!
curl --request POST \
--url https://storekit.samarthh.me/v1/user/store/{storeId}/keys \
--header 'Content-Type: application/json' \
--data '
{
"name": "Production API Key",
"type": "PROD",
"permissions": [
"READ",
"WRITE",
"MANAGE_PRODUCTS"
],
"metadata": {
"description": "Key for CI/CD pipeline"
}
}
'