Skip to main content
POST
/
v1
/
user
/
store
/
{storeId}
/
keys
Create API Key
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"
  }
}
'

Headers

Content-Type
string

Path Parameters

storeId
string
required

Body

application/json

The body is of type object.

Response

201 - application/json

Successful response