Create post-connect form token
/integrated-account/form-token
Session tokens only. Every other credential is refused with 403 — an API token or dashboard session already has POST /integrated-account/token, and this route exists precisely because that one is too powerful to expose to a browser.
Mints a purpose-limited integrated account token so the embedded connections widget can reopen an existing connection's post-connect form. Unlike an ordinary integrated account token, the token this returns is narrowed at the auth layer to exactly what rendering and submitting one form takes — GET and POST /link-token/post-connect-form, plus GET /integrated-account/me for its own account — and nothing else. It cannot reach /proxy, /unified, /custom, and it cannot PATCH /integrated-account/me. It lives for 10 minutes and cannot be refreshed.
GET /integrated-account/me answers it with the credentials redacted, except context.oauth.token.access_token for an integration whose browser file picker requires it (Google Drive, Box). A refresh_token is never returned to this token.
The connection must belong to the session's own tenant — any other account answers 404, the same as one that does not exist — and the integration must still define a post_connect_user_form action. Requires connections.allow_configure on the environment's link_ui config, which is off by default.
Rate limited to 5 requests per minute per session.
Request Body
The connection whose post-connect form should be reopened. Must belong to this session's tenant.
1ba1f401-7183-47c5-9e39-e8e257e3c795Response Body
When the token stops working.
2021-08-10T10:10:00.000ZThe purpose-limited token. Keep it in memory; never put it in a URL.
1ba1f401-7183-47c5-9e39-e8e257e3c795Errors
| Status | Description |
|---|---|
403 | Not a session token, or connections.allow_configure is not enabled for this environment. |
404 | The connection does not belong to this tenant, or the integration has no post-connect form. |
429 | Too many requests for this session. |
curl -X POST 'https://api.truto.one/integrated-account/form-token' \
-H 'Authorization: Bearer <your_api_token>' \
-H 'Content-Type: application/json' \
-d '{
"integrated_account_id": "1ba1f401-7183-47c5-9e39-e8e257e3c795"
}'const body = {
"integrated_account_id": "1ba1f401-7183-47c5-9e39-e8e257e3c795"
};
const response = await fetch('https://api.truto.one/integrated-account/form-token', {
method: 'POST',
headers: {
'Authorization': 'Bearer <your_api_token>',
'Content-Type': 'application/json',
},
body: JSON.stringify(body),
});
const data = await response.json();
console.log(data);import requests
url = "https://api.truto.one/integrated-account/form-token"
headers = {
"Authorization": "Bearer <your_api_token>",
"Content-Type": "application/json",
}
params = {
}
payload = {
"integrated_account_id": "1ba1f401-7183-47c5-9e39-e8e257e3c795"
}
response = requests.post(url, headers=headers, params=params, json=payload)
print(response.json())