v27

latestOpenAPI 3.1.0Proprietaryraw.githubusercontent.com2026-06-0872127230.6 KB
Gaps

Generate content gaps

Generate content gaps from competitor URLs. Optional favorite_id scopes the resulting gaps to a product/identity and uses ai_favorites.domain as the analysis target instead of the tenant blog domain. Cross-tenant favorite_id is rejected with 403 before credits are charged.

post/api/agent/gaps/generate

Request body

competitor_urlsstring[] required
favorite_idstring uuid

Optional favorite (product identity) ID from ai_favorites. Owner-checked against tenant; gaps are tagged and analysis domain is overridden to ai_favorites.domain.

Response

Gaps generated

gaps_foundinteger required
gapsobject[] required
credits_usednumber required