All notable changes to this project will be documented in this file.
This release aligns the SDK with the refactored Name To Domain API. The following endpoints and methods have changed.
- Endpoint:
POST /resolvehas been replaced byPOST /domain. resolve(company, country, ?idempotencyKey)has been replaced byresolve(company, country, ?array $emails = null).- Idempotency is no longer supported for the resolve endpoint.
- Optional
emailsarray can be provided for disambiguation.
The previous jobs API (POST /jobs, GET /jobs/{id}, GET /jobs/{id}/items) has been replaced by:
- Single enrichment:
POST /domain/enrich,GET /domain/enrich/{jobId} - Batch enrichment:
POST /domain/enrich/batch,GET /domain/enrich/batch/{jobId}
Method mapping:
| Removed | Replacement |
|---|---|
createJob(items, ?idempotencyKey) |
enrichBatch(items, ?idempotencyKey) – items may include emails?, identifier? |
job(jobId) |
enrichJob(jobId) for single enrich, or enrichBatchJob(jobId, page, perPage) for batch |
jobItems(jobId, page, perPage) |
enrichBatchJobItems(jobId, page, perPage) – results and pagination come from GET /domain/enrich/batch/{jobId} |
New methods:
enrich(company, country, ?emails, ?identifier, ?idempotencyKey)– create a single company enrichment job (POST /domain/enrich). ReturnsJob. Idempotency supported.enrichJob(jobId)– get a single enrichment job and itsoutputwhen completed. ReturnsEnrichJobResult(job+?outputJobItem).enrichBatchJob(jobId, page, perPage)– get a batch enrichment job withoutputandpaginationwhen completed. ReturnsEnrichBatchJobResult.
JobItemnow includes?string $identifier. Theresultarray may contain enrichment fields such asfavicon_url,trust,web_metadata,company_classification,email_provider_hints.EnrichJobResultandEnrichBatchJobResulthave been added.- Removed:
CreateJobRequest,GetJobRequest,GetJobItemsRequest. - Added:
EnrichRequest,EnrichBatchRequest,GetEnrichJobRequest,GetEnrichBatchRequest.
resolve(company, country, ?array $emails)– optional emails for disambiguation.enrich(),enrichJob(),enrichBatch(),enrichBatchJob(),enrichBatchJobItems()– full support for the domain enrichment API.