Get a migration
curl --request GET \
--url https://api.social-api.ai/v1/migrations/{provider} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.social-api.ai/v1/migrations/{provider}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/migrations/{provider}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"assessed_at": "2023-11-07T05:31:56Z",
"assessment": {
"brands": 123,
"pages_per_brand": 123,
"profiles": [
{
"brands": 123,
"id": "<string>",
"name": "<string>",
"pages_per_brand": 123,
"servable_accounts": 123,
"splits": [
"<string>"
]
}
],
"recommended_plan": {
"brands_limit": 123,
"name": "<string>",
"pages_per_brand": 123,
"tier": "starter"
},
"servable_accounts": 123,
"stays_with_provider": [
{
"count": 123,
"platform": "<string>",
"reason": "<string>"
}
]
},
"assessment_error": "<string>",
"authorisation": {
"text": "<string>",
"version": "<string>"
},
"authorisation_version": "<string>",
"authorised_at": "2023-11-07T05:31:56Z",
"base_url": "https://z.social-api.ai/api",
"created_at": "2023-11-07T05:31:56Z",
"cut_over": 123,
"forwarded_calls": 123,
"key_hint": "<string>",
"started": true
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}Migration
Get a migration
Returns your migration from a provider: the authorisation text to accept before starting, and once started, your accounts, the Brands and plan they need, and progress. If the provider cannot be read, the response is still 200 with assessment null and assessment_error set. The assessment can be up to 5 minutes old unless refresh is true. Dashboard sessions only; API keys get 403.
GET
/
migrations
/
{provider}
Get a migration
curl --request GET \
--url https://api.social-api.ai/v1/migrations/{provider} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.social-api.ai/v1/migrations/{provider}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/migrations/{provider}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"assessed_at": "2023-11-07T05:31:56Z",
"assessment": {
"brands": 123,
"pages_per_brand": 123,
"profiles": [
{
"brands": 123,
"id": "<string>",
"name": "<string>",
"pages_per_brand": 123,
"servable_accounts": 123,
"splits": [
"<string>"
]
}
],
"recommended_plan": {
"brands_limit": 123,
"name": "<string>",
"pages_per_brand": 123,
"tier": "starter"
},
"servable_accounts": 123,
"stays_with_provider": [
{
"count": 123,
"platform": "<string>",
"reason": "<string>"
}
]
},
"assessment_error": "<string>",
"authorisation": {
"text": "<string>",
"version": "<string>"
},
"authorisation_version": "<string>",
"authorised_at": "2023-11-07T05:31:56Z",
"base_url": "https://z.social-api.ai/api",
"created_at": "2023-11-07T05:31:56Z",
"cut_over": 123,
"forwarded_calls": 123,
"key_hint": "<string>",
"started": true
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}Authorizations
Response
OK