account create
POST
/accounts/createThis endpoint will create accounts
Request
it will have the access token
accountId of the social-media account
time of header expiry
refreshed access token
time of refresh token expiry
it contains the uniqueId for the social-media profile
0 => add to queue; 1 => share now; 2 => share next; 3 => schedule post
it containes the account details of social-media accounts
it will have the access token
it contains the uniqueId for the social-media profile
it contains uniqueId for the account
contains the username of the social-media account
it contains the access token for the page
URL to the social-media account
URL to the social-media account profile picture
if account requires schedule slots
{
"accessToken": "EAAU579TDpf0BAFyuyvEFfE64jIS8V8EzFfN3L1OPS9TodtEoTGiegMpsbJaJKnqH8ys3OUIni4yGZAbP1wyt3zBjABXr0EisRXcg6ClNZCruax7sox40kekRSnsd7MxVUGiZBE8hQj5rVxLO5yT3EQh5ZAcO3CH7t3lEBnb5ZCsw1NNDXW2gTmpxgcDZC7yiatovZBRFWvin0xlS62ABE0hZChYjF4eDIhIMEYMDUDG1sJ5e5gQaPJH6ZBv5oiDu9EmFiTi4Fkm4pTjewMdAk94AuT9ggT5z5ifUBIcK6XtlaQgZDZD",
"accountId": 5,
"expiryHeader": 1687213205720,
"refreshToken": "",
"refreshTokenExpiry": 0,
"onboardComplete": "Y",
"profileUniqueId": "115951318050152",
"accountData": [
{
"accessToken": "EAAU579TDpf0BAFyuyvEFfE64jIS8V8EzFfN3L1OPS9TodtEoTGiegMpsbJaJKnqH8ys3OUIni4yGZAbP1wyt3zBjABXr0EisRXcg6ClNZCruax7sox40kekRSnsd7MxVUGiZBE8hQj5rVxLO5yT3EQh5ZAcO3CH7t3lEBnb5ZCsw1NNDXW2gTmpxgcDZC7yiatovZBRFWvin0xlS62ABE0hZChYjF4eDIhIMEYMDUDG1sJ5e5gQaPJH6ZBv5oiDu9EmFiTi4Fkm4pTjewMdAk94AuT9ggT5z5ifUBIcK6XtlaQgZDZD",
"profileUniqueId": "115951318050152",
"uniqueId": "113381151703918",
"accountUsername": "Food news",
"pageAccessToken": "EAAU579TDpf0BADpRrZBzsFBZAWK95nHMm6QUfKZAO0HbxwlWMsZCgrUlMBeMsA1cf1OgIX9eqkCHFb1tHVWahvtwWX2EuIOATHHg2UMeb8nZCFWyKJJD8dTiJH9LJ9dlIbd0C0GtFuKsDeaFwO6CNR3iRoNHn70Rsp1C15tpXJF6xewPq8uStEFVkZA29Ur2nyHP1OefWmOEAZCfZALJgltV",
"accountUrl": "https://www.facebook.com/Food news-113381151703918/",
"profilePicture": "https://graph.facebook.com/113381151703918/picture?type=square&access_token=EAAU579TDpf0BAFyuyvEFfE64jIS8V8EzFfN3L1OPS9TodtEoTGiegMpsbJaJKnqH8ys3OUIni4yGZAbP1wyt3zBjABXr0EisRXcg6ClNZCruax7sox40kekRSnsd7MxVUGiZBE8hQj5rVxLO5yT3EQh5ZAcO3CH7t3lEBnb5ZCsw1NNDXW2gTmpxgcDZC7yiatovZBRFWvin0xlS62ABE0hZChYjF4eDIhIMEYMDUDG1sJ5e5gQaPJH6ZBv5oiDu9EmFiTi4Fkm4pTjewMdAk94AuT9ggT5z5ifUBIcK6XtlaQgZDZD",
"tasks": [
"MODERATE",
"ANALYZE",
"CREATE_CONTENT"
],
"disableType": "",
"reqiureSchedulesSlots": true,
"followUs": null
},
{
"accessToken": "EAAU579TDpf0BAFyuyvEFfE64jIS8V8EzFfN3L1OPS9TodtEoTGiegMpsbJaJKnqH8ys3OUIni4yGZAbP1wyt3zBjABXr0EisRXcg6ClNZCruax7sox40kekRSnsd7MxVUGiZBE8hQj5rVxLO5yT3EQh5ZAcO3CH7t3lEBnb5ZCsw1NNDXW2gTmpxgcDZC7yiatovZBRFWvin0xlS62ABE0hZChYjF4eDIhIMEYMDUDG1sJ5e5gQaPJH6ZBv5oiDu9EmFiTi4Fkm4pTjewMdAk94AuT9ggT5z5ifUBIcK6XtlaQgZDZD",
"profileUniqueId": "115951318050152",
"uniqueId": "103622979296406",
"accountUsername": "FoodBlog",
"pageAccessToken": "EAAU579TDpf0BAOPPLZB7YUSLUP6BCOJVxBTrkjevmhNISBnJjSs4snBQ7UeHgy3DZAcZANnUVzbCmtxZBtuB64aPFVdWeZBHjMasn9yiSbyDcxG5er7f7Dnhz5TZA3LbzQ9yq0fONctq3wn3qiOBDjMXlFXMoCpOwZB2HZBaBXrXhbAn07BtKAiP9LziHS1cD1FCyzHpNypMZAbnAOZAyUZACi3",
"accountUrl": "https://www.facebook.com/FoodBlog-103622979296406/",
"profilePicture": "https://graph.facebook.com/103622979296406/picture?type=square&access_token=EAAU579TDpf0BAFyuyvEFfE64jIS8V8EzFfN3L1OPS9TodtEoTGiegMpsbJaJKnqH8ys3OUIni4yGZAbP1wyt3zBjABXr0EisRXcg6ClNZCruax7sox40kekRSnsd7MxVUGiZBE8hQj5rVxLO5yT3EQh5ZAcO3CH7t3lEBnb5ZCsw1NNDXW2gTmpxgcDZC7yiatovZBRFWvin0xlS62ABE0hZChYjF4eDIhIMEYMDUDG1sJ5e5gQaPJH6ZBv5oiDu9EmFiTi4Fkm4pTjewMdAk94AuT9ggT5z5ifUBIcK6XtlaQgZDZD",
"tasks": [
"ADVERTISE",
"ANALYZE",
"CREATE_CONTENT",
"MESSAGING",
"MODERATE",
"MANAGE"
],
"disableType": "",
"reqiureSchedulesSlots": true,
"followUs": null
},
{
"accessToken": "EAAU579TDpf0BAFyuyvEFfE64jIS8V8EzFfN3L1OPS9TodtEoTGiegMpsbJaJKnqH8ys3OUIni4yGZAbP1wyt3zBjABXr0EisRXcg6ClNZCruax7sox40kekRSnsd7MxVUGiZBE8hQj5rVxLO5yT3EQh5ZAcO3CH7t3lEBnb5ZCsw1NNDXW2gTmpxgcDZC7yiatovZBRFWvin0xlS62ABE0hZChYjF4eDIhIMEYMDUDG1sJ5e5gQaPJH6ZBv5oiDu9EmFiTi4Fkm4pTjewMdAk94AuT9ggT5z5ifUBIcK6XtlaQgZDZD",
"profileUniqueId": "115951318050152",
"uniqueId": "113547231625693",
"accountUsername": "TechGeek",
"pageAccessToken": "EAAU579TDpf0BAJyvZB7g7s6aeVznuPM3gE9PkEQTr0ZAquAJcaSbVqqKtkTljNiZAapS5HukqgghghJLT2Te3hdNWF3n3O65DPwZBPwGCNPkN2S6aou4cTFUuFZBB9oHvW3PL6jeyrWIZC2cKPHVXLpZCALuFfDrNhE0dZA3w6gZAabQwZCcdEb6ga4B7UZC6yKWXlTZC1tX3lcSu6FZCiGZBVjn89",
"accountUrl": "https://www.facebook.com/TechGeek-113547231625693/",
"profilePicture": "https://graph.facebook.com/113547231625693/picture?type=square&access_token=EAAU579TDpf0BAFyuyvEFfE64jIS8V8EzFfN3L1OPS9TodtEoTGiegMpsbJaJKnqH8ys3OUIni4yGZAbP1wyt3zBjABXr0EisRXcg6ClNZCruax7sox40kekRSnsd7MxVUGiZBE8hQj5rVxLO5yT3EQh5ZAcO3CH7t3lEBnb5ZCsw1NNDXW2gTmpxgcDZC7yiatovZBRFWvin0xlS62ABE0hZChYjF4eDIhIMEYMDUDG1sJ5e5gQaPJH6ZBv5oiDu9EmFiTi4Fkm4pTjewMdAk94AuT9ggT5z5ifUBIcK6XtlaQgZDZD",
"tasks": [
"ADVERTISE",
"ANALYZE",
"CREATE_CONTENT",
"MESSAGING",
"MODERATE",
"MANAGE"
],
"disableType": "",
"reqiureSchedulesSlots": true,
"followUs": null
}
],
"createScheduleSlot": true,
"groupIds": [
"ae9dc654-c152-45b5-8bea-7dec280b0d81"
]
}
Request samples
Responses
Accounts Created Successfully
Status Code
Accounts Created Successfully
login Id of the social-media account
account Id of the social-media account
address of account if google business profile
flag for success
message showing the status of the account creation
URL to the social-media account
Username of the social-media account
URL to social-media account profile picture
uniqueId for the account
flag for account creation
{
"status": 200,
"message": "Accounts Created Successfully",
"response": [
{
"loginId": -1,
"success": false,
"message": "Missing account URL",
"accountUrl": null,
"accountUsername": null,
"profilePicture": null,
"uniqueId": "113381151703918"
},
{
"loginId": -1,
"success": false,
"message": "Missing unique id",
"accountUrl": "https://www.facebook.com/Food news-113381151703918/",
"accountUsername": null,
"profilePicture": null,
"uniqueId": null
},
{
"loginId": 12346,
"accountId": 5,
"address": "",
"success": true,
"message": "Account Updated Successfully",
"accountUrl": "https://www.facebook.com/125716701412454",
"accountUsername": "Rutul110",
"profilePicture": "https://pbs.twimg.com/profile_images/781716952867676160/-PS-8BXn_normal.jpg",
"uniqueId": "1646580329338",
"isCreated": false,
"scheduleSlots": [
{
"loginId": 1019811,
"Sun": [
"01:19 AM",
"05:54 AM",
"11:19 AM"
],
"Mon": [
"01:19 AM",
"05:54 AM",
"11:19 AM"
],
"Tue": [
"01:19 AM",
"05:54 AM",
"11:19 AM"
],
"Wed": [
"01:19 AM",
"05:54 AM",
"11:19 AM"
],
"Thu": [
"01:19 AM",
"05:54 AM",
"11:19 AM"
],
"Fri": [
"01:19 AM",
"05:54 AM",
"11:19 AM"
],
"Sat": [
"01:19 AM",
"05:54 AM",
"11:19 AM"
]
}
]
},
{
"loginId": 12347,
"accountId": 5,
"address": "",
"success": true,
"message": "Account Added Successfully",
"accountUrl": "https://www.facebook.com/125716701412454",
"accountUsername": "Rutul110",
"profilePicture": "https://scontent.xx.fbcdn.net/v/t1.0-1/c15.0.50.50/pn.jpg",
"uniqueId": "226278177573344",
"isCreated": true,
"scheduleSlots": [
{
"loginId": 1019811,
"Sun": [
"01:19 AM",
"05:54 AM",
"11:19 AM"
],
"Mon": [
"01:19 AM",
"05:54 AM",
"11:19 AM"
],
"Tue": [
"01:19 AM",
"05:54 AM",
"11:19 AM"
],
"Wed": [
"01:19 AM",
"05:54 AM",
"11:19 AM"
],
"Thu": [
"01:19 AM",
"05:54 AM",
"11:19 AM"
],
"Fri": [
"01:19 AM",
"05:54 AM",
"11:19 AM"
],
"Sat": [
"01:19 AM",
"05:54 AM",
"11:19 AM"
]
}
]
}
]
}