Authorization headerstore permissioncommunityID401 if the key is missing, invalid, or expired403 if the key does not include the store permissioncreate:categoryname is requireddefaultPurchaseStatusID, when provided, must be a valid ID accepted by the store servicecategoryPermission entries must match the source store permission shape502{
"name": "Premium Rewards",
"coverImage": "https://example.com/category.png",
"shouldShowCover": true,
"isArchived": false
}curl --location --request POST 'https://api.returning.ai/v1/categories' \
--header 'Authorization: Bearer XXXXXX'{
"meta": {
"status": "success",
"statusCode": 201
},
"message": "Create category success.",
"data": {
"_id": "507f1f77bcf86cd799439021",
"communityID": "6502c9e514a3e564c5c09c0a",
"name": "Premium Rewards",
"coverImage": "https://example.com/category.png",
"shouldShowCover": true,
"isArchived": false,
"viewType": "full",
"displayOrder": 0,
"defaultPurchaseStatusID": "650906d314a3e564c56f3450",
"createdAt": "2026-04-28T00:00:00.000Z",
"updatedAt": "2026-04-28T00:00:00.000Z"
}
}