FruxonDocs
IntegrationsConfigs

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.

POST
/v1/tenants/{tenant}/integrations/{integration}:connect
AuthorizationBearer <token>

JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.

In: header

Path Parameters

integration*string

The integration ID.

tenant*string

The tenant identifier

The configuration to connect or create, and the link to send.

configId?string|null

An existing configuration of the integration to send the link for. Leave out to create one.

Formatuuid
displayName?string|null

The new configuration's name; the integration's own name when unset.

authMethod?string|null

The new configuration's auth method, as the integration declares it. Unset: the one application-level method a link can connect.

parameters?|null

The new configuration's settings, by name. Never a secret one: the link asks for those.

scopes?|null

For a method that signs in through its provider (OAuth): the scopes to ask for. Its recommended ones when unset.

requireSignIn?boolean

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.

intendedForEmail?string|null

Who the link is for, for the open-links list. Never checked, and nothing is sent to it.

note?string|null

A note to whoever fills it, shown above the form.

ttlHours?integer|null

How long the link works, in hours: 1 to 720, 168 when unset.

Formatint32
[key: string]?never

Response 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
}
Empty
{
  "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
}