Accept an Instagram collaboration invite
curl --request POST \
--url https://api.social-api.ai/v1/platforms/instagram/accounts/{id}/media/{mediaId}/collab/accept \
--header 'Authorization: <api-key>'const options = {method: 'POST', headers: {Authorization: '<api-key>'}};
fetch('https://api.social-api.ai/v1/platforms/instagram/accounts/{id}/media/{mediaId}/collab/accept', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/platforms/instagram/accounts/{id}/media/{mediaId}/collab/accept"
headers = {"Authorization": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text){
"success": true
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}Instagram
Accept an Instagram collaboration invite
Accepts a pending collaboration invite on an Instagram media object, publishing the co-authored post to this account’s feed. Call with the invited account, not the publishing account. Invites expire 14 days after they are sent.
POST
/
platforms
/
instagram
/
accounts
/
{id}
/
media
/
{mediaId}
/
collab
/
accept
Accept an Instagram collaboration invite
curl --request POST \
--url https://api.social-api.ai/v1/platforms/instagram/accounts/{id}/media/{mediaId}/collab/accept \
--header 'Authorization: <api-key>'const options = {method: 'POST', headers: {Authorization: '<api-key>'}};
fetch('https://api.social-api.ai/v1/platforms/instagram/accounts/{id}/media/{mediaId}/collab/accept', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/platforms/instagram/accounts/{id}/media/{mediaId}/collab/accept"
headers = {"Authorization": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text){
"success": true
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}Authorizations
Prefix your API key with "Bearer ". Example: Authorization: Bearer sapi_key_...
Path Parameters
Connected account ID (the invited account)
Instagram media ID carrying the invite
Response
Invite accepted
Example:
true