Skip to main content
POST
/
v1
/
posts
Publish now to one or more connected platforms
curl --request POST \
  --url https://api.sydium.com/v1/posts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "targets": [
    {
      "platform": "<string>",
      "postType": "<string>",
      "options": {}
    }
  ],
  "caption": "<string>",
  "media": [
    "<string>"
  ],
  "scheduleAt": "2023-11-07T05:31:56Z"
}
'
{
  "success": "<unknown>",
  "data": {
    "id": "<string>",
    "targets": [
      {
        "platform": "<string>",
        "postId": "<string>",
        "url": "<string>",
        "error": {}
      }
    ]
  },
  "meta": {}
}

Authorizations

Authorization
string
header
required

Opaque API key (sk_live_... / sk_test_...)

Body

application/json
targets
object[]
required
caption
string
media
string[]
scheduleAt
string<date-time>

Response

Operation created

success
any
required
data
object
required
meta
object
required