Listing knowledge hubs requires a key with the
campaigns scope. See scopes.List your knowledge hubs
A hub with status
processing is still ingesting content. You can ground a campaign on it, but generation only draws on what has been ingested so far, so the result is thinner than waiting for complete. If you control the timing, poll until the hub reports complete before creating the campaign.
Use a hub in a campaign
Pass the hub’sid as knowledgeHubId when creating an AI campaign. It only applies to AI-generated campaigns — manual campaigns bring their own copy, so there is nothing for a hub to ground.
knowledgeHubId, generation uses the hub marked isDefault: true. If you name a hub that doesn’t exist or doesn’t belong to you, the request fails with 404 KNOWLEDGE_HUB_NOT_FOUND in the standard error envelope:
knowledgeHubId fails loudly instead of quietly producing emails about someone else’s product.
Where to next
Campaigns
The full campaign creation flow, including the rest of the AI generation options.
API reference
Complete request and response schemas for every endpoint.