Theme widgets
Copy a native widget into a theme
Gives one of the company’s themes its own editable copy of a Fluid native widget, carrying the widget’s source, settings and locales. The copy replaces the widget at every placement in that theme. Returns 201 with a new copy, or 200 with the copy the theme already has. Requires theme update permission and the native widget catalog; a company without the catalog gets 404.
POST
/
api
/
v202604
/
themes
/
{theme_id}
/
native-widget-copies
Copy a native widget into a theme
curl --request POST \
--url https://api.fluid.app/api/v202604/themes/{theme_id}/native-widget-copies \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"native_widget_key": "earnings"
}
'import requests
url = "https://api.fluid.app/api/v202604/themes/{theme_id}/native-widget-copies"
payload = { "native_widget_key": "earnings" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({native_widget_key: 'earnings'})
};
fetch('https://api.fluid.app/api/v202604/themes/{theme_id}/native-widget-copies', 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/v202604/themes/{theme_id}/native-widget-copies",
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([
'native_widget_key' => 'earnings'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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/v202604/themes/{theme_id}/native-widget-copies"
payload := strings.NewReader("{\n \"native_widget_key\": \"earnings\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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/v202604/themes/{theme_id}/native-widget-copies")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"native_widget_key\": \"earnings\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/v202604/themes/{theme_id}/native-widget-copies")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"native_widget_key\": \"earnings\"\n}"
response = http.request(request)
puts response.read_body{
"template": {
"id": 902377,
"name": "fluid_native_earnings",
"themeable_type": "sections",
"status": "draft",
"application_theme_id": 48213,
"company_id": 1405,
"global": false,
"source": "theme",
"native_widget_key": null,
"native_widget_uri": null,
"customized_native_widget_key": "earnings"
},
"status": 200,
"meta": {
"request_uuid": "4d8e1b63-7a2c-4f95-8e07-c3b6a9d2f150",
"timestamp": "2026-10-20T16:41:12Z"
}
}{
"template": {
"id": 902377,
"name": "fluid_native_earnings",
"themeable_type": "sections",
"status": "draft",
"application_theme_id": 48213,
"company_id": 1405,
"global": false,
"source": "theme",
"native_widget_key": null,
"native_widget_uri": null,
"customized_native_widget_key": "earnings"
},
"status": 201,
"meta": {
"request_uuid": "9b2f4c71-3e8a-4d06-b5c9-1a7e2f6d8c43",
"timestamp": "2026-10-20T16:40:56Z"
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"error": {
"message": "<string>",
"details": {}
},
"status": 123,
"meta": {}
}{
"error": {
"message": "<string>",
"details": {}
},
"status": 123,
"meta": {}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Company-owned theme that receives the copy.
Required range:
x >= 1Body
application/json
Key of the native widget to copy, as in a template's native_widget_key.
Minimum string length:
1Response
The copy the theme already has.
⌘I
Copy a native widget into a theme
curl --request POST \
--url https://api.fluid.app/api/v202604/themes/{theme_id}/native-widget-copies \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"native_widget_key": "earnings"
}
'import requests
url = "https://api.fluid.app/api/v202604/themes/{theme_id}/native-widget-copies"
payload = { "native_widget_key": "earnings" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({native_widget_key: 'earnings'})
};
fetch('https://api.fluid.app/api/v202604/themes/{theme_id}/native-widget-copies', 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/v202604/themes/{theme_id}/native-widget-copies",
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([
'native_widget_key' => 'earnings'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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/v202604/themes/{theme_id}/native-widget-copies"
payload := strings.NewReader("{\n \"native_widget_key\": \"earnings\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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/v202604/themes/{theme_id}/native-widget-copies")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"native_widget_key\": \"earnings\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/v202604/themes/{theme_id}/native-widget-copies")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"native_widget_key\": \"earnings\"\n}"
response = http.request(request)
puts response.read_body{
"template": {
"id": 902377,
"name": "fluid_native_earnings",
"themeable_type": "sections",
"status": "draft",
"application_theme_id": 48213,
"company_id": 1405,
"global": false,
"source": "theme",
"native_widget_key": null,
"native_widget_uri": null,
"customized_native_widget_key": "earnings"
},
"status": 200,
"meta": {
"request_uuid": "4d8e1b63-7a2c-4f95-8e07-c3b6a9d2f150",
"timestamp": "2026-10-20T16:41:12Z"
}
}{
"template": {
"id": 902377,
"name": "fluid_native_earnings",
"themeable_type": "sections",
"status": "draft",
"application_theme_id": 48213,
"company_id": 1405,
"global": false,
"source": "theme",
"native_widget_key": null,
"native_widget_uri": null,
"customized_native_widget_key": "earnings"
},
"status": 201,
"meta": {
"request_uuid": "9b2f4c71-3e8a-4d06-b5c9-1a7e2f6d8c43",
"timestamp": "2026-10-20T16:40:56Z"
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"error": {
"message": "<string>",
"details": {}
},
"status": 123,
"meta": {}
}{
"error": {
"message": "<string>",
"details": {}
},
"status": 123,
"meta": {}
}