API query params
Add host query params to the package's HTTP requests. Built-in request params win on conflict. The socket connection and presigned S3 uploads are not affected.
Default: queryParams go to all GET APIs (queryParamApis defaults to ['get']); POST / PATCH calls are untouched unless you use ['all'].
1. Same params on every GET API
typescript
configureChat({queryParams: {branchId: '12'}});2. Different params per API
typescript
configureChat({ queryParamsByApi: { conversations: {branchId: '12'}, messages: {locale: 'en'}, users: {'metadata.workspaceIds': 'ws_123'}, // Fieldr uses this for the user pickers },});queryParamApis options (CHAT_API_KEYS)
Imperative helpers
setChatQueryParams(params), setChatQueryParamApis(keys), setChatQueryParamsByApi(map), getChatQueryParamState(), resolveParamsForRequest(url, method), resolveChatApiKey(url, method).