cURL
curl -X GET "https://app.emailx.ai/api/v1/workspaces/123/campaigns?channel=linkedin" \
-H "Authorization: Bearer $EMAILX_API_KEY"import os, requests
response = requests.get(
"https://app.emailx.ai/api/v1/workspaces/123/campaigns?channel=linkedin",
headers={"Authorization": "Bearer " + os.environ["EMAILX_API_KEY"]},
timeout=30,
)
response.raise_for_status()
print(response.json())const response = await fetch("https://app.emailx.ai/api/v1/workspaces/123/campaigns?channel=linkedin", {
method: "GET",
headers: { Authorization: `Bearer ${process.env.EMAILX_API_KEY}` },
signal: AbortSignal.timeout(30000),
});
if (!response.ok) throw new Error(`Emailx: ${response.status}`);
console.log(await response.json());{
"data": [
{
"id": 456,
"workspace_id": 123,
"channel": "linkedin",
"name": "Example Studio outreach",
"status": "draft",
"created_at": "2026-10-31T09:00:00Z",
"review_path": "/linkedin-campaign-new/456"
}
],
"has_more": false,
"next_cursor": null
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}Preparare una campagna
Elencare le campagne
Elenca le campagne email o LinkedIn di un workspace. Scegli il canale.
Permesso: campaigns:read
GET
/
workspaces
/
{workspace_id}
/
campaigns
cURL
curl -X GET "https://app.emailx.ai/api/v1/workspaces/123/campaigns?channel=linkedin" \
-H "Authorization: Bearer $EMAILX_API_KEY"import os, requests
response = requests.get(
"https://app.emailx.ai/api/v1/workspaces/123/campaigns?channel=linkedin",
headers={"Authorization": "Bearer " + os.environ["EMAILX_API_KEY"]},
timeout=30,
)
response.raise_for_status()
print(response.json())const response = await fetch("https://app.emailx.ai/api/v1/workspaces/123/campaigns?channel=linkedin", {
method: "GET",
headers: { Authorization: `Bearer ${process.env.EMAILX_API_KEY}` },
signal: AbortSignal.timeout(30000),
});
if (!response.ok) throw new Error(`Emailx: ${response.status}`);
console.log(await response.json());{
"data": [
{
"id": 456,
"workspace_id": 123,
"channel": "linkedin",
"name": "Example Studio outreach",
"status": "draft",
"created_at": "2026-10-31T09:00:00Z",
"review_path": "/linkedin-campaign-new/456"
}
],
"has_more": false,
"next_cursor": null
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}Autorizzazioni
Chiave ex_test_ o ex_live_ emessa da un operatore Emailx. Non usare credenziali provider o cookie di sessione.
Parametri del percorso
ID account del workspace Emailx, non ID del collegamento agenzia.
Intervallo richiesto:
x >= 1Parametri della query
Opzioni disponibili:
email, linkedin Intervallo richiesto:
1 <= x <= 100next_cursor opaco della risposta precedente. Mantieni invariati i filtri.

