Fluid Company APIs (1.0)

The Fluid Company APIs provide a comprehensive set of APIs designed to integrate Fluid's powerful services into your applications seamlessly. These APIs use Company API tokens for authentication and provide full access to manage your company's resources including users, orders, products, media, and more.

For APIs that authenticate with User tokens, see the Rep APIs documentation.

Download OpenAPI description
Overview
E-mail support@fluid.app
License MIT
Languages
Servers
Mock server
https://docs.fluid.app/_mock/docs/apis/company.api/
Production server with company subdomain
https://{company}.fluid.app/
Local development server
http://fluid.lvh.me:{port}/

Activities

Operations

Admins

Operations

Agreements

Operations

Announcements

Operations

ApplePay

Operations

Application Theme Resources

Operations

Application Theme Templates

Operations

Application Themes

Operations

Authentication

Operations

Bank Accounts

Operations

Brand Guidelines

Operations

Business Types

Operations

Callback Definitions

Operations

Callback Registrations

Operations

Callback Schemas

Operations

Carts

Operations

Catch Ups

Operations

Categories

Operations

Checkout

Operations

Collections

Operations

Companies

Operations

Company Countries

Operations

Contacts

Operations

Conversations

Operations

Countries

Operations

Currencies

Operations

Customer Notes

Operations

Customer Orders

Operations

Customers

Operations

DAM Query

Operations

Dam

Operations

Default MySites

Operations

Devices

Operations

Discounts

Operations

Display Settings

Operations

Domains

Operations

Drop Zones

Operations

Droplet Categories

Operations

Droplet Installations

Operations

Droplets

Operations

Enrollment Packs

Operations

Enrollments

Operations

Entities

Operations

Events

Operations

FairShare Order Journey

Operations

Feature Flags

Operations

File Resources

Operations

Fluid Pay

Operations

Form Elements

Operations

Forms

Operations

Global Embeds

Operations

Inventory Levels

Operations

Labels

Operations

Languages

Operations

Libraries

Operations

MCC Codes

Operations

Media

Operations

Messages

Operations

Metafield Definitions

Operations

Metafields

Operations

Mobile Widgets

Operations

Multi-Factor Authentications

Operations

Notifications

Operations

Onboarding

Operations

Onboarding Info

Operations

Order Fulfillments

Operations

Orders

Operations

Owners

Operations

Pages

Operations

Retrieve a list of company pages

Request

Get all company pages for the current company, filtered by the current language.

Query
page_numberinteger

Page number for pagination

Default 1
per_pageinteger

Number of records per page

Default 10
by_metadatastring(json)

Search JSON meta data

Default "{}"
curl -i -X GET \
  'https://docs.fluid.app/_mock/docs/apis/company.api/api/company/pages?by_metadata={}&page_number=1&per_page=10' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

pages retrieved

Bodyapplication/jsonArray [
One of:
paginationobject
]
Response
application/json
[ { "pagination": {} } ]

Create a new page

Request

Create a new page

Bodyapplication/json
pageobject
curl -i -X POST \
  https://docs.fluid.app/_mock/docs/apis/company.api/api/company/pages \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "page": {
      "title": "Page Title",
      "html_code": "<p>Page content</p>",
      "publish": true,
      "image_url": "https://example.com/image.jpg",
      "available_countries": [
        "US"
      ],
      "metadata": {}
    }
  }'

Responses

page created

Bodyapplication/json
idinteger
Example: 1
titlestring
Example: "Page Title"
slugstring
Example: "page-title"
labelstring or null
Example: "Trending"
display_tagstring or null
Example: "Display tag"
share_linkstring or null
Example: "https://example.com/page-title"
activeboolean
Example: true
metadataobject

A JSON object that can store any custom data structure.

