Skip to main content
POST
/
api
/
v1
/
post-history-import
Start a new post history import
curl --request POST \
  --url https://api.bundle.social/api/v1/post-history-import/ \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "teamId": "<string>",
  "socialAccountType": "FACEBOOK",
  "count": 50.5,
  "withAnalytics": true
}
'
{
  "id": "<string>",
  "teamId": "<string>",
  "socialAccountId": "<string>",
  "requestedCount": 123,
  "withAnalytics": true,
  "status": "PENDING",
  "postsImported": 123,
  "analyticsImported": 123,
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "error": "<string>",
  "rateLimitResetAt": "2023-11-07T05:31:56Z",
  "startedAt": "2023-11-07T05:31:56Z",
  "completedAt": "2023-11-07T05:31:56Z",
  "deletedAt": "2023-11-07T05:31:56Z"
}

Authorizations

x-api-key
string
header
required

Body

application/json

Body

teamId
string
required
socialAccountType
enum<string>
required
Available options:
FACEBOOK,
INSTAGRAM,
THREADS,
TIKTOK,
YOUTUBE,
LINKEDIN,
PINTEREST,
REDDIT,
MASTODON,
BLUESKY
count
number
required
Required range: 1 <= x <= 100
withAnalytics
boolean
default:true

Response

201

id
string
required
teamId
string
required
socialAccountId
string
required
requestedCount
number
required
withAnalytics
boolean
required
status
enum<string>
required
Available options:
PENDING,
FETCHING_POSTS,
FETCHING_ANALYTICS,
COMPLETED,
FAILED,
RATE_LIMITED
postsImported
number
required
analyticsImported
number
required
createdAt
string<date-time> | null
required
updatedAt
string<date-time> | null
required
error
string | null
rateLimitResetAt
string<date-time> | null
startedAt
string<date-time> | null
completedAt
string<date-time> | null
deletedAt
string<date-time> | null