Settings and session
Start a new session
Starts an anonymous analytics session for the shop named in fluid_shop and returns its session token (prefixed fs_) as fluid_session. Send that token as metadata.fluid_session on later public calls such as Retrieve page settings. No authentication is required. Returns 404 when fluid_shop does not resolve to an active shop.
POST
/
api
/
public
/
v2025-06
/
session
Start a new session
curl --request POST \
--url https://api.fluid.app/api/public/v2025-06/session \
--header 'Content-Type: application/json' \
--data '
{
"fluid_shop": "dunder-mifflin.fluid.app"
}
'import requests
url = "https://api.fluid.app/api/public/v2025-06/session"
payload = { "fluid_shop": "dunder-mifflin.fluid.app" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({fluid_shop: 'dunder-mifflin.fluid.app'})
};
fetch('https://api.fluid.app/api/public/v2025-06/session', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fluid.app/api/public/v2025-06/session",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'fluid_shop' => 'dunder-mifflin.fluid.app'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.fluid.app/api/public/v2025-06/session"
payload := strings.NewReader("{\n \"fluid_shop\": \"dunder-mifflin.fluid.app\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.fluid.app/api/public/v2025-06/session")
.header("Content-Type", "application/json")
.body("{\n \"fluid_shop\": \"dunder-mifflin.fluid.app\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/public/v2025-06/session")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"fluid_shop\": \"dunder-mifflin.fluid.app\"\n}"
response = http.request(request)
puts response.read_body{
"status": 201,
"fluid_session": "fs_7kQx9mR2vWbT4nHcJ8pLz3"
}⌘I
Start a new session
curl --request POST \
--url https://api.fluid.app/api/public/v2025-06/session \
--header 'Content-Type: application/json' \
--data '
{
"fluid_shop": "dunder-mifflin.fluid.app"
}
'import requests
url = "https://api.fluid.app/api/public/v2025-06/session"
payload = { "fluid_shop": "dunder-mifflin.fluid.app" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({fluid_shop: 'dunder-mifflin.fluid.app'})
};
fetch('https://api.fluid.app/api/public/v2025-06/session', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fluid.app/api/public/v2025-06/session",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'fluid_shop' => 'dunder-mifflin.fluid.app'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.fluid.app/api/public/v2025-06/session"
payload := strings.NewReader("{\n \"fluid_shop\": \"dunder-mifflin.fluid.app\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.fluid.app/api/public/v2025-06/session")
.header("Content-Type", "application/json")
.body("{\n \"fluid_shop\": \"dunder-mifflin.fluid.app\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/public/v2025-06/session")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"fluid_shop\": \"dunder-mifflin.fluid.app\"\n}"
response = http.request(request)
puts response.read_body{
"status": 201,
"fluid_session": "fs_7kQx9mR2vWbT4nHcJ8pLz3"
}