Forms and leads
Save a new page visit
deprecated
Deprecated: use Save a new url visit, which records the same event. Records a page view (url, title, description, image) against the visitor’s session and, when metadata.attribution identifies a rep, credits that rep. Send the shop in metadata.fluid_shop and the session token in metadata.fluid_session; an unknown shop returns 404 and an invalid session token 422. No authentication is required. The response carries only the status and request metadata.
POST
/
api
/
public
/
v2025-06
/
events
/
pages
/
visit
Save a new page visit
curl --request POST \
--url https://api.fluid.app/api/public/v2025-06/events/pages/visit \
--header 'Content-Type: application/json' \
--data '
{
"page": {
"url": "https://shop.dundermifflin.com/products/20lb-copy-paper",
"title": "Dunder Mifflin 20lb Copy Paper",
"description": "Bright white, jam-free 20lb copy paper. Ten reams per case.",
"image": "https://cdn.fluid.app/uploads/dunder-mifflin/products/20lb-copy-paper/case.jpg"
},
"metadata": {
"fluid_shop": "dunder-mifflin.fluid.app",
"fluid_session": "fs_7kQx9mR2vWbT4nHcJ8pLz3",
"fluid_locale": "en_US",
"attribution": {
"username": "dwight-schrute"
}
}
}
'import requests
url = "https://api.fluid.app/api/public/v2025-06/events/pages/visit"
payload = {
"page": {
"url": "https://shop.dundermifflin.com/products/20lb-copy-paper",
"title": "Dunder Mifflin 20lb Copy Paper",
"description": "Bright white, jam-free 20lb copy paper. Ten reams per case.",
"image": "https://cdn.fluid.app/uploads/dunder-mifflin/products/20lb-copy-paper/case.jpg"
},
"metadata": {
"fluid_shop": "dunder-mifflin.fluid.app",
"fluid_session": "fs_7kQx9mR2vWbT4nHcJ8pLz3",
"fluid_locale": "en_US",
"attribution": { "username": "dwight-schrute" }
}
}
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({
page: {
url: 'https://shop.dundermifflin.com/products/20lb-copy-paper',
title: 'Dunder Mifflin 20lb Copy Paper',
description: 'Bright white, jam-free 20lb copy paper. Ten reams per case.',
image: 'https://cdn.fluid.app/uploads/dunder-mifflin/products/20lb-copy-paper/case.jpg'
},
metadata: {
fluid_shop: 'dunder-mifflin.fluid.app',
fluid_session: 'fs_7kQx9mR2vWbT4nHcJ8pLz3',
fluid_locale: 'en_US',
attribution: {username: 'dwight-schrute'}
}
})
};
fetch('https://api.fluid.app/api/public/v2025-06/events/pages/visit', 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/events/pages/visit",
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([
'page' => [
'url' => 'https://shop.dundermifflin.com/products/20lb-copy-paper',
'title' => 'Dunder Mifflin 20lb Copy Paper',
'description' => 'Bright white, jam-free 20lb copy paper. Ten reams per case.',
'image' => 'https://cdn.fluid.app/uploads/dunder-mifflin/products/20lb-copy-paper/case.jpg'
],
'metadata' => [
'fluid_shop' => 'dunder-mifflin.fluid.app',
'fluid_session' => 'fs_7kQx9mR2vWbT4nHcJ8pLz3',
'fluid_locale' => 'en_US',
'attribution' => [
'username' => 'dwight-schrute'
]
]
]),
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/events/pages/visit"
payload := strings.NewReader("{\n \"page\": {\n \"url\": \"https://shop.dundermifflin.com/products/20lb-copy-paper\",\n \"title\": \"Dunder Mifflin 20lb Copy Paper\",\n \"description\": \"Bright white, jam-free 20lb copy paper. Ten reams per case.\",\n \"image\": \"https://cdn.fluid.app/uploads/dunder-mifflin/products/20lb-copy-paper/case.jpg\"\n },\n \"metadata\": {\n \"fluid_shop\": \"dunder-mifflin.fluid.app\",\n \"fluid_session\": \"fs_7kQx9mR2vWbT4nHcJ8pLz3\",\n \"fluid_locale\": \"en_US\",\n \"attribution\": {\n \"username\": \"dwight-schrute\"\n }\n }\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/events/pages/visit")
.header("Content-Type", "application/json")
.body("{\n \"page\": {\n \"url\": \"https://shop.dundermifflin.com/products/20lb-copy-paper\",\n \"title\": \"Dunder Mifflin 20lb Copy Paper\",\n \"description\": \"Bright white, jam-free 20lb copy paper. Ten reams per case.\",\n \"image\": \"https://cdn.fluid.app/uploads/dunder-mifflin/products/20lb-copy-paper/case.jpg\"\n },\n \"metadata\": {\n \"fluid_shop\": \"dunder-mifflin.fluid.app\",\n \"fluid_session\": \"fs_7kQx9mR2vWbT4nHcJ8pLz3\",\n \"fluid_locale\": \"en_US\",\n \"attribution\": {\n \"username\": \"dwight-schrute\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/public/v2025-06/events/pages/visit")
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 \"page\": {\n \"url\": \"https://shop.dundermifflin.com/products/20lb-copy-paper\",\n \"title\": \"Dunder Mifflin 20lb Copy Paper\",\n \"description\": \"Bright white, jam-free 20lb copy paper. Ten reams per case.\",\n \"image\": \"https://cdn.fluid.app/uploads/dunder-mifflin/products/20lb-copy-paper/case.jpg\"\n },\n \"metadata\": {\n \"fluid_shop\": \"dunder-mifflin.fluid.app\",\n \"fluid_session\": \"fs_7kQx9mR2vWbT4nHcJ8pLz3\",\n \"fluid_locale\": \"en_US\",\n \"attribution\": {\n \"username\": \"dwight-schrute\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"status": 201,
"metadata": {
"fluid_shop": "dunder-mifflin.fluid.app",
"fluid_session": "fs_7kQx9mR2vWbT4nHcJ8pLz3",
"fluid_locale": "en_US",
"request_uuid": "f4b7e2c9-1a3d-4e86-b5f0-6c2a9d8e3b17",
"timestamp": "2026-09-14T15:30:21Z"
}
}⌘I
Save a new page visit
curl --request POST \
--url https://api.fluid.app/api/public/v2025-06/events/pages/visit \
--header 'Content-Type: application/json' \
--data '
{
"page": {
"url": "https://shop.dundermifflin.com/products/20lb-copy-paper",
"title": "Dunder Mifflin 20lb Copy Paper",
"description": "Bright white, jam-free 20lb copy paper. Ten reams per case.",
"image": "https://cdn.fluid.app/uploads/dunder-mifflin/products/20lb-copy-paper/case.jpg"
},
"metadata": {
"fluid_shop": "dunder-mifflin.fluid.app",
"fluid_session": "fs_7kQx9mR2vWbT4nHcJ8pLz3",
"fluid_locale": "en_US",
"attribution": {
"username": "dwight-schrute"
}
}
}
'import requests
url = "https://api.fluid.app/api/public/v2025-06/events/pages/visit"
payload = {
"page": {
"url": "https://shop.dundermifflin.com/products/20lb-copy-paper",
"title": "Dunder Mifflin 20lb Copy Paper",
"description": "Bright white, jam-free 20lb copy paper. Ten reams per case.",
"image": "https://cdn.fluid.app/uploads/dunder-mifflin/products/20lb-copy-paper/case.jpg"
},
"metadata": {
"fluid_shop": "dunder-mifflin.fluid.app",
"fluid_session": "fs_7kQx9mR2vWbT4nHcJ8pLz3",
"fluid_locale": "en_US",
"attribution": { "username": "dwight-schrute" }
}
}
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({
page: {
url: 'https://shop.dundermifflin.com/products/20lb-copy-paper',
title: 'Dunder Mifflin 20lb Copy Paper',
description: 'Bright white, jam-free 20lb copy paper. Ten reams per case.',
image: 'https://cdn.fluid.app/uploads/dunder-mifflin/products/20lb-copy-paper/case.jpg'
},
metadata: {
fluid_shop: 'dunder-mifflin.fluid.app',
fluid_session: 'fs_7kQx9mR2vWbT4nHcJ8pLz3',
fluid_locale: 'en_US',
attribution: {username: 'dwight-schrute'}
}
})
};
fetch('https://api.fluid.app/api/public/v2025-06/events/pages/visit', 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/events/pages/visit",
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([
'page' => [
'url' => 'https://shop.dundermifflin.com/products/20lb-copy-paper',
'title' => 'Dunder Mifflin 20lb Copy Paper',
'description' => 'Bright white, jam-free 20lb copy paper. Ten reams per case.',
'image' => 'https://cdn.fluid.app/uploads/dunder-mifflin/products/20lb-copy-paper/case.jpg'
],
'metadata' => [
'fluid_shop' => 'dunder-mifflin.fluid.app',
'fluid_session' => 'fs_7kQx9mR2vWbT4nHcJ8pLz3',
'fluid_locale' => 'en_US',
'attribution' => [
'username' => 'dwight-schrute'
]
]
]),
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/events/pages/visit"
payload := strings.NewReader("{\n \"page\": {\n \"url\": \"https://shop.dundermifflin.com/products/20lb-copy-paper\",\n \"title\": \"Dunder Mifflin 20lb Copy Paper\",\n \"description\": \"Bright white, jam-free 20lb copy paper. Ten reams per case.\",\n \"image\": \"https://cdn.fluid.app/uploads/dunder-mifflin/products/20lb-copy-paper/case.jpg\"\n },\n \"metadata\": {\n \"fluid_shop\": \"dunder-mifflin.fluid.app\",\n \"fluid_session\": \"fs_7kQx9mR2vWbT4nHcJ8pLz3\",\n \"fluid_locale\": \"en_US\",\n \"attribution\": {\n \"username\": \"dwight-schrute\"\n }\n }\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/events/pages/visit")
.header("Content-Type", "application/json")
.body("{\n \"page\": {\n \"url\": \"https://shop.dundermifflin.com/products/20lb-copy-paper\",\n \"title\": \"Dunder Mifflin 20lb Copy Paper\",\n \"description\": \"Bright white, jam-free 20lb copy paper. Ten reams per case.\",\n \"image\": \"https://cdn.fluid.app/uploads/dunder-mifflin/products/20lb-copy-paper/case.jpg\"\n },\n \"metadata\": {\n \"fluid_shop\": \"dunder-mifflin.fluid.app\",\n \"fluid_session\": \"fs_7kQx9mR2vWbT4nHcJ8pLz3\",\n \"fluid_locale\": \"en_US\",\n \"attribution\": {\n \"username\": \"dwight-schrute\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/public/v2025-06/events/pages/visit")
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 \"page\": {\n \"url\": \"https://shop.dundermifflin.com/products/20lb-copy-paper\",\n \"title\": \"Dunder Mifflin 20lb Copy Paper\",\n \"description\": \"Bright white, jam-free 20lb copy paper. Ten reams per case.\",\n \"image\": \"https://cdn.fluid.app/uploads/dunder-mifflin/products/20lb-copy-paper/case.jpg\"\n },\n \"metadata\": {\n \"fluid_shop\": \"dunder-mifflin.fluid.app\",\n \"fluid_session\": \"fs_7kQx9mR2vWbT4nHcJ8pLz3\",\n \"fluid_locale\": \"en_US\",\n \"attribution\": {\n \"username\": \"dwight-schrute\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"status": 201,
"metadata": {
"fluid_shop": "dunder-mifflin.fluid.app",
"fluid_session": "fs_7kQx9mR2vWbT4nHcJ8pLz3",
"fluid_locale": "en_US",
"request_uuid": "f4b7e2c9-1a3d-4e86-b5f0-6c2a9d8e3b17",
"timestamp": "2026-09-14T15:30:21Z"
}
}