Get enrichment run status
client.enrichmentRun.getEnrichmentRun(stringrunID, RequestOptionsoptions?): EnrichmentRunGetEnrichmentRunResponse { id, completedAt, createdAt, 7 more }
GET/v1/enrichmentRun/{runId}
Returns the status of an enrichment run by its ID.
Required scopes: contacts:read for a contact run, accounts:read for an account run
Rate limit category: Read
Get enrichment run status
import Lightfield from 'lightfield';
const client = new Lightfield({
apiKey: 'My API Key',
});
const enrichmentRunGetEnrichmentRunResponse = await client.enrichmentRun.getEnrichmentRun('runId');
console.log(enrichmentRunGetEnrichmentRunResponse.id);{
"id": "id",
"completedAt": "completedAt",
"createdAt": "createdAt",
"entityId": "entityId",
"entityType": "contact",
"startedAt": "startedAt",
"status": "queued",
"targetFields": [
"string"
],
"trigger": "creation",
"updatedAt": "updatedAt"
}Returns Examples
{
"id": "id",
"completedAt": "completedAt",
"createdAt": "createdAt",
"entityId": "entityId",
"entityType": "contact",
"startedAt": "startedAt",
"status": "queued",
"targetFields": [
"string"
],
"trigger": "creation",
"updatedAt": "updatedAt"
}