Skip to main content
POST
/
v1
/
publishing
/
publish
Publish Content
curl --request POST \
  --url https://app.uselamina.ai/v1/publishing/publish \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "accountIds": [
    "ch-001",
    "ch-002"
  ],
  "imageUrl": "https://media.getmason.io/api/assetlib/abc123.png",
  "caption": "Discover our new spring collection -- where comfort meets style."
}
'
{
  "data": {
    "results": [
      {
        "accountId": "ch-001",
        "status": "published",
        "postUrl": "https://facebook.com/mybrandpage/posts/123456"
      },
      {
        "accountId": "ch-002",
        "status": "published",
        "postUrl": "https://instagram.com/p/ABC123"
      }
    ]
  }
}
Publish content to one or more connected social channels. Provide the asset (image URL, video URL, or both), a caption, and the target accountIds from the list-channels endpoint. You must provide at least one of imageUrl, videoUrl, or caption. Use the publish-history endpoint to track the status of past publishes.

Authorizations

x-api-key
string
header
required

Workspace API key. Prefix: lma_. Example: lma_abc123...

Body

application/json
accountIds
string<uuid>[]
required

Channel IDs to publish to (from GET /v1/publishing/channels).

imageUrl
string<uri> | null

URL to a publicly accessible image to publish.

videoUrl
string<uri> | null

URL to a publicly accessible video to publish.

caption
string | null

Post caption or text content.

Response

Publish results per account

data
object

Publish result with per-account status.