Connects the integration through a credential link.
Creates a configuration for the integration and mints a link asking for its credential, in one request; or, with `configId`, mints one for an existing configuration of it. With no `authMethod`, the configuration uses the one application-level method a link can connect: 409 `not_linkable` when there is none or more than one. What the link needs is checked before anything is created (the method, the provider's sign-in and the `scopes`, the lifetime, and the settings: an unknown, secret or missing one is a 400), and a link that still cannot be minted removes the configuration this request created. A sign-in link (`requireSignIn`, true unless set false) takes `integrations:write`. A link anyone holding it can fill takes `workspace:write` as well.
Authorization
Bearer JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.
In: header
Path Parameters
The integration ID.
The tenant identifier
The configuration to connect or create, and the link to send.
An existing configuration of the integration to send the link for. Leave out to create one.
uuidThe new configuration's name; the integration's own name when unset.
The new configuration's auth method, as the integration declares it. Unset: the one application-level method a link can connect.
The new configuration's settings, by name. Never a secret one: the link asks for those.
For a method that signs in through its provider (OAuth): the scopes to ask for. Its recommended ones when unset.
Open only for a signed-in member of the workspace whose role may set up integrations, who fills it as themselves.
True unless set false; a link anyone holding it can fill takes workspace:write.
Who the link is for, for the open-links list. Never checked, and nothing is sent to it.
A note to whoever fills it, shown above the form.
How long the link works, in hours: 1 to 720, 168 when unset.
int32Response Body
curl -X POST "https://api.fruxon.com/v1/tenants/string/integrations/string:connect" \ -H "Content-Type: application/json" \ -d '{}'{
"configId": "00000000-0000-0000-0000-000000000000",
"createdConfig": false,
"authMethod": "string",
"link": {
"id": "00000000-0000-0000-0000-000000000000",
"url": "string",
"intendedForEmail": "string",
"note": "string",
"mode": "CAPABILITY",
"issuedByUserId": "string",
"issuedByName": "string",
"issuedByAgentId": "string",
"issuedByAgentName": "string",
"target": "INTEGRATION",
"status": "OPEN",
"expiresAt": 0,
"closedAt": 0,
"createdAt": 0
}
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}Rotates the inbound webhook key for this configuration.
Mints a fresh key, stamps the new id on the config, revokes the previous key. Returns the new URL exactly once. Traffic on the previous URL stops immediately — re-register the new URL with the provider before traffic resumes. Revoking the previous key is retried, and if it still fails the rotate succeeds anyway, since the new key is already in place, and answers `previousKeyRevoked: false`: the previous key no longer delivers here but remains a valid credential. Returns 400 when the integration declares per-binding ownership (rotate is per-binding for those), or when no key is currently bound (use `:generateWebhookUrl` to mint the first one).
Gets one of the configuration's credential links and where it stands.
Whatever the link came to: `OPEN`, `FILLED`, `REFUSED`, `EXPIRED`, `LOCKED` or `WITHDRAWN`, with when it closed. What a sender waiting on a link polls; the link itself is never returned.