Skip to content

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"
Response 200 OK
{
  "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_id id Required

    The 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"
Response 200 OK
{
  "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

  • name text Required

    The 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"
  }'
Response 201 Created
{
  "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

  • id id

    The category to change; leave it out to make one.

  • name text Required

    The category's name.

  • product_ids list of ids Required

    Every 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"
    ]
  }'
Response 200 OK
{
  "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_id id Required

    The category's id.

Body

  • name text Required

    The 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"
  }'
Response 200 OK
{
  "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_id id Required

    The 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"
Response 204 No Content

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_id id Required

    The 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"
Response 200 OK
{
  "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_id id Required

    The category's id.

Body

  • product_ids list of ids Required

    Up 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"
    ]
  }'
Response 200 OK
{
  "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_id id Required

    The category's id.

Body

  • product_ids list of ids Required

    Up 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"
    ]
  }'
Response 200 OK
{
  "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_id id Required

    The category's id.

Body

  • product_ids list of ids Required

    Every 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"
    ]
  }'
Response 200 OK
{
  "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

  • ids list of ids Required

    Every 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"
    ]
  }'
Response 200 OK
{
  "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,