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

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

List all prompts for a relateable object

Request

Get a list of prompts for a specific Page, Medium, Product, or Promotion

Query
relateable_typestringrequired

Type of the relateable object. Can be 'Page', 'Medium', 'Product', or 'Promotion'.

Enum"Page""Medium""Product""Promotion"
relateable_idintegerrequired

ID of the relateable object

pageinteger

Page number for pagination

Default 1
per_pageinteger

Number of records per page

Default 20
curl -i -X GET \
  'https://docs.fluid.app/_mock/docs/apis/company.api/api/prompts?page=1&per_page=20&relateable_id=0&relateable_type=Page' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

successful

Bodyapplication/json
promptsArray of objects
metaobject
Response
application/json
{ "prompts": [ {} ], "meta": { "request_id": "f5473a8c-8a86-4e0e-b3e8-95392003921b", "timestamp": "2024-12-10T08:04:10Z", "total_count": 42, "total_pages": 3, "current_page": 1 } }

Create a prompt

Request

Create a new prompt associated with a Page, Medium, Product, or Promotion

Bodyapplication/jsonrequired

Prompt details with relateable info. A prompt must be associated with a Page, Medium, Product, or Promotion.

relateable_typestringrequired

Type of entity this prompt is related to. Can be 'Page', 'Medium', 'Product', or 'Promotion'

Enum"Page""Medium""Product""Promotion"
Example: "Page"
relateable_idintegerrequired

ID of the entity this prompt is related to

Example: 1
promptobjectrequired
prompt.​titlestringrequired

Title of the prompt

Example: "Social Media"
prompt.​contentstringrequired

Content of the prompt

Example: "Check out this product"
curl -i -X POST \
  https://docs.fluid.app/_mock/docs/apis/company.api/api/prompts \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "relateable_type": "Page",
    "relateable_id": 1,
    "prompt": {
      "title": "Social Media",
      "content": "Check out this product"
    }
  }'

Responses

prompt created

Bodyapplication/json
promptobject
metaobject
Response
application/json
{ "prompt": { "id": 1, "title": "Social Media", "content": "Check out this product" }, "meta": { "request_id": "f5473a8c-8a86-4e0e-b3e8-95392003921b", "timestamp": "2024-12-10T08:04:10Z" } }

Update a prompt

Request

Update an existing prompt's title and content

Path
idintegerrequired

ID of the prompt

Bodyapplication/jsonrequired

Prompt details to update

promptobjectrequired
prompt.​titlestringrequired
prompt.​contentstringrequired
curl -i -X PATCH \
  'https://docs.fluid.app/_mock/docs/apis/company.api/api/prompts/{id}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "prompt": {
      "title": "string",
      "content": "string"
    }
  }'

Responses

prompt updated

Bodyapplication/json
promptobject
metaobject
Response
application/json
{ "prompt": { "id": 1, "title": "Social Media", "content": "Check out this product" }, "meta": { "request_id": "f5473a8c-8a86-4e0e-b3e8-95392003921b", "timestamp": "2024-12-10T08:04:10Z" } }

Delete a prompt

Request

Delete an existing prompt

Path
idintegerrequired

ID of the prompt

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

Responses

prompt deleted

Bodyapplication/json
successboolean

Indicates whether the operation was successful

Example: true
metaobject
Response
application/json
{ "success": true, "meta": { "request_id": "f5473a8c-8a86-4e0e-b3e8-95392003921b", "timestamp": "2024-12-10T08:04:10Z" } }

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