Skip to main content
POST
Start a migration

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Provider, key and accepted authorisation version

authorisation_version
string
required

Version of the authorisation text you accepted, as returned in authorisation.version.

key
string
required

API key from your account with that provider. It needs read access to profiles and accounts.

provider
string
required

Identifier of the provider you are moving from.

Response

Created

assessed_at
string<date-time> | null
required

When the accounts were last read, RFC 3339. Null until the first read succeeds.

assessment
object | null
required

Your accounts and how they map to SocialAPI. Null until started, or when your provider could not be read.

assessment_error
string | null
required

Why assessment is null on a started migration: migration.key_invalid, migration.key_restricted or migration.source_unavailable.

authorisation
object
required

Text to accept before starting, and its version.

authorisation_version
string | null
required

Version of the authorisation text accepted. Null until started.

authorised_at
string<date-time> | null
required

When the authorisation was accepted, RFC 3339. Null until started.

base_url
string | null
required

Base URL to set in your existing client. Null until started.

Example:

"https://z.social-api.ai/api"

created_at
string<date-time> | null
required

When the migration started, RFC 3339. Null until started.

cut_over
integer
required

Accounts already reconnected to SocialAPI.

forwarded_calls
integer
required

Requests sent through the base URL since the migration started.

key_hint
string | null
required

Start and end of the key in use. Null until started.

started
boolean
required

True once a migration has started.