FruxonDocs
IntegrationsAssets

Estimates token count for any supported source type.

The accepted config keys and their validation rules are described by the `source-types` endpoint.

POST
/v1/tenants/{tenant}/assets:estimate
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 and configuration parameters.

config*

Represents a generalized configuration for an asset, serving as a transport model for storage and cross-system communication.

auth?

Auth credentials for an integration — the chosen auth method plus its filled-in parameters (API keys, tokens, …).

[key: string]?never

Response Body

curl -X POST "https://api.fruxon.com/v1/tenants/string/assets:estimate" \  -H "Content-Type: application/json" \  -d '{    "config": {}  }'
{
  "tokenCount": 0,
  "chunkCount": 0,
  "documentCount": 0,
  "documents": [
    {
      "fileName": "string",
      "tokenCount": 0,
      "chunkCount": 0
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
Empty
Empty