Documentation Index
Fetch the complete documentation index at: https://docs.neariq.io/llms.txt
Use this file to discover all available pages before exploring further.
GET /api/v1/content returns recent generated content history for the caller’s active business.
POST /api/v1/content generates a new draft or refines an existing draft for the caller’s active business.
Use an API key with the competitors:read scope for history reads. Use an API key with the content:write scope for generation and refinement.
This endpoint is available on Growth plans and higher.
Query parameters
| Name | Type | Default | Notes |
|---|---|---|---|
limit | integer | 20 | Maximum 100. |
type | enum | none | Optional filter: landing_page, faq, gbp_post, social_post, review_response_template, or blog_outline. |
presetCategory | enum | none | Optional filter: local_business, product_demo, ecommerce, or professional_services. |
Response
Create or refine content
Request body
| Name | Type | Required | Notes |
|---|---|---|---|
type | enum | no | Defaults from presetCategory when omitted. Values: landing_page, faq, gbp_post, social_post, review_response_template, blog_outline. |
presetCategory | enum | no | Defaults to local_business. Values: local_business, product_demo, ecommerce, professional_services. |
topic | string | no | Optional custom prompt or subject, up to 180 characters. |
tone | enum | no | professional, friendly, casual, persuasive, or informative. |
length | enum | no | short, medium, or long. |
platform | enum | no | Optional social platform hint: facebook, instagram, or linkedin. |
refinementFeedback | string | no | User feedback for revising a prior draft, up to 1,000 characters. Requires previousOutput. |
previousOutput | object or string | no | The prior generated content to revise. Requires refinementFeedback; maximum serialized size is 50 KB. |
Refinement example
Create response
Access
The endpoint uses the caller’s active personal or organization business context. Organization members only see history for businesses they can access. Accounts below Growth receive403. API keys without competitors:read on GET or content:write on POST receive 403 requiredScope.
Generated history stores structured output and derived source counts. It does not store raw review text.