Rotate a droplet's webhook secret
Generates a new webhook secret for a droplet your company publishes and returns it, once. This is how you obtain the secret on v2026-10: no other response returns it, and asking again rotates again.
The old secret stops being used the moment the new one is saved: every webhook and data request Fluid signs from then on uses the new one, so update your droplet straight away. A lifecycle webhook already queued when you rotate is still signed with the old one. A droplet built in Mist has the new secret written to its app’s FLUID_DROPLET_SECRET and FLUID_WEBHOOK_AUTH_TOKEN and is redeployed. A Mist app with no linked GitHub repository gets the new values but is not redeployed, so it keeps verifying with the old secret until its next deploy; deploy it yourself after rotating.
Another company’s droplet is a 404. The response is never cached. Needs the droplets.update permission, including for a Fluid root admin’s sign-in narrowed to company admin.
curl --request POST \
--url https://api.fluid.app/api/company/v2026-10/droplets/{uuid}/webhook-secret-rotations \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fluid.app/api/company/v2026-10/droplets/{uuid}/webhook-secret-rotations"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fluid.app/api/company/v2026-10/droplets/{uuid}/webhook-secret-rotations', 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/company/v2026-10/droplets/{uuid}/webhook-secret-rotations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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/company/v2026-10/droplets/{uuid}/webhook-secret-rotations"
req, _ := http.NewRequest("POST", 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.post("https://api.fluid.app/api/company/v2026-10/droplets/{uuid}/webhook-secret-rotations")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/company/v2026-10/droplets/{uuid}/webhook-secret-rotations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"webhook_secret_rotation": {
"droplet_uuid": "drp_9xk2mt7pq4rz1bwc8hd5nfy3jvs6ale0",
"webhook_secret": "dws_3Fq8mZr2kTn6vXb1cLw9yHd4pJs7aGe5u",
"rotated_at": "2026-10-20T15:32:08Z"
},
"status": 201,
"meta": {
"request_id": "7e2c9b41-3f8a-4d15-b6e0-9a4c21d7f583",
"timestamp": "2026-10-20T15:32:08Z"
}
}{
"message": "Invalid credentials."
}{
"message": "Not authorized."
}{
"error": {
"message": "Droplet not found",
"details": {}
},
"status": 404,
"meta": {
"request_id": "7e2c9b41-3f8a-4d15-b6e0-9a4c21d7f583",
"timestamp": "2026-10-20T15:32:08Z"
}
}Authorizations
A company admin credential for your company. Droplet installation tokens are refused.
Path Parameters
The uuid of a droplet your company publishes.
Response
The new secret.
The droplet's new webhook secret. Returned only here, once.
curl --request POST \
--url https://api.fluid.app/api/company/v2026-10/droplets/{uuid}/webhook-secret-rotations \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fluid.app/api/company/v2026-10/droplets/{uuid}/webhook-secret-rotations"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fluid.app/api/company/v2026-10/droplets/{uuid}/webhook-secret-rotations', 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/company/v2026-10/droplets/{uuid}/webhook-secret-rotations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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/company/v2026-10/droplets/{uuid}/webhook-secret-rotations"
req, _ := http.NewRequest("POST", 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.post("https://api.fluid.app/api/company/v2026-10/droplets/{uuid}/webhook-secret-rotations")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/company/v2026-10/droplets/{uuid}/webhook-secret-rotations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"webhook_secret_rotation": {
"droplet_uuid": "drp_9xk2mt7pq4rz1bwc8hd5nfy3jvs6ale0",
"webhook_secret": "dws_3Fq8mZr2kTn6vXb1cLw9yHd4pJs7aGe5u",
"rotated_at": "2026-10-20T15:32:08Z"
},
"status": 201,
"meta": {
"request_id": "7e2c9b41-3f8a-4d15-b6e0-9a4c21d7f583",
"timestamp": "2026-10-20T15:32:08Z"
}
}{
"message": "Invalid credentials."
}{
"message": "Not authorized."
}{
"error": {
"message": "Droplet not found",
"details": {}
},
"status": 404,
"meta": {
"request_id": "7e2c9b41-3f8a-4d15-b6e0-9a4c21d7f583",
"timestamp": "2026-10-20T15:32:08Z"
}
}