Skip to content
Denne side findes på dansk. Læs på dansk
HeyMySocial

Get one content item

GET /api/v1/content/{content}

The key needs the scope content:read

Returns one item in full: the current text, the last ten versions, the latest approval and whether it still covers the content, the brand and channel checks, and what happened at publication.

A number that was not reported is null, never 0.

Request

ParameterInNeededWhat it is
contentpathyesId of the content item (26 characters), as returned in data.id.
curl https://heymysocial.com/api/v1/content/01JDEXAMPLE0000000000000000 \
  -H "Authorization: Bearer $HMS_API_KEY"

Responses

200 The content item.

FieldTypeWhat it is
dataobjectA content item in full.
data.idstringId of the content item (26 characters).
data.titlestring or nullTitle of the current version.
data.statusstringWhere the item is in its life: draft, review (waiting for a person to approve), approved, scheduled, publishing, published, failed, cancelled or delivery_uncertain.
data.platformstringmock (the practice channel), facebook, instagram or linkedin.
data.channel_idstring or nullId of the channel the post is meant for, or null when none is chosen.
data.campaign_idstring or nullId of the campaign the post belongs to, or null.
data.intentstring or nullWhat the post is for: educate, prove, offer, engage or announce.
data.formatstringThe kind of post: text, image, carousel, video, story or link.
data.funnel_stagestring or nullawareness, consideration, conversion or retention.
data.localestringLanguage of the text: en or da.
data.planned_atstring or null (date-time)The planned time in UTC, or null when no time is set.
data.planned_localstring or nullThe same moment as local time in the workspace time zone, written YYYY-MM-DDTHH:MM.
data.timezonestringThe time zone of the workspace (IANA name).
data.versioninteger or nullNumber of the current version, starting at 1.
data.lock_versionintegerGoes up with every saved change. Send it back when you add a version, so you never overwrite an edit you have not seen.
data.excerptstringThe first 160 characters of the current text.
data.originstringHow the item was created: manual (a person in the app), rules (the drafting rules in the app), mcp (an assistant) or import (this API).
data.is_demobooleanTrue for invented example data in a demo workspace.
data.urlstring (uri)The address of the item in the app, for a signed-in person.
data.currentobjectThe text of the current version.
data.current.titlestring or nullTitle of the current version.
data.current.bodystringThe post text as written.
data.current.ctastring or nullCall to action.
data.current.link_urlstring or nullThe link the post points to.
data.current.asset_idsarray of stringIds of the attached graphics, in order.
data.current.text_as_publishedstringThe text as it goes out: the body, then the call to action on its own line when the body does not contain it.
data.versionsarray of objectThe last ten versions, newest first.
data.versions[].idstringId of the version.
data.versions[].versionintegerVersion number, starting at 1.
data.versions[].created_bystringWhat made the version: user (a person in the app), rules, mcp (an assistant) or api.
data.versions[].change_notestring or nullThe note saved with the version.
data.versions[].created_atstring (date-time)When the version was saved.
data.versions[].is_currentbooleanTrue for the version the item shows now.
data.versions[].is_approvedbooleanTrue for the version a person approved.
data.versions[].bodystringThe post text of this version.
data.approvalobjectThe latest approval of the item. When nobody has asked yet, only state (none) and review_url (null) are present.
data.approval.idstringId of the approval.
data.approval.content_idstringId of the content item it is about.
data.approval.statestringnone, pending, approved, rejected, invalidated (the content changed, or a newer request replaced it) or expired.
data.approval.requested_viastringWhere the request came from: ui (the app), mcp (an assistant) or api.
data.approval.requested_bystring or nullName of the person who asked. For a request over the API, the person who created the key.
data.approval.requested_atstring (date-time)When approval was asked for.
data.approval.decided_bystring or nullName of the person who approved or rejected.
data.approval.decided_atstring or null (date-time)When the decision was made.
data.approval.notestring or nullThe note left with the decision, or why the approval no longer counts.
data.approval.invalidatedbooleanTrue when the approval was thrown away.
data.approval.covers_current_contentbooleanTrue when the approval was asked for exactly the text, graphics, channel and time the item has now.
data.approval.usable_for_schedulingbooleanTrue when a person approved and the approval still covers the current content.
data.approval.review_urlstring or null (uri)The page in the app where a person decides.
data.qa_issuesarray of objectWhat the brand and channel checks find in the current text.
data.qa_issues[].sourcestringWhich check found it: brand (terms, promises and claims against your approved facts) or channel (the rules of the chosen channel).
data.qa_issues[].severitystringerror blocks approval; warning does not.
data.qa_issues[].codestringA stable name for the finding, for example unverified_number or no_channel.
data.qa_issues[].messagestringThe finding in words.
data.publicationobjectWhat happened when the item went out. Every field is null until there is something to report.
data.publication.scheduled_statusstring or nullState of the latest slot on the schedule: scheduled, running, done, failed, cancelled or uncertain.
data.publication.attemptsinteger or nullHow many times sending was tried.
data.publication.last_errorstring or nullWhy the last attempt failed or the slot was cancelled.
data.publication.published_atstring or null (date-time)When the post went out.
data.publication.urlstring or nullAddress of the published post, when the channel gave one.
data.publication.recorded_bystring or nullHow the post was recorded: publisher (sent from here), confirmed (a person confirmed a delivery that was uncertain), manual (a person marked it as published elsewhere) or demo.
data.publication.is_demoboolean or nullTrue when the post went to the practice channel or is example data.
data.publication.metricsobject or nullThe latest reading of reach, impressions, likes, comments, shares, saves and clicks. A number the channel did not report is null.
data.publication.metrics_read_atstring or null (date-time)When the numbers were last read.
data.publication.engagement_ratenumber or nullLikes, comments, shares and saves divided by reach, or by impressions when reach is missing; a fraction with four decimals. Null when it cannot be worked out.
data.publication.engagement_rate_denominatorstring or nullWhat the rate was divided by: reach or impressions.
{
    "data": {
        "id": "01m88q4wyk57w1zfdfycbn4qf5",
        "title": "Roof check",
        "status": "review",
        "platform": "mock",
        "channel_id": "01m88q4wxrssa2ecg8rsrswg76",
        "campaign_id": "01m88q4wxxt1xn4npmvqhz1nee",
        "intent": "offer",
        "format": "link",
        "funnel_stage": "consideration",
        "locale": "en",
        "planned_at": "2026-12-01T08:00:00Z",
        "planned_local": "2026-12-01T09:00",
        "timezone": "Europe/Copenhagen",
        "version": 2,
        "lock_version": 2,
        "excerpt": "Is your roof right for solar? A 20-minute visit answers it. The visit is free and you get the numbers in writing.",
        "origin": "import",
        "is_demo": false,
        "url": "https://heymysocial.com/studio/01m88q4wyk57w1zfdfycbn4qf5",
        "current": {
            "title": "Roof check",
            "body": "Is your roof right for solar? A 20-minute visit answers it. The visit is free and you get the numbers in writing.",
            "cta": "Book a roof check",
            "link_url": "https://nordlys-solar.example/roof-check",
            "asset_ids": [],
            "text_as_published": "Is your roof right for solar? A 20-minute visit answers it. The visit is free and you get the numbers in writing.\n\nBook a roof check"
        },
        "versions": [
            {
                "id": "01m88q4wz4deg4ae3ryqp5jzx6",
                "version": 2,
                "created_by": "api",
                "change_note": "Shorter second sentence",
                "created_at": "2026-11-25T09:12:44+00:00",
                "is_current": true,
                "is_approved": false,
                "body": "Is your roof right for solar? A 20-minute visit answers it. The visit is free and you get the numbers in writing."
            },
            {
                "id": "01m88q4wymra7ytjgf2nanyhg7",
                "version": 1,
                "created_by": "api",
                "change_note": "First draft from the website team",
                "created_at": "2026-11-25T09:12:44+00:00",
                "is_current": false,
                "is_approved": false,
                "body": "Is your roof right for solar? A 20-minute visit answers it, and the visit is free."
            }
        ],
        "approval": {
            "id": "01m88q4wzg1mthtpw3sw3t8ak6",
            "content_id": "01m88q4wyk57w1zfdfycbn4qf5",
            "state": "pending",
            "requested_via": "api",
            "requested_by": "Sofie Lund",
            "requested_at": "2026-11-25T09:12:44+00:00",
            "decided_by": null,
            "decided_at": null,
            "note": null,
            "invalidated": false,
            "covers_current_content": true,
            "usable_for_scheduling": false,
            "review_url": "https://heymysocial.com/calendar?open=01m88q4wyk57w1zfdfycbn4qf5"
        },
        "qa_issues": [
            {
                "source": "brand",
                "severity": "warning",
                "code": "unverified_number",
                "message": "This number is not in your approved facts: 20."
            }
        ],
        "publication": {
            "scheduled_status": null,
            "attempts": null,
            "last_error": null,
            "published_at": null,
            "url": null,
            "recorded_by": null,
            "is_demo": null,
            "metrics": null,
            "metrics_read_at": null,
            "engagement_rate": null,
            "engagement_rate_denominator": null
        }
    }
}

401 unauthenticated: the API key is missing, mistyped, revoked or expired.

The error shape and every code

403 access_denied: the key lacks the scope content:read.

The error shape and every code

404 not_found: no content item with this id in the workspace of the key.

The error shape and every code

429 rate_limited: too many requests with this key in one minute. Wait and send it again.

The error shape and every code