cURL
curl --request GET \
--url "https://omnimux.ai/api/social/v1/accounts?provider=zernio" \
--header 'Authorization: Bearer <user-access-token>' \
--header 'New-Api-User: <user-id>'import requests
url = "https://omnimux.ai/api/social/v1/accounts"
headers = {
"Authorization": "Bearer <token>",
"New-Api-User": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {Authorization: 'Bearer <token>', 'New-Api-User': '<api-key>'}
};
fetch('https://omnimux.ai/api/social/v1/accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://omnimux.ai/api/social/v1/accounts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("New-Api-User", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"data": {
"accounts": [
{
"id": 123,
"provider": "zernio",
"platform": "<string>",
"status": "<string>",
"username": "<string>",
"display_name": "<string>"
}
]
}
}{
"success": false,
"message": "<string>",
"code": "<string>"
}{
"success": false,
"message": "<string>",
"code": "<string>"
}{
"success": false,
"message": "<string>",
"code": "<string>"
}{
"success": false,
"message": "<string>",
"code": "<string>"
}{
"success": false,
"message": "<string>",
"code": "<string>"
}{
"success": false,
"message": "<string>",
"code": "<string>"
}Connecting Accounts
List Accounts
List Accounts — explicit account source
GET
/
api
/
social
/
v1
/
accounts
cURL
curl --request GET \
--url "https://omnimux.ai/api/social/v1/accounts?provider=zernio" \
--header 'Authorization: Bearer <user-access-token>' \
--header 'New-Api-User: <user-id>'import requests
url = "https://omnimux.ai/api/social/v1/accounts"
headers = {
"Authorization": "Bearer <token>",
"New-Api-User": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {Authorization: 'Bearer <token>', 'New-Api-User': '<api-key>'}
};
fetch('https://omnimux.ai/api/social/v1/accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://omnimux.ai/api/social/v1/accounts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("New-Api-User", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"data": {
"accounts": [
{
"id": 123,
"provider": "zernio",
"platform": "<string>",
"status": "<string>",
"username": "<string>",
"display_name": "<string>"
}
]
}
}{
"success": false,
"message": "<string>",
"code": "<string>"
}{
"success": false,
"message": "<string>",
"code": "<string>"
}{
"success": false,
"message": "<string>",
"code": "<string>"
}{
"success": false,
"message": "<string>",
"code": "<string>"
}{
"success": false,
"message": "<string>",
"code": "<string>"
}{
"success": false,
"message": "<string>",
"code": "<string>"
}Only returns the selected source. The official list does not create a Zernio tenant or run a Zernio sync. An empty array means success with no accounts; failed responses are not empty lists.
provider is required: tiktok_direct or zernio. It constrains the operation and never rewrites the stored source. Missing or unknown values return 400 invalid-provider.
Use an OmniMux user access token and New-Api-User, not an sk- key. Inspect success as well as HTTP status; some upstream failures return HTTP 200 with success:false.
CLI 0.4.0: run omnimux update (binary) or npm install -g @omnimux/cli@0.4.0 (npm), then use omnimux social accounts --provider zernio or --provider tiktok_direct. Update saved scripts as well. See API Updates.Authorizations
OmniMux user access token, not an sk- API key.
Current authenticated user ID.
Query Parameters
Required expected source; never changes the stored account or post provider.
Available options:
tiktok_direct, zernio