Report chain
The chain
| Step | Call | Field that feeds the next step |
|---|---|---|
| 1. Resolve the company | companyByDuns(duns) or companyBySlug(slug) | Company.id |
| 2. If the company is missing, request it | createCompanyRequests | companyRequests[].id |
| 3. Wait for the request | companyRequest(id) until status = COMPLETED | CompanyRequest.company.id |
| 4. Pick a template | intelligenceReportTemplates | IntelligenceReportTemplate.id |
| 5. Request the report | requestCompanyIntelligenceReport | report.id |
| 6. Wait for the report | intelligenceReport(id) until generationStatus = SUCCESS | IntelligenceReport.id |
| 7. Read the report | intelligenceReport(id) with the content fields you need | — |
See Net-new company request, Report request, and Report status and retrieval.
Sample: resolve the company
query ResolveCompany {
companyByDuns(duns: "123456789") {
id
name
slug
}
}
{
"data": {
"companyByDuns": {
"id": "<company-id>",
"name": "Example Industries GmbH",
"slug": "example-industries"
}
}
}
Next call: use companyByDuns.id as input.companyId in requestCompanyIntelligenceReport. If companyByDuns is null, go to Net-new company request.