Create or rotate the callback secret
curl --request POST \
--url https://{host}/api/v1/integration/callback-secret \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({organisation_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://{host}/api/v1/integration/callback-secret', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/api/v1/integration/callback-secret"
payload = { "organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"organisation_id": "<string>",
"secret": "<string>"
}Integrations
Create or rotate the callback secret
Returns the new secret ONCE. Every POST to a request’s callback_url is signed with it (X-FireTone-Signature, exactly as webhooks). The old secret stops signing at once. Requires integrations:write.
Create or rotate the callback secret
curl --request POST \
--url https://{host}/api/v1/integration/callback-secret \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({organisation_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://{host}/api/v1/integration/callback-secret', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/api/v1/integration/callback-secret"
payload = { "organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"organisation_id": "<string>",
"secret": "<string>"
}Authorizations
Every request sends Authorization: Bearer <token>. The token is either a panel session (a JWT from /auth/login, 12 hours) or an API key ft_<id>_<secret>. An API key is accepted only from an address on its IP allowlist (403 ip_not_allowed otherwise; 403 ip_allowlist_required for an old key that has none), is limited to its rate per minute (429 rate_limited with Retry-After; X-RateLimit-Limit/Remaining/Reset on every response), and at most 60 call placements a minute.
Body
application/json