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
}Upload a CSV file to create multiple posts. Use dry_run=true to validate without creating.
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
}Prefix your API key with "Bearer ". Example: Authorization: Bearer sapi_key_...
Validate only, do not create
CSV file (max 5 MB)