curl --request GET \
--url https://api.aisa.one/apis/v1/social/inbox/mentions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/social/inbox/mentions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/social/inbox/mentions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/social/inbox/mentions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/social/inbox/mentions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/social/inbox/mentions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/social/inbox/mentions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"accountId": "<string>",
"accountUsername": "<string>",
"authorName": "<string>",
"authorPicture": "<string>",
"authorUrn": "<string>",
"authorUsername": "<string>",
"commentId": "<string>",
"content": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"id": "<string>",
"mediaId": "<string>",
"organizationalEntity": "<string>",
"permalink": "<string>",
"platform": "linkedin",
"postId": "<string>",
"publishedAt": "2023-11-07T05:31:56Z",
"type": "caption"
}
],
"meta": {
"sortOrder": "asc",
"total": 123
},
"pagination": {
"cursor": "<string>",
"hasMore": true
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"param": "<string>",
"retryHint": "never",
"retryable": true,
"type": "<string>"
}
}List mentions
Mentions. Read only; needs social:read. Ids are yours: accounts acc_…, profiles prf_…, posts pst_…; every other object id is checked against your accounts before the call. Without profileId or accountId it reads your default profile. Charged only when the call succeeds.
Returns mentions of your connected accounts from the last 7 days. Requires Inbox addon.
Organization mentions, delivered by webhooks and a background pull.
Comment mentions (someone tags the account in a comment on their own media) and caption mentions (someone tags it in their media caption), delivered by the Meta mentions webhook.
- Only accounts connected through Facebook Login receive them.
- Comments on the account’s own posts are never listed, even when they contain its @handle.
- Their text is read from Instagram in the background after the first request, so
contentcan be empty on the first read. - Pass
mediaIdandcommentIdtoPOST /apis/v1/social/inbox/mentions/replyto answer one.
Post mentions (someone tags the Page in a post) and comment mentions (someone tags it in a comment), delivered by the Page mention webhook with their text.
- Comments on the Page’s own posts and anything the Page wrote itself are never listed.
- Facebook mentions cannot be replied to through
POST /apis/v1/social/inbox/mentions/reply.
curl --request GET \
--url https://api.aisa.one/apis/v1/social/inbox/mentions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/social/inbox/mentions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/social/inbox/mentions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/social/inbox/mentions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/social/inbox/mentions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/social/inbox/mentions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/social/inbox/mentions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"accountId": "<string>",
"accountUsername": "<string>",
"authorName": "<string>",
"authorPicture": "<string>",
"authorUrn": "<string>",
"authorUsername": "<string>",
"commentId": "<string>",
"content": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"id": "<string>",
"mediaId": "<string>",
"organizationalEntity": "<string>",
"permalink": "<string>",
"platform": "linkedin",
"postId": "<string>",
"publishedAt": "2023-11-07T05:31:56Z",
"type": "caption"
}
],
"meta": {
"sortOrder": "asc",
"total": 123
},
"pagination": {
"cursor": "<string>",
"hasMore": true
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"param": "<string>",
"retryHint": "never",
"retryable": true,
"type": "<string>"
}
}Request contract
- Method and path: GET /apis/v1/social/inbox/mentions
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/social/inbox/mentions - accountId: query; optional
- profileId: query; optional
- sortOrder: query; optional
- limit: query; optional
- cursor: query; optional
{
"operationId": "get_aisa_social_apis_v1_social_inbox_mentions",
"method": "GET",
"path": "/apis/v1/social/inbox/mentions",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"description": "One of your social accounts (acc_...).",
"in": "query",
"name": "accountId",
"required": false,
"schema": {
"pattern": "^acc_[0-9A-Za-z]{22}$",
"type": "string"
}
},
{
"description": "One of your profiles (prf_...). Defaults to your default profile when neither profileId nor accountId is sent.",
"in": "query",
"name": "profileId",
"required": false,
"schema": {
"pattern": "^prf_[0-9A-Za-z]{22}$",
"type": "string"
}
},
{
"description": "Sort order by publishedAt",
"in": "query",
"name": "sortOrder",
"required": false,
"schema": {
"default": "desc",
"enum": [
"asc",
"desc"
],
"type": "string"
}
},
{
"in": "query",
"name": "limit",
"required": false,
"schema": {
"default": 25,
"maximum": 100,
"minimum": 1,
"type": "integer"
}
},
{
"description": "Cursor for pagination (ID of the last item from the previous page)",
"in": "query",
"name": "cursor",
"required": false,
"schema": {
"type": "string"
}
}
],
"security": [
{
"bearerAuth": []
}
],
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}