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

List content items

GET /api/v1/content

The key needs the scope content:read

Returns the content items of the workspace the key belongs to, one page at a time.

Items with a planned time come first, earliest first; items without one follow, newest first. The filters combine. Each item is the short form; get one item for its text, versions and approval.

Request

ParameterInNeededWhat it is
statusquerynoOnly items in this status: draft, review, approved, scheduled, publishing, published, failed, cancelled or delivery_uncertain.
channel_idquerynoOnly items for this channel.
campaign_idquerynoOnly items in this campaign.
fromquerynoFirst day of the calendar window (YYYY-MM-DD), in the workspace time zone. Items without a planned time are left out when a window is given.
toquerynoLast day of the calendar window (YYYY-MM-DD), in the workspace time zone, that day included. Not before from.
per_pagequerynoItems on a page, 1 to 50. The default is 25.
pagequerynoThe page to return, starting at 1. A page past the end is an empty list.
curl https://heymysocial.com/api/v1/content \
  -H "Authorization: Bearer $HMS_API_KEY"

Responses

200 A page of content items.

FieldTypeWhat it is
dataarray of objectThe items on this page.
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.
metaobjectWhere this page is in the whole list.
meta.totalintegerNumber of items that match the filters, on all pages.
meta.pageintegerThe page this is.
meta.per_pageintegerItems on a page.
meta.timezonestringThe time zone the from and to days were read in.
{
    "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"
        }
    ],
    "meta": {
        "total": 1,
        "page": 1,
        "per_page": 25,
        "timezone": "Europe/Copenhagen"
    }
}

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

422 validation_failed: a filter is not valid, for example an unknown status or a to day before the from day. details names the parameter.

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