Skip to main content
POST
/
v1
/
posts
curl -X POST https://api.infinipost.co/v1/posts \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "accountIds": ["acc_123", "acc_456"],
    "contentType": "video",
    "contentUrl": "https://example.com/video.mp4",
    "caption": "Check out this amazing content! #viral",
    "soundUrl": "https://example.com/audio.mp3",
    "scheduledTime": "2024-04-22T12:00:00Z"
  }'
{
  "posts": [
    {
      "id": "post_abc123",
      "accountId": "acc_123",
      "platform": "tiktok",
      "contentType": "video",
      "status": "scheduled",
      "scheduledTime": "2024-04-22T12:00:00Z",
      "createdAt": "2024-04-21T20:15:00Z"
    },
    {
      "id": "post_def456",
      "accountId": "acc_456",
      "platform": "instagram",
      "contentType": "video",
      "status": "scheduled",
      "scheduledTime": "2024-04-22T12:00:00Z",
      "createdAt": "2024-04-21T20:15:00Z"
    }
  ]
}

Request Body

accountIds
array
required
Array of account IDs to post to (e.g., ["acc_123", "acc_456"]).
contentType
string
required
Type of content: video or slideshow.
contentUrl
string | array
required
  • For video: Single URL string
  • For slideshow: Array of image URLs
caption
string
Post caption/description.
soundUrl
string
URL of audio/music file to use (optional).
scheduledTime
string
ISO 8601 timestamp for when to post. If not provided, posts immediately.
slideDuration
number
default:"4"
For slideshows only: Duration per slide in seconds (4, 6, or 8).

Response

posts
array
Array of created post objects (one per account).
curl -X POST https://api.infinipost.co/v1/posts \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "accountIds": ["acc_123", "acc_456"],
    "contentType": "video",
    "contentUrl": "https://example.com/video.mp4",
    "caption": "Check out this amazing content! #viral",
    "soundUrl": "https://example.com/audio.mp3",
    "scheduledTime": "2024-04-22T12:00:00Z"
  }'
{
  "posts": [
    {
      "id": "post_abc123",
      "accountId": "acc_123",
      "platform": "tiktok",
      "contentType": "video",
      "status": "scheduled",
      "scheduledTime": "2024-04-22T12:00:00Z",
      "createdAt": "2024-04-21T20:15:00Z"
    },
    {
      "id": "post_def456",
      "accountId": "acc_456",
      "platform": "instagram",
      "contentType": "video",
      "status": "scheduled",
      "scheduledTime": "2024-04-22T12:00:00Z",
      "createdAt": "2024-04-21T20:15:00Z"
    }
  ]
}