preview_urlstring
Example: "https://example.com/page-title?preview=true"
countriesArray of objects
stripped_descriptionstring or null
Example: "Page description"
viewsinteger
Example: 100
leadsinteger
Example: 10
image_urlstring or null
Example: "https://example.com/image.jpg"
sourcestring or null
Example: "builder"
publishboolean
Example: true
promptsArray of objects
html_codestring
prompts_enabledboolean
jsonstring or null
application_theme_templateobject or null
search_engine_optimizerobject or null
use_search_engineboolean
show_on_site_searchboolean
emailstring or null
open_graphobject or null
Response
application/json
{ "id": 1, "title": "Page Title", "slug": "page-title", "label": "Trending", "display_tag": "Display tag", "share_link": "https://example.com/page-title", "active": true, "metadata": {}, "preview_url": "https://example.com/page-title?preview=true", "countries": [ {} ], "stripped_description": "Page description", "views": 100, "leads": 10, "image_url": "https://example.com/image.jpg", "source": "builder", "publish": true, "prompts": [ {} ], "html_code": "string", "prompts_enabled": true, "json": "string", "application_theme_template": { "id": 0, "name": "string", "themeable_type": "string", "content": "string", "stylesheet": "string", "status": "string", "created_at": "string", "updated_at": "string", "script": {}, "schema": {}, "content_without_schema": "string", "images": [], "metadata": {}, "category": "string" }, "search_engine_optimizer": { "id": 0, "title": "string", "description": "string", "image_url": "string" }, "use_search_engine": true, "show_on_site_search": true, "email": "string", "open_graph": { "id": 0, "title": "string", "description": "string", "image_url": "string" } }

Retrieve a single company page

Request

Fetch a specific page by its ID for the current company.

Path
idintegerrequired

Page's Id

curl -i -X GET \
  'https://docs.fluid.app/_mock/docs/apis/company.api/api/company/pages/{id}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

page retrieved

Bodyapplication/json
idinteger
Example: 1
titlestring
Example: "Page Title"
slugstring
Example: "page-title"
labelstring or null
Example: "Trending"
display_tagstring or null
Example: "Display tag"
share_linkstring or null
Example: "https://example.com/page-title"
activeboolean
Example: true
metadataobject

A JSON object that can store any custom data structure.

preview_urlstring
Example: "https://example.com/page-title?preview=true"
countriesArray of objects
stripped_descriptionstring or null
Example: "Page description"
viewsinteger
Example: 100
leadsinteger
Example: 10
image_urlstring or null
Example: "https://example.com/image.jpg"
sourcestring or null
Example: "builder"
publishboolean
Example: true
promptsArray of objects
html_codestring
prompts_enabledboolean
jsonstring or null
application_theme_templateobject or null
search_engine_optimizerobject or null
use_search_engineboolean
show_on_site_searchboolean
emailstring or null
open_graphobject or null
Response
application/json
{ "id": 1, "title": "Page Title", "slug": "page-title", "label": "Trending", "display_tag": "Display tag", "share_link": "https://example.com/page-title", "active": true, "metadata": {}, "preview_url": "https://example.com/page-title?preview=true", "countries": [ {} ], "stripped_description": "Page description", "views": 100, "leads": 10, "image_url": "https://example.com/image.jpg", "source": "builder", "publish": true, "prompts": [ {} ], "html_code": "string", "prompts_enabled": true, "json": "string", "application_theme_template": { "id": 0, "name": "string", "themeable_type": "string", "content": "string", "stylesheet": "string", "status": "string", "created_at": "string", "updated_at": "string", "script": {}, "schema": {}, "content_without_schema": "string", "images": [], "metadata": {}, "category": "string" }, "search_engine_optimizer": { "id": 0, "title": "string", "description": "string", "image_url": "string" }, "use_search_engine": true, "show_on_site_search": true, "email": "string", "open_graph": { "id": 0, "title": "string", "description": "string", "image_url": "string" } }

Update a company page

Request

Update the details of a specific company page.

Path
idintegerrequired

Page's Id

Bodyapplication/json
pageobject
curl -i -X PUT \
  'https://docs.fluid.app/_mock/docs/apis/company.api/api/company/pages/{id}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "page": {
      "title": "Updated Title",
      "html_code": "<p>Updated content</p>",
      "publish": true,
      "metadata": {}
    }
  }'

Responses

page updated

Bodyapplication/json
idinteger
Example: 1
titlestring
Example: "Page Title"
slugstring
Example: "page-title"
labelstring or null
Example: "Trending"
display_tagstring or null
Example: "Display tag"
share_linkstring or null
Example: "https://example.com/page-title"
activeboolean
Example: true
metadataobject

A JSON object that can store any custom data structure.

