FruxonDocs
IntegrationsAssets

Retrieves OAuth credentials obtained from a completed asset OAuth flow

Exchanges the short-lived credential key produced by the OAuth callback for the access/refresh token pair, then invalidates the key. Allowed anonymously because the OAuth success page runs before the user is reattached to a session; the key itself binds the response to the originating flow. Pass the returned tokens as the `auth` block when creating the asset via `POST /assets`. Calling this endpoint a second time with the same key returns 400.

GET
/v1/tenants/{tenant}/assets:oauthCredentials

Path Parameters

tenant*string

The tenant identifier

Query Parameters

credentialKey?string

The encrypted credential key from the OAuth success redirect.

Response Body

curl -X GET "https://api.fruxon.com/v1/tenants/string/assets:oauthCredentials"
{
  "accessToken": "string",
  "refreshToken": "string",
  "tokenType": "string",
  "expiresAt": 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
}