Developers

PT Social API

Create a key in Settings & API keys, then send it as Authorization: Bearer pts_….

1. List connected accounts

curl -H "Authorization: Bearer $KEY" https://social.puneetthakkar.com/api/accounts

2. Upload a video

curl -X PUT -H "Authorization: Bearer $KEY" -H "Content-Type: video/mp4" \
  --data-binary @reel.mp4 "https://social.puneetthakkar.com/api/media?filename=reel.mp4"
# → { "media": { "id": 12, ... } }

3. Schedule a post

curl -X POST -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" https://social.puneetthakkar.com/api/posts -d '{
  "media_id": 12,
  "account_ids": [1, 2, 3],
  "title": "Laptop Pe Download Tez Kaise Kare? 4 Easy Steps",
  "caption": "2 GB file, 3 ghante baaki? ...",
  "description": "Full YouTube description ...",
  "tags": ["plexo", "download speed", "tech clash"],
  "youtube_category": "28",
  "privacy": "public",
  "ai_generated": true,
  "scheduled_at": "2026-11-01T13:30:00Z"
}'

4. Check status

curl -H "Authorization: Bearer $KEY" https://social.puneetthakkar.com/api/posts

Each post has one target per account with status queued → processing → published (or failed with an error). Failed targets retry up to 3 times automatically.

Limits

  • Videos up to the server upload limit (default 1 GB). For Reels on all three platforms use 9:16, 3–90 seconds, MP4 (H.264 + AAC).
  • Platform limits apply: Instagram ~100 API posts per 24 h, Facebook Page Reels 30 per 24 h, YouTube upload quota per Google project.