Forms
Get embed code
Returns the share link, the embed link, and HTML snippets that put the hosted form on another website. The form needs a public token first: without one this returns 422 Form has no public token. Generate one first.
GET
/
api
/
forms
/
{id}
/
embed_code
Get embed code
curl --request GET \
--url https://api.fluid.app/api/forms/{id}/embed_code \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fluid.app/api/forms/{id}/embed_code"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fluid.app/api/forms/{id}/embed_code', 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/forms/{id}/embed_code",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.fluid.app/api/forms/{id}/embed_code"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.fluid.app/api/forms/{id}/embed_code")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/forms/{id}/embed_code")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"iframe_snippet": "<iframe\n src=\"https://forms.fluid.app/R4mY8kTq2WzX6nLc0VbH5s?embed=true\"\n width=\"100%\"\n height=\"600\"\n frameborder=\"0\"\n style=\"border: none; max-width: 100%;\"\n allow=\"clipboard-write\"\n loading=\"lazy\"\n></iframe>",
"script_snippet": "<div id=\"fluid-form-R4mY8kTq2WzX6nLc0VbH5s\"></div>\n<script\n src=\"https://forms.fluid.app/embed/forms.js\"\n data-form-token=\"R4mY8kTq2WzX6nLc0VbH5s\"\n data-target=\"fluid-form-R4mY8kTq2WzX6nLc0VbH5s\"\n async\n></script>",
"share_url": "https://forms.fluid.app/R4mY8kTq2WzX6nLc0VbH5s",
"embed_url": "https://forms.fluid.app/R4mY8kTq2WzX6nLc0VbH5s?embed=true",
"meta": {
"request_id": "a4d9e2b7-1c58-4f03-9e6a-7b3f0d8c2e91",
"timestamp": "2026-10-07T16:05:12Z"
}
}Response
Success
Ready-to-paste code and links for the form's public token.
⌘I
Get embed code
curl --request GET \
--url https://api.fluid.app/api/forms/{id}/embed_code \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fluid.app/api/forms/{id}/embed_code"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fluid.app/api/forms/{id}/embed_code', 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/forms/{id}/embed_code",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.fluid.app/api/forms/{id}/embed_code"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.fluid.app/api/forms/{id}/embed_code")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/forms/{id}/embed_code")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"iframe_snippet": "<iframe\n src=\"https://forms.fluid.app/R4mY8kTq2WzX6nLc0VbH5s?embed=true\"\n width=\"100%\"\n height=\"600\"\n frameborder=\"0\"\n style=\"border: none; max-width: 100%;\"\n allow=\"clipboard-write\"\n loading=\"lazy\"\n></iframe>",
"script_snippet": "<div id=\"fluid-form-R4mY8kTq2WzX6nLc0VbH5s\"></div>\n<script\n src=\"https://forms.fluid.app/embed/forms.js\"\n data-form-token=\"R4mY8kTq2WzX6nLc0VbH5s\"\n data-target=\"fluid-form-R4mY8kTq2WzX6nLc0VbH5s\"\n async\n></script>",
"share_url": "https://forms.fluid.app/R4mY8kTq2WzX6nLc0VbH5s",
"embed_url": "https://forms.fluid.app/R4mY8kTq2WzX6nLc0VbH5s?embed=true",
"meta": {
"request_id": "a4d9e2b7-1c58-4f03-9e6a-7b3f0d8c2e91",
"timestamp": "2026-10-07T16:05:12Z"
}
}