List WhatsApp conversations
curl --request GET \
--url https://api.aisa.one/apis/v1/social/messaging/whatsapp/conversations \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/social/messaging/whatsapp/conversations"
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/messaging/whatsapp/conversations', 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/messaging/whatsapp/conversations",
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/messaging/whatsapp/conversations"
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/messaging/whatsapp/conversations")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/social/messaging/whatsapp/conversations")
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": [
{
"accountUsername": "<string>",
"adAttribution": {
"adAccountId": "<string>",
"adAccountName": "<string>",
"adId": "<string>",
"adSetId": "<string>",
"adSetName": "<string>",
"campaignId": "<string>",
"campaignName": "<string>",
"isExternal": true,
"name": "<string>",
"platformPostId": "<string>",
"synced": true
},
"businessScopedUserId": "<string>",
"connectionId": "<string>",
"contentNotRetained": true,
"folder": "requests",
"id": "<string>",
"instagramProfile": {
"fetchedAt": "2023-11-07T05:31:56Z",
"followerCount": 123,
"isFollower": true,
"isFollowing": true,
"isVerified": true
},
"isGroup": true,
"lastMessage": "<string>",
"metadata": {
"ctwa_body": "<string>",
"ctwa_captured_at": "2023-11-07T05:31:56Z",
"ctwa_clid": "<string>",
"ctwa_headline": "<string>",
"ctwa_image_url": "<string>",
"ctwa_media_type": "<string>",
"ctwa_message_id": "<string>",
"ctwa_source_id": "<string>",
"ctwa_source_type": "<string>",
"ctwa_source_url": "<string>",
"ctwa_thumbnail_url": "<string>",
"ctwa_video_url": "<string>",
"meta_ad_captured_at": "2023-11-07T05:31:56Z",
"meta_ad_flow_id": "<string>",
"meta_ad_id": "<string>",
"meta_ad_photo_url": "<string>",
"meta_ad_post_id": "<string>",
"meta_ad_product_id": "<string>",
"meta_ad_ref": "<string>",
"meta_ad_source": "<string>",
"meta_ad_title": "<string>",
"meta_ad_type": "<string>",
"meta_ad_video_url": "<string>"
},
"pageId": "<string>",
"participantId": "<string>",
"participantName": "<string>",
"participantPicture": "<string>",
"participantVerifiedType": "blue",
"platform": "<string>",
"status": "active",
"threadControl": "app",
"unreadCount": 123,
"updatedAt": "2023-11-07T05:31:56Z",
"updatedTime": "2023-11-07T05:31:56Z",
"url": "<string>",
"whatsappUsername": "<string>"
}
],
"meta": {
"accountsFailed": 123,
"accountsQueried": 123,
"accountsSkipped": [
{
"connectionId": "<string>",
"platform": "<string>"
}
],
"failedAccounts": [
{
"accountUsername": "<string>",
"code": "<string>",
"connectionId": "<string>",
"error": "<string>",
"platform": "<string>",
"retryAfter": 123
}
],
"lastUpdated": "2023-11-07T05:31:56Z"
},
"pagination": {
"hasMore": true,
"nextCursor": "<string>"
},
"sync": {
"nextUpdatedSince": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"param": "<string>",
"retryHint": "<string>",
"retryable": true,
"type": "<string>"
}
}AIsa Messaging
List WhatsApp conversations
WhatsApp Inbox. List WhatsApp conversations.
GET
https://api.aisa.one
/
apis
/
v1
/
social
/
messaging
/
whatsapp
/
conversations
List WhatsApp conversations
curl --request GET \
--url https://api.aisa.one/apis/v1/social/messaging/whatsapp/conversations \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/social/messaging/whatsapp/conversations"
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/messaging/whatsapp/conversations', 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/messaging/whatsapp/conversations",
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/messaging/whatsapp/conversations"
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/messaging/whatsapp/conversations")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/social/messaging/whatsapp/conversations")
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": [
{
"accountUsername": "<string>",
"adAttribution": {
"adAccountId": "<string>",
"adAccountName": "<string>",
"adId": "<string>",
"adSetId": "<string>",
"adSetName": "<string>",
"campaignId": "<string>",
"campaignName": "<string>",
"isExternal": true,
"name": "<string>",
"platformPostId": "<string>",
"synced": true
},
"businessScopedUserId": "<string>",
"connectionId": "<string>",
"contentNotRetained": true,
"folder": "requests",
"id": "<string>",
"instagramProfile": {
"fetchedAt": "2023-11-07T05:31:56Z",
"followerCount": 123,
"isFollower": true,
"isFollowing": true,
"isVerified": true
},
"isGroup": true,
"lastMessage": "<string>",
"metadata": {
"ctwa_body": "<string>",
"ctwa_captured_at": "2023-11-07T05:31:56Z",
"ctwa_clid": "<string>",
"ctwa_headline": "<string>",
"ctwa_image_url": "<string>",
"ctwa_media_type": "<string>",
"ctwa_message_id": "<string>",
"ctwa_source_id": "<string>",
"ctwa_source_type": "<string>",
"ctwa_source_url": "<string>",
"ctwa_thumbnail_url": "<string>",
"ctwa_video_url": "<string>",
"meta_ad_captured_at": "2023-11-07T05:31:56Z",
"meta_ad_flow_id": "<string>",
"meta_ad_id": "<string>",
"meta_ad_photo_url": "<string>",
"meta_ad_post_id": "<string>",
"meta_ad_product_id": "<string>",
"meta_ad_ref": "<string>",
"meta_ad_source": "<string>",
"meta_ad_title": "<string>",
"meta_ad_type": "<string>",
"meta_ad_video_url": "<string>"
},
"pageId": "<string>",
"participantId": "<string>",
"participantName": "<string>",
"participantPicture": "<string>",
"participantVerifiedType": "blue",
"platform": "<string>",
"status": "active",
"threadControl": "app",
"unreadCount": 123,
"updatedAt": "2023-11-07T05:31:56Z",
"updatedTime": "2023-11-07T05:31:56Z",
"url": "<string>",
"whatsappUsername": "<string>"
}
],
"meta": {
"accountsFailed": 123,
"accountsQueried": 123,
"accountsSkipped": [
{
"connectionId": "<string>",
"platform": "<string>"
}
],
"failedAccounts": [
{
"accountUsername": "<string>",
"code": "<string>",
"connectionId": "<string>",
"error": "<string>",
"platform": "<string>",
"retryAfter": 123
}
],
"lastUpdated": "2023-11-07T05:31:56Z"
},
"pagination": {
"hasMore": true,
"nextCursor": "<string>"
},
"sync": {
"nextUpdatedSince": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"param": "<string>",
"retryHint": "<string>",
"retryable": true,
"type": "<string>"
}
}请求规范
- 方法与路径: GET /apis/v1/social/messaging/whatsapp/conversations
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/social/messaging/whatsapp/conversations - connectionId: query; 必填
- updatedSince: query; 可选
- sortOrder: query; 可选
- limit: query; 可选
- cursor: query; 可选
{
"operationId": "get_aisa_messaging_apis_v1_social_messaging_whats_ef0748",
"method": "GET",
"path": "/apis/v1/social/messaging/whatsapp/conversations",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"description": "Your messaging connection (msc_...), from GET /apis/v1/social/messaging/connections.",
"in": "query",
"name": "connectionId",
"required": true,
"schema": {
"pattern": "^msc_[0-9A-Za-z]+$",
"type": "string"
}
},
{
"in": "query",
"name": "updatedSince",
"required": false,
"schema": {
"format": "date-time",
"type": "string"
}
},
{
"in": "query",
"name": "sortOrder",
"required": false,
"schema": {
"enum": [
"asc",
"desc"
],
"type": "string"
}
},
{
"in": "query",
"name": "limit",
"required": false,
"schema": {
"maximum": 100,
"minimum": 1,
"type": "integer"
}
},
{
"in": "query",
"name": "cursor",
"required": false,
"schema": {
"type": "string"
}
}
],
"security": [
{
"bearerAuth": []
}
],
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}