Get widget frame ancestors
/link-ui/{id}/frame-ancestors
The list of origins allowed to embed an environment's connections
widget, in the form the hosting edge turns into a
Content-Security-Policy: frame-ancestors header. Configure the list on
the environment's Link UI; this endpoint is the read side of it.
This endpoint is unauthenticated by design. The edge that serves the
widget document holds no credential — the whole point of the widget's
handshake is that no token ever rides in the iframe URL — so this route
has to answer without one. What it discloses is a list of public
websites, strictly less than the frame-ancestors header it becomes,
which any visitor to the widget can already read.
It always returns 200. An unknown, unconfigured or malformed
environment id returns an empty list rather than a 404, so the route
cannot be used to enumerate which environments exist. An empty list
means the edge emits frame-ancestors 'self' — its fail-closed
default, so an environment nobody has configured is framable only by the
dashboard's own origin. 'self' rather than 'none' because the
dashboard's settings page frames the widget document to preview it;
doing so still needs a page on that exact origin and the ability to
mint a tenant session, which already implies access to the same data.
Responses are cacheable for 60 seconds, which is short enough that an origin change propagates within a minute and long enough that the edge does not re-query on every iframe load.
Path Parameters
The environment id. A Link UI row is keyed by its environment.
8a2b104d-74a6-47f2-b93e-c6b611e82391Response Body
Bare origins — scheme, host and optional port, no path. Anything stored that is not a bare origin is dropped on read.
["https://app.acme.com"]curl -X GET 'https://api.truto.one/link-ui/{id}/frame-ancestors' \
-H 'Authorization: Bearer <your_api_token>' \
-H 'Content-Type: application/json'const response = await fetch('https://api.truto.one/link-ui/{id}/frame-ancestors', {
method: 'GET',
headers: {
'Authorization': 'Bearer <your_api_token>',
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);import requests
url = "https://api.truto.one/link-ui/{id}/frame-ancestors"
headers = {
"Authorization": "Bearer <your_api_token>",
"Content-Type": "application/json",
}
params = {
}
response = requests.get(url, headers=headers, params=params)
print(response.json())