Skip to main content
POST
/
api
/
v1
/
post
Post content to connected platforms
curl --request POST \
  --url https://mallary.ai/api/v1/post \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "message": "<string>",
  "platforms": [
    "twitter"
  ],
  "media": [
    {
      "url": "<string>"
    }
  ],
  "commentsUnderPost": [
    {
      "content": "<string>"
    }
  ],
  "scheduled_at": "2023-11-07T05:31:56Z",
  "webhook_url": "<string>"
}
'
{
  "status": "ok",
  "data": {
    "job_id": 123,
    "status": "queued",
    "retries": {
      "max_attempts": 123,
      "attempts": {}
    }
  }
}

Authorizations

Authorization
string
header
required

Use Authorization: Bearer {api_key}

Headers

Idempotency-Key
string

Optional idempotency key to avoid duplicate jobs for the same user/key combination.

Body

application/json
message
string
required
platforms
enum<string>[]
required
Available options:
twitter,
linkedin,
facebook,
instagram,
tiktok,
youtube,
pinterest,
reddit,
snapchat,
googlebusiness
media
object[]

Optional media attachments. Provide a publicly accessible URL; platform limits vary (Twitter static images: 5MB).

commentsUnderPost
object[]

Optional list of comments/replies to post under the main post (used across all platforms; on X/Twitter this is a thread).

scheduled_at
string<date-time>

Optional ISO8601 datetime to schedule the post.

webhook_url
string<uri>

Optional webhook URL to receive job completion callbacks.

Response

Job queued

status
enum<string>
Available options:
ok
data
object