Skip to main content
POST
/
social
/
posts
Create post (publish immediately)
curl --request POST \
  --url https://api.smartlyq.com/v1/social/posts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "content": "<string>",
  "platforms": [
    "<string>"
  ],
  "account_ids": [
    123
  ],
  "media_urls": [
    "<string>"
  ],
  "link": "<string>"
}
'
{
  "success": true,
  "data": {
    "id": 123,
    "content": "<string>",
    "platforms": [
      "<string>"
    ],
    "status": "<string>",
    "scheduled_time": "2023-11-07T05:31:56Z",
    "published_at": "2023-11-07T05:31:56Z",
    "created_at": "2023-11-07T05:31:56Z"
  },
  "usage": {
    "units": 123,
    "cost": "0.0150",
    "balance_remaining": "99.9850"
  },
  "meta": {
    "request_id": "<string>",
    "timestamp": "2023-11-07T05:31:56Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.smartlyq.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key from Developer dashboard (Bearer token).

Body

application/json
content
string
required

Post text content

platforms
string[]
required

Target platforms (e.g. facebook, twitter, instagram)

account_ids
integer[]
required

IDs of connected social accounts to post to

media_urls
string[]

Media URLs to attach to the post

URL to include with the post

Response

Post created

success
enum<boolean>
Available options:
true
data
object
usage
object
meta
object