Categories
Groups of products you fill by hand, each in its own order. A product can be in several.
Needs a key with Categories access: Read for GET requests, Read and write for the rest.
List categories
GET /categories
All your categories, in your order, each with how many products it has and photos of its first products. Flipbooks and catalogs show their categories in this order. Not paged.
curl https://app.reeflip.com/api/v1/categories \
-H "Authorization: Bearer $REEFLIP_KEY"{
"items": [
{
"id": "aff88055-9e1a-40a5-a2de-9a10c9400438",
"name": "Chairs",
"product_count": 1,
"photos": [
{
"id": "aff88055-9e1a-40a5-a2de-9a10c9400438",
"filename": "oak-chair.jpg",
"content_type": "image/jpeg",
"size_bytes": 482133,Get a category
GET /categories/{category_id}
One category, with how many products it has.
Parameters
category_idid RequiredThe category's id.
Other errors category_not_found
curl https://app.reeflip.com/api/v1/categories/b583a629-3fe1-4575-aba1-7314e10419cc \
-H "Authorization: Bearer $REEFLIP_KEY"{
"id": "aff88055-9e1a-40a5-a2de-9a10c9400438",
"name": "Chairs",
"product_count": 1,
"created_at": "2026-12-02T09:30:00Z",
"updated_at": "2026-12-02T09:30:00Z"
}Create a category
POST /categories
Makes an empty category. Two categories never share a name, whatever the case.
Body
nametext RequiredThe category's name.
Other errors category_name_taken
curl -X POST https://app.reeflip.com/api/v1/categories \ -H "Authorization: Bearer $REEFLIP_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "Chairs" }'
{
"id": "aff88055-9e1a-40a5-a2de-9a10c9400438",
"name": "Chairs",
"product_count": 1,
"created_at": "2026-12-02T09:30:00Z",
"updated_at": "2026-12-02T09:30:00Z"
}Save a category with its products
POST /categories/save
Makes a category, or changes the one with id, so that it has name and exactly the products in product_ids, in that order. Products you don't send leave the category; the products themselves stay.
A product sent twice counts once, where it comes first. A name another category has gets category_name_taken, and a product that isn't yours gets product_not_found; then nothing changes.
Body
ididThe category to change; leave it out to make one.
nametext RequiredThe category's name.
product_idslist of ids RequiredEvery product the category has, in order; an empty list empties it.
Other errors category_not_found category_name_taken product_not_found
curl -X POST https://app.reeflip.com/api/v1/categories/save \ -H "Authorization: Bearer $REEFLIP_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "Chairs", "product_ids": [ "e49efc9b-26be-4b3c-ac8a-012a8e3582af" ] }'
{
"id": "aff88055-9e1a-40a5-a2de-9a10c9400438",
"name": "Chairs",
"product_count": 1,
"created_at": "2026-12-02T09:30:00Z",
"updated_at": "2026-12-02T09:30:00Z"
}Rename a category
PATCH /categories/{category_id}
Gives the category a new name. Two categories never share a name, whatever the case.
Parameters
category_idid RequiredThe category's id.
Body
nametext RequiredThe category's name.
Other errors category_not_found category_name_taken
curl -X PATCH https://app.reeflip.com/api/v1/categories/b583a629-3fe1-4575-aba1-7314e10419cc \ -H "Authorization: Bearer $REEFLIP_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "Chairs" }'
{
"id": "aff88055-9e1a-40a5-a2de-9a10c9400438",
"name": "Chairs",
"product_count": 1,
"created_at": "2026-12-02T09:30:00Z",
"updated_at": "2026-12-02T09:30:00Z"
}Delete a category
DELETE /categories/{category_id}
Deletes the category. Its products stay, and stay in any other categories they are in.
Parameters
category_idid RequiredThe category's id.
Other errors category_not_found
curl -X DELETE https://app.reeflip.com/api/v1/categories/b583a629-3fe1-4575-aba1-7314e10419cc \
-H "Authorization: Bearer $REEFLIP_KEY"Nothing in the body.
List a category's products
GET /categories/{category_id}/products
The category's products, in its order. Not paged.
Parameters
category_idid RequiredThe category's id.
Other errors category_not_found
curl https://app.reeflip.com/api/v1/categories/b583a629-3fe1-4575-aba1-7314e10419cc/products \
-H "Authorization: Bearer $REEFLIP_KEY"{
"items": [
{
"id": "aff88055-9e1a-40a5-a2de-9a10c9400438",
"title": "Chairs",
"status": "active",
"cover": {
"id": "aff88055-9e1a-40a5-a2de-9a10c9400438",
"filename": "oak-chair.jpg",
"content_type": "image/jpeg",
"size_bytes": 482133,
"status": "ready",Add products to a category
POST /categories/{category_id}/products
Adds up to 250 products after the category's last one, in the order sent. Products already in it keep their place. A product that isn't yours gets product_not_found, and nothing is added.
Parameters
category_idid RequiredThe category's id.
Body
product_idslist of ids RequiredUp to 250 product ids, in order.
Other errors category_not_found product_not_found
curl -X POST https://app.reeflip.com/api/v1/categories/b583a629-3fe1-4575-aba1-7314e10419cc/products \ -H "Authorization: Bearer $REEFLIP_KEY" \ -H "Content-Type: application/json" \ -d '{ "product_ids": [ "e49efc9b-26be-4b3c-ac8a-012a8e3582af" ] }'
{
"id": "aff88055-9e1a-40a5-a2de-9a10c9400438",
"name": "Chairs",
"product_count": 1,
"created_at": "2026-12-02T09:30:00Z",
"updated_at": "2026-12-02T09:30:00Z"
}Remove products from a category
POST /categories/{category_id}/products/remove
Takes up to 250 products out of the category. The products themselves stay. Products not in it are skipped.
Parameters
category_idid RequiredThe category's id.
Body
product_idslist of ids RequiredUp to 250 product ids, in order.
Other errors category_not_found
curl -X POST https://app.reeflip.com/api/v1/categories/b583a629-3fe1-4575-aba1-7314e10419cc/products/remove \ -H "Authorization: Bearer $REEFLIP_KEY" \ -H "Content-Type: application/json" \ -d '{ "product_ids": [ "e49efc9b-26be-4b3c-ac8a-012a8e3582af" ] }'
{
"id": "aff88055-9e1a-40a5-a2de-9a10c9400438",
"name": "Chairs",
"product_count": 1,
"created_at": "2026-12-02T09:30:00Z",
"updated_at": "2026-12-02T09:30:00Z"
}Reorder a category's products
PUT /categories/{category_id}/products/order
Puts the category's products in the order you send. Send every product in the category, each once; anything else gets invalid_request and changes nothing.
Parameters
category_idid RequiredThe category's id.
Body
product_idslist of ids RequiredEvery product in the category, each once, in the new order.
Other errors category_not_found
curl -X PUT https://app.reeflip.com/api/v1/categories/b583a629-3fe1-4575-aba1-7314e10419cc/products/order \ -H "Authorization: Bearer $REEFLIP_KEY" \ -H "Content-Type: application/json" \ -d '{ "product_ids": [ "e49efc9b-26be-4b3c-ac8a-012a8e3582af" ] }'
{
"id": "aff88055-9e1a-40a5-a2de-9a10c9400438",
"name": "Chairs",
"product_count": 1,
"created_at": "2026-12-02T09:30:00Z",
"updated_at": "2026-12-02T09:30:00Z"
}Reorder your categories
PUT /categories/order
Puts your categories in the order you send. Flipbooks and catalogs show their categories in this order, and a new category goes at the end. Send every category you have, each once; anything else gets invalid_request and changes nothing.
Body
idslist of ids RequiredEvery category you have, each once, in the new order.
curl -X PUT https://app.reeflip.com/api/v1/categories/order \ -H "Authorization: Bearer $REEFLIP_KEY" \ -H "Content-Type: application/json" \ -d '{ "ids": [ "aff88055-9e1a-40a5-a2de-9a10c9400438" ] }'
{
"items": [
{
"id": "aff88055-9e1a-40a5-a2de-9a10c9400438",
"name": "Chairs",
"product_count": 1,
"photos": [
{
"id": "aff88055-9e1a-40a5-a2de-9a10c9400438",
"filename": "oak-chair.jpg",
"content_type": "image/jpeg",
"size_bytes": 482133,