FruxonDocs
ApiLlm provider configs

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.

POST
/v1/tenants/{tenant}/llmProviders/{llmProvider}:connect
AuthorizationBearer <token>

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

In: header

Path Parameters

llmProvider*string

The LLM provider 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 provider to send the link for. Leave out to create one.

Formatuuid
displayName?string|null

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

parameters?|null

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

requireSignIn?boolean

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.

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/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
}
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
}