Skip to main content
POST
/
carousels
/
{carouselId}
/
create-draft
Create a post draft from carousel
curl --request POST \
  --url https://app.autoposting.ai/api-proxy/carousels/{carouselId}/create-draft \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "brandSlug": "acme-corp",
  "platforms": [
    "linkedin"
  ],
  "caption": "<string>"
}
'
{
  "success": true,
  "data": {
    "postId": "post_01HXYZ",
    "status": "draft",
    "mediaUrls": [
      "https://cdn.autoposting.ai/carousels/car_01HXYZ_slide_01.png"
    ]
  }
}

Authorizations

Authorization
string
header
required

API key as Authorization: Bearer sk-social-...

Path Parameters

Carousel ID.

Example:

"car_01HXYZ"

Body

application/json
brandSlug
string
required

Brand to create the draft under.

Example:

"acme-corp"

platforms
string[]

Target platforms for the draft post. Default: ["linkedin"].

caption
string

Caption text for the post draft.

Response

Post draft created

success
boolean
Example:

true

data
object