Skip to content

Report Content

GET /projects/{project}/reports/{report_number}/content

The primary integration endpoint. Returns the full generated SEO content for a specific report, grouped by keyword.

Path parameters

ParameterTypeDescription
projectintegerProject ID
report_numberinteger (1-26)The report's position in the project's delivery sequence

Returns 400 if report_number is outside 1-26. Returns 404 if no report with that number exists for this project.

Request

sh
curl -H "Authorization: Bearer YOUR_API_TOKEN" \
  https://admin.trakk.ai/api/v1/projects/42/reports/14/content

Response

json
{
  "data": {
    "report_number": 14,
    "report_id": 1081,
    "report_name": "H3 + Text 3",
    "content_scheme": "h3_text_blocks",
    "content_scheme_fields": ["h3", "text"],

    "links": {
      "project_website": "https://digipartner.se",
      "report_web": "https://admin.trakk.ai/reports/view/abc123",
      "report_pdf": "https://admin.trakk.ai/reports/digipartner-report-14.pdf"
    },

    "project_id": 42,
    "project_domain": "https://digipartner.se",
    "project_status": "active",

    "is_generated": true,
    "generation_status": "completed",
    "approved_status": "approved",
    "approved_by": { "id": 7, "name": "Jane Smith", "role": "Account Manager", "agency": { "id": 12, "name": "Digipartner Agency" } },
    "managed_status": "completed",
    "managed_by": { "id": 7, "name": "Jane Smith", "role": "Account Manager", "agency": { "id": 12, "name": "Digipartner Agency" } },

    "date_to_create_texts": "2026-02-20",
    "date_to_send_to_client": "2026-03-01",

    "summary": {
      "keyword_count": 18,
      "keywords_with_content": 18
    },

    "keywords": [
      {
        "keyword_id": 901,
        "keyword": "seo agency stockholm",
        "keyword_url": "https://digipartner.se/seo-stockholm",
        "has_content": true,
        "content": [
          { "h3": "Leading SEO Agency in Stockholm", "text": "We help businesses in Stockholm grow through…" },
          { "h3": "Expert SEO Services Stockholm", "text": "Our Stockholm-based team delivers…" },
          { "h3": "Stockholm SEO - Results That Last", "text": "Proven SEO strategies tailored for…" }
        ],
        "html": [
          { "h3_and_text": "<h3>Leading SEO Agency in Stockholm</h3>\n<p>We help businesses…</p>" },
          { "h3_and_text": "<h3>Expert SEO Services Stockholm</h3>\n<p>Our Stockholm-based team…</p>" },
          { "h3_and_text": "<h3>Stockholm SEO - Results That Last</h3>\n<p>Proven SEO strategies…</p>" }
        ]
      }
    ]
  },
  "cache_refreshed_at": "2026-03-30T12:00:00.000000Z"
}

Top-level fields

FieldTypeNullableDescription
report_numberintegerNoReport number (1-26)
report_idintegerNoInternal report ID
report_namestringYesHuman-readable report type label
content_schemestringYesScheme identifier (see Content Schemes)
content_scheme_fieldsarrayYesField names present in each content block
is_generatedbooleanNotrue when generation_status is completed
generation_statusstringNoSee Enums
approved_statusstringYesSee Enums
approved_byuser objectYesUser who approved the report
managed_statusstringYesSee Enums
managed_byuser objectYesUser managing the report
date_to_create_textsdateYesContent creation deadline
date_to_send_to_clientdateYesScheduled delivery date
summary.keyword_countintegerNoTotal active keywords for this project
summary.keywords_with_contentintegerNoKeywords that have content for this report
project_domainstringYesProject website URL
project_statusstringNoSee Enums

Keyword fields

FieldTypeNullableDescription
keyword_idintegerNoKeyword ID
keywordstringNoThe keyword phrase
keyword_urlstringYesTarget page URL for this keyword
has_contentbooleanNotrue if content has been generated for this keyword in this report
contentobject or arrayYesPlain-text content. null when has_content is false. Shape depends on content_scheme
htmlobject or arrayYesHTML-formatted content ready to embed. null when has_content is false. Shape depends on content_scheme

Read content_scheme first

Always read content_scheme before accessing keyword content - do not hardcode assumptions about the shape. See Content Schemes for the full reference.