Connects the LLM provider through a credential link.
Creates a configuration for the provider and mints a link asking for its secret settings, in one request; or, with `configId`, mints one for an existing configuration of it. What the link needs is checked before anything is created: 409 `not_linkable` for a provider that borrows its credential from another (naming the owner) or takes none, 400 for an unknown, secret or missing setting or one the workspace's residency posture refuses. A link that still cannot be minted removes the configuration this request created. A sign-in link (`requireSignIn`, true unless set false) takes `llm_providers: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 LLM provider ID.
The tenant identifier
The configuration to connect or create, and the link to send.
An existing configuration of the provider to send the link for. Leave out to create one.
uuidThe new configuration's name; the provider's own name when unset.
The new configuration's settings, by name (a region, a project). Never a secret one: the link asks for those.
Open only for a signed-in member of the workspace whose role may set up model providers, 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/llmProviders/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
}