preview_urlstring
Example: "https://example.com/page-title?preview=true"
countriesArray of objects
stripped_descriptionstring or null
Example: "Page description"
viewsinteger
Example: 100
leadsinteger
Example: 10
image_urlstring or null
Example: "https://example.com/image.jpg"
sourcestring or null
Example: "builder"
publishboolean
Example: true
promptsArray of objects
html_codestring
prompts_enabledboolean
jsonstring or null
application_theme_templateobject or null
search_engine_optimizerobject or null
use_search_engineboolean
show_on_site_searchboolean
emailstring or null
open_graphobject or null
Response
application/json
{ "id": 1, "title": "Page Title", "slug": "page-title", "label": "Trending", "display_tag": "Display tag", "share_link": "https://example.com/page-title", "active": true, "metadata": {}, "preview_url": "https://example.com/page-title?preview=true", "countries": [ {} ], "stripped_description": "Page description", "views": 100, "leads": 10, "image_url": "https://example.com/image.jpg", "source": "builder", "publish": true, "prompts": [ {} ], "html_code": "string", "prompts_enabled": true, "json": "string", "application_theme_template": { "id": 0, "name": "string", "themeable_type": "string", "content": "string", "stylesheet": "string", "status": "string", "created_at": "string", "updated_at": "string", "script": {}, "schema": {}, "content_without_schema": "string", "images": [], "metadata": {}, "category": "string" }, "search_engine_optimizer": { "id": 0, "title": "string", "description": "string", "image_url": "string" }, "use_search_engine": true, "show_on_site_search": true, "email": "string", "open_graph": { "id": 0, "title": "string", "description": "string", "image_url": "string" } }

Delete a company page

Request

Delete a specific page for the current company.

Path
idintegerrequired

Page's Id

curl -i -X DELETE \
  'https://docs.fluid.app/_mock/docs/apis/company.api/api/company/pages/{id}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

page deleted

Send a page to the top

Request

Mark a specific company page as prioritized and send it to the top of the list.

Path
idintegerrequired

Page's Id

curl -i -X GET \
  'https://docs.fluid.app/_mock/docs/apis/company.api/api/company/pages/{id}/send_to_top' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

page sent to top

Duplicate a page

Request

Create a duplicate of an existing company page.

Path
idintegerrequired

Page's Id

Query
langstring

Language code for the duplicated page

curl -i -X GET \
  'https://docs.fluid.app/_mock/docs/apis/company.api/api/company/pages/{id}/duplicate?lang=string' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

page duplicated

Append metadata field

Request

Path
idintegerrequired

Page's Id

Bodyapplication/json
metadataobjectrequired

A JSON object that can store any custom data structure. When provided, merges with existing metadata data.

curl -i -X PATCH \
  'https://docs.fluid.app/_mock/docs/apis/company.api/api/company/pages/{id}/append_metadata' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "metadata": {}
  }'

Responses

success

Bodyapplication/json
statusstring
dataobject
Response
application/json
{ "status": "string", "data": { "page": {} } }

List pages

Request

Get a list of pages with optional filtering and sorting

Query
sorted_bystring

Sort field and direction (leads_user_{user_id}asc and leads_user{user_id}_desc are also supported)

Default "priority_desc"
Enum"priority_asc""priority_desc""title_asc""title_desc""updated_at_asc""updated_at_desc""views_asc""views_desc""leads_admin_asc""leads_admin_desc"
search_querystring

Search term to filter pages by title or slug

statusstring

Filter pages by publish status

Enum"active""draft"
with_tag_idinteger

Filter pages by tag ID

with_category_idinteger

Filter pages by category ID

country_idinteger

Filter pages by country ID

by_languagestring

Filter pages by language code (e.g., 'en', 'es')

pageinteger

Page number for pagination

Default 1
per_pageinteger

Number of items per page

Default 20
curl -i -X GET \
  'https://docs.fluid.app/_mock/docs/apis/company.api/api/v202506/pages?by_language=string&country_id=0&page=1&per_page=20&search_query=string&sorted_by=priority_asc&status=active&with_category_id=0&with_tag_id=0' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

successful

Bodyapplication/json
itemsArray of objects

List of pages

metaobject

Metadata about the request and response

Response
application/json
{ "items": [ {} ], "meta": { "request_id": "string", "timestamp": "string", "pagination": {} } }

Creates a page

Request

Create a new page

Bodyapplication/jsonrequired
pageobject

