List Email Accounts
curl --request GET \
--url https://omnicommerce.ai/api/v1/email/accounts \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omnicommerce.ai/api/v1/email/accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.ai/api/v1/email/accounts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"ok": true,
"operationId": "<string>",
"status": "<string>",
"data": {
"accounts": [
{
"connectionId": "<string>",
"provider": "gmail",
"emailAddress": "<string>",
"isDefault": true,
"capabilities": [
"<string>"
],
"status": "active"
}
],
"count": 123
}
}Email
List Email Accounts
Your connected Gmail and Outlook accounts, default first. Pass an account’s connectionId to the other email endpoints to choose it.
Authorization
Requires email:read and the integration permission the matching chat tool needs, with a person’s credential: a CLI login, a signed-in session, or the SDK key inside your own chat sandbox. Only your own connected mailboxes are reachable; another account’s connectionId is refused.
GET
/
api
/
v1
/
email
/
accounts
List Email Accounts
curl --request GET \
--url https://omnicommerce.ai/api/v1/email/accounts \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omnicommerce.ai/api/v1/email/accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.ai/api/v1/email/accounts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"ok": true,
"operationId": "<string>",
"status": "<string>",
"data": {
"accounts": [
{
"connectionId": "<string>",
"provider": "gmail",
"emailAddress": "<string>",
"isDefault": true,
"capabilities": [
"<string>"
],
"status": "active"
}
],
"count": 123
}
}