Skip to main content
POST
/
posts
curl --request POST \
  --url https://api.marketordie.io/v1/posts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "channels": [
    "conn_abc",
    "conn_def"
  ],
  "text": "We just shipped our public API.",
  "points": 20
}
'
{
  "data": [
    {
      "id": "<string>",
      "channel": "<string>",
      "posts": [
        {
          "text": "<string>"
        }
      ],
      "scheduled_for": "2023-11-07T05:31:56Z",
      "published_urls": [
        "<string>"
      ],
      "error": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

Your API key as a bearer token: Authorization: Bearer mod_live_…. (You can also send it as x-api-key.)

Body

application/json
channels
string[]
required

Connection ids from GET /channels.

Minimum array length: 1
text
string

Single-post text. Use this or thread.

thread
string[]

Multi-part thread (X). Other platforms join the parts.

media
string[]

Up to 4 image ids from POST /media. Attached to the first post.

scheduled_for
string<date-time>

ISO 8601. Omit to publish as soon as possible.

points
integer
default:20

Points to claim for this post (admin-reviewed).

draft
boolean
default:false

Save as a draft instead of publishing/scheduling. When true, scheduled_for is ignored and nothing is queued.

Response

Created

data
object[]