Skip to main content
POST
/
posts
/
import
Bulk import posts from CSV
curl --request POST \
  --url https://api.social-api.ai/v1/posts/import \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "created": 8,
  "errors": [
    {
      "message": "invalid date format for scheduled_at",
      "row": 3
    }
  ],
  "failed": 2,
  "posts": [
    {
      "created_at": "2026-03-14T09:00:00Z",
      "hidden": true,
      "id": "<string>",
      "media_ids": [
        "<string>"
      ],
      "published_at": "2026-04-01T10:00:05Z",
      "retry_count": 123,
      "scheduled_at": "2026-04-01T10:00:00Z",
      "status": "published",
      "targets": [
        {
          "account_id": "<string>",
          "error": {
            "category": "<string>",
            "caused_by": "<string>",
            "message": "<string>"
          },
          "first_comment": "<string>",
          "metrics": {
            "comments": 123,
            "extra": {},
            "likes": 123,
            "saves": 123,
            "shares": 123
          },
          "metrics_synced_at": "<string>",
          "permalink": "<string>",
          "platform": "<string>",
          "platform_post_id": "<string>",
          "published_at": "<string>",
          "scheduled_at": "<string>",
          "status": "<string>",
          "text": "<string>",
          "title": "<string>",
          "visibility": "<string>"
        }
      ],
      "text": "<string>",
      "title": "<string>",
      "updated_at": "2026-03-14T09:00:00Z",
      "visibility": "<string>"
    }
  ],
  "total_rows": 10
}

Authorizations

Authorization
string
header
required

Prefix your API key with "Bearer ". Example: Authorization: Bearer sapi_key_...

Query Parameters

dry_run
boolean

Validate only, do not create

Body

multipart/form-data
file
file
required

CSV file (max 5 MB)

Response

OK

created
integer
Example:

8

errors
object[]
failed
integer
Example:

2

posts
object[]
total_rows
integer
Example:

10