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>",
"status": "draft",
"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"
}
]
}{
"error": {
"code": "invalid_request",
"message": "Provide `text` or a non-empty `thread`."
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid or revoked API key."
}
}Posts
Create or schedule a post
Publishes (or schedules) a post to one or more channels. Returns one post object per channel. Omit scheduled_for to publish as soon as possible.
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>",
"status": "draft",
"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"
}
]
}{
"error": {
"code": "invalid_request",
"message": "Provide `text` or a non-empty `thread`."
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid or revoked API key."
}
}Authorizations
Your API key as a bearer token: Authorization: Bearer mod_live_…. (You can also send it as x-api-key.)
Body
application/json
Connection ids from GET /channels.
Minimum array length:
1Single-post text. Use this or thread.
Multi-part thread (X). Other platforms join the parts.
Up to 4 image ids from POST /media. Attached to the first post.
ISO 8601. Omit to publish as soon as possible.
Points to claim for this post (admin-reviewed).
Save as a draft instead of publishing/scheduling. When true, scheduled_for is ignored and nothing is queued.
Response
Created
Show child attributes
Show child attributes