FruxonDocs
IntegrationsAssets

Initiates an OAuth flow for an asset source type that supports OAuth (e.g

Generates a per-request state-bound authorization URL for a source type whose descriptor (see `GET /assets:sourceTypes`) advertises OAuth support. The frontend opens the URL in a popup; on completion the OAuth callback redirects to a success page carrying a single-use credential key that must be exchanged via `GET /assets:oauthCredentials`. Returns 400 for source types that do not support OAuth.

POST
/v1/tenants/{tenant}/assets:authorize
AuthorizationBearer <token>

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

In: header

Path Parameters

tenant*string

The tenant identifier

The source type to authorize.

sourceType*string

The asset source type (e.g. "google_drive").

Length1 <= length
[key: string]?never

Response Body

curl -X POST "https://api.fruxon.com/v1/tenants/string/assets:authorize" \  -H "Content-Type: application/json" \  -d '{    "sourceType": "string"  }'
{
  "authorizationUrl": "string"
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
Empty
Empty