Skip to content
Support

Get tenant enrichment status

client.enrichmentStatus.retrieve(EnrichmentStatusRetrieveParams { tenant_id } query, RequestOptionsoptions?): EnrichmentStatusRetrieveResponse { emotions, sentiment, tenant_id, translation }
GET/v1/enrichment-status

Returns a tenant's enrichment progress across the record-level enrichments (translation, sentiment, emotions). For each, enabled reports whether the enrichment is active for the tenant (deployment-configured and switched on / with a resolvable target language), and eligible/done are directory-level counts of feedback records that qualify and that have been enriched — the UI derives "in progress" as eligible - done. When an enrichment is not enabled its counts are zero. The response contains counts only (no record identifiers or content).

ParametersExpand Collapse
query: EnrichmentStatusRetrieveParams { tenant_id }
tenant_id: string

Tenant whose enrichment status should be returned.

minLength1
maxLength255
ReturnsExpand Collapse
EnrichmentStatusRetrieveResponse { emotions, sentiment, tenant_id, translation }

A tenant's enrichment progress across the record-level enrichments. Counts are directory-level totals.

emotions: TypeStatus { done, eligible, enabled }

One enrichment's progress for a tenant. When enabled is false, eligible and done are zero.

done: number

Eligible records that have been enriched.

formatint64
eligible: number

Feedback records that qualify for this enrichment.

formatint64
enabled: boolean

Whether the enrichment is active for the tenant (deployment-configured and switched on / with a resolvable target language).

sentiment: TypeStatus { done, eligible, enabled }

One enrichment's progress for a tenant. When enabled is false, eligible and done are zero.

done: number

Eligible records that have been enriched.

formatint64
eligible: number

Feedback records that qualify for this enrichment.

formatint64
enabled: boolean

Whether the enrichment is active for the tenant (deployment-configured and switched on / with a resolvable target language).

tenant_id: string
translation: TypeStatus { done, eligible, enabled }

One enrichment's progress for a tenant. When enabled is false, eligible and done are zero.

done: number

Eligible records that have been enriched.

formatint64
eligible: number

Feedback records that qualify for this enrichment.

formatint64
enabled: boolean

Whether the enrichment is active for the tenant (deployment-configured and switched on / with a resolvable target language).

Get tenant enrichment status

import FormbricksHub from '@formbricks/hub';

const client = new FormbricksHub({
  apiKey: process.env['HUB_API_KEY'], // This is the default and can be omitted
});

const enrichmentStatus = await client.enrichmentStatus.retrieve({ tenant_id: 'org-123' });

console.log(enrichmentStatus.tenant_id);
{
  "emotions": {
    "done": 0,
    "eligible": 0,
    "enabled": true
  },
  "sentiment": {
    "done": 0,
    "eligible": 0,
    "enabled": true
  },
  "tenant_id": "tenant_id",
  "translation": {
    "done": 0,
    "eligible": 0,
    "enabled": true
  }
}
Returns Examples
{
  "emotions": {
    "done": 0,
    "eligible": 0,
    "enabled": true
  },
  "sentiment": {
    "done": 0,
    "eligible": 0,
    "enabled": true
  },
  "tenant_id": "tenant_id",
  "translation": {
    "done": 0,
    "eligible": 0,
    "enabled": true
  }
}