FruxonDocs
IntegrationsCore

Consumes temporarily stored OAuth credentials from a completed application-level OAuth flow and creates an `IntegrationAuth` record bound to the specified integration config.

The credential key is returned to the frontend via the OAuth success redirect after the user completes authorization. The resulting connection is shared by every agent that references the target config. The credential key is single-use.

POST
/v1/tenants/{tenant}/integrations/{integration}:consumeOAuthCredentials
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 credential key plus the config to bind the credentials to.

credentialKey*string

The encrypted credential key from the OAuth success redirect.

Length1 <= length
integrationConfigId*string

The integration config to bind the OAuth credentials to.

Formatuuid
[key: string]?never

Response Body

curl -X POST "https://api.fruxon.com/v1/tenants/string/integrations/string:consumeOAuthCredentials" \  -H "Content-Type: application/json" \  -d '{    "credentialKey": "string",    "integrationConfigId": "928c9032-93b2-49a3-82db-be1a31402d0e"  }'
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
Empty
Empty