Page attributes

curl -i -X POST \
  https://docs.fluid.app/_mock/docs/apis/company.api/api/v202506/pages \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "page": {
      "title": "New Page",
      "label": "Featured",
      "display_tag": "Tag",
      "stripped_description": "Page description",
      "image_url": "https://example.com/image.jpg",
      "source": "builder",
      "publish": true,
      "prompts_enabled": true,
      "json": "{}",
      "use_search_engine": true,
      "show_on_site_search": true,
      "email": "page@example.com",
      "page_content": "<h1>Hello, world!</h1>",
      "countries": [
        "US"
      ],
      "metadata": {
        "key": "value"
      },
      "search_engine_optimizer": {
        "title": "SEO Title",
        "description": "SEO Description",
        "image_url": "https://example.com/seo-image.jpg"
      },
      "open_graph": {
        "title": "OG Title",
        "description": "OG Description",
        "image_url": "https://example.com/og-image.jpg"
      },
      "content": "<h1>Hello, world!</h1>",
      "variables": {
        "company_name": "ACME Inc.",
        "site_url": "https://example.com",
        "current_year": "2025"
      },
      "stylesheet": "<style>body { background-color: #f0f0f0; }</style>",
      "translations": {
        "en": {
          "hello": "Hello"
        },
        "fr": {
          "hello": "Bonjour"
        }
      },
      "taggings_attributes": [
        {
          "tag_id": 1
        }
      ]
    }
  }'

Responses

page created with content, variables, and stylesheet

Retrieves a page

Request

Get a specific page by ID

Path
idstringrequired
curl -i -X GET \
  'https://docs.fluid.app/_mock/docs/apis/company.api/api/v202506/pages/{id}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

page found

Bodyapplication/json
itemobject
metaobject

Metadata about the request and response

Response
application/json
{ "item": { "id": 1, "title": "New Page", "slug": "new-page", "share_link": "https://example.com/p/abc123", "active": true, "stripped_description": "This is a page description", "views": 0, "leads": 0, "image_url": "https://example.com/image.jpg", "metadata": {}, "publish": true, "publish_at": "2025-01-01T00:00:00Z", "label": "Featured", "display_tag": "Tag", "prompts_enabled": true, "default": false, "use_for_enrollment_completion": false, "use_search_engine": true, "show_on_site_search": true, "email": "page@example.com", "application_theme_template_id": 1, "application_theme_id": 1, "created_at": "2021-01-01T00:00:00Z", "updated_at": "2021-01-01T00:00:00Z", "url": "https://example.com/page", "page_content": "<h1>Hello, world!</h1>", "prompts": [], "source": "builder", "countries": [], "open_graph": {}, "search_engine_optimizer": {}, "custom_slug": false }, "meta": { "request_id": "string", "timestamp": "string" } }

Updates a page

Request

Update an existing page

Path
idstringrequired
Bodyapplication/jsonrequired
pageobject

Page attributes to update

curl -i -X PUT \
  'https://docs.fluid.app/_mock/docs/apis/company.api/api/v202506/pages/{id}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "page": {
      "title": "Updated Page",
      "label": "Trending",
      "display_tag": "Display tag",
      "stripped_description": "Updated description",
      "image_url": "https://example.com/image.jpg",
      "source": "builder",
      "publish": true,
      "prompts_enabled": true,
      "json": "{}",
      "use_search_engine": true,
      "show_on_site_search": true,
      "email": "page@example.com",
      "countries": [
        "US"
      ],
      "metadata": {
        "key": "value"
      },
      "search_engine_optimizer": {
        "title": "SEO Title",
        "description": "SEO Description",
        "image_url": "https://example.com/seo-image.jpg"
      },
      "open_graph": {
        "title": "OG Title",
        "description": "OG Description",
        "image_url": "https://example.com/og-image.jpg"
      },
      "content": "<h1>Hello, world!</h1>",
      "variables": {
        "company_name": "ACME Inc.",
        "site_url": "https://example.com",
        "current_year": "2025"
      },
      "stylesheet": "<style>body { background-color: #f0f0f0; }</style>"
    }
  }'

Responses

page updated with tag removed

Deletes a page

Request

Delete a page

Path
idstringrequired
curl -i -X DELETE \
  'https://docs.fluid.app/_mock/docs/apis/company.api/api/v202506/pages/{id}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

