Content generation
Use POST /generate-content when you want SEOforGPT to create a draft from project context. This route consumes content quota and returns a report id you can fetch later.
POST /generate-content
Body: projectId, platform (blog, linkedin, thread), topic, plus optional metadata and promptType.
curl --request POST \
--url https://www.seoforgpt.io/api/v1/generate-content \
--header "Authorization: Bearer $SEOFORGPT_TOKEN" \
--header "Content-Type: application/json" \
--data '{"projectId":"<uuid>","platform":"blog","topic":"How to measure AI search visibility"}'- The response includes
data.idforGET /reports/:id. - It also returns
context_qualityandcontext_messageso you know whether the draft used completed website analysis.