page deleted

Clones a page

Request

Clone an existing page

Path
idstringrequired
curl -i -X POST \
  'https://docs.fluid.app/_mock/docs/apis/company.api/api/v202506/pages/{id}/clone' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

page cloned

Get page views

Request

Get views for a specific page

Path
idstringrequired
curl -i -X GET \
  'https://docs.fluid.app/_mock/docs/apis/company.api/api/v202506/pages/{id}/views' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

returns views when page has views

Get page leads

Request

Get leads for a specific page

Path
idstringrequired
curl -i -X GET \
  'https://docs.fluid.app/_mock/docs/apis/company.api/api/v202506/pages/{id}/leads' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

returns structured contact data

Bulk update page statuses

Request

Update status for multiple pages

Bodyapplication/jsonrequired
statusstringrequired

Set the status of the page(s) or 'delete' to perform soft deletion

Enum"active""draft""delete"
Example: "active"
page_idsArray of integersrequired

IDs of pages to update

curl -i -X PATCH \
  https://docs.fluid.app/_mock/docs/apis/company.api/api/v202506/pages/bulk_status_update \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "status": "active",
    "page_ids": [
      0
    ]
  }'

Responses

successful with delete status

Bodyapplication/json
messagestring

Success message

Example: "Pages were successfully deleted."
metaobject

Metadata about the request and response

Response
application/json
{ "message": "Pages were successfully deleted.", "meta": { "request_id": "string", "timestamp": "string" } }

Imports pages from a zip file

Request

Import pages from a zip file

Bodymultipart/form-datarequired

Zip file containing pages

string
curl -i -X POST \
  https://docs.fluid.app/_mock/docs/apis/company.api/api/v202506/pages/import \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: multipart/form-data'

Responses

import started

Bodyapplication/json
messagestring

Success message

Example: "Import has successfully started. Please check back later."
metaobject

Metadata about the request and response

Response
application/json
{ "message": "Import has successfully started. Please check back later.", "meta": { "request_id": "string", "timestamp": "string" } }

Promotes a page to a template

Request

Convert a page into an application theme template

Path
idstringrequired
Bodyapplication/jsonrequired
themeable_typestringrequired

Type of template to promote it to. Possible values: 'home_page', 'cart_page', 'product', 'medium', 'enrollment_pack', 'library', 'shop_page', 'category_page', 'collection_page', 'join_page

Example: "product"
curl -i -X POST \
  'https://docs.fluid.app/_mock/docs/apis/company.api/api/v202506/pages/{id}/promote_to_template' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "themeable_type": "product"
  }'

Responses

successfully promoted to template

Bodyapplication/json
itemobject
metaobject
Response
application/json
{ "item": { "application_theme_template": {} }, "meta": { "request_id": "string", "timestamp": "string" } }

Payment

Operations

Payment Accounts

Operations

Payment Integrations

Operations

Payments

Operations

Paypal

Operations

Points

Operations

Points Ledgers

Operations

Points Values

Operations

Posts

Operations

Product Bundles

Operations

Product Images

Operations

Product Subscription Plans

Operations

Products

Operations

Prompts

Operations

Public Assets

Operations

Public Companies

Operations

Public Drop Zones

Operations

Ranks

Operations

Recipients

Operations

Redirects

Operations

Refunds

Operations

Reps

Operations

Roles

Operations

Root Themes

Operations

Shares

Operations

Shop

Operations

Sitemap

Operations

Social Media

Operations

Subscription Plans

Operations

Subscriptions

Operations

System Monitoring

Operations

Tags

Operations

Tax Categories

Operations

Theme Region Rules

Operations

Tiles

Operations

Tracking Informations

Operations

Tree Nodes

Operations

Trees

Operations

Users

Operations

Variant Countries

Operations

Variant Images

Operations

Variant Inventory Levels

Operations

Variants

Operations

Warehouses

Operations

Webhook Events

Operations

Webhook Schemas

Operations

Webhooks

Operations

Webhooks Resources

Operations

affiliate

Operations

carts

Operations

checkout

Operations

enrollment-packs

Operations

events

Operations

fingerprint

Operations

lead

Operations

media

Operations

page

Operations

playlist

Operations

product

Operations

session

Operations

settings

Operations

url

Operations

widgets

Operations