Operations
Track the progress of long-running bulk operations (batch sends, newsletters, broadcasts)
2 endpoints
Endpoints
| Method | Path | Description |
| GET | /v1/operations | GET /v1/operations - List operations for the account |
| GET | /v1/operations/{id} | GET /v1/operations/:id - Get a single operation |
GET /v1/operations
GET /v1/operations - List operations for the account
Parameters
| Name | In | Type | Required | Description |
page | query | integer | No | Page number (default: 1) |
per_page | query | integer | No | Items per page (default: 25) |
Responses
| Status | Description |
| 200 | Paginated list of operations |
| 401 | Unauthorized |
Example
curl -X GET https://api.euromail.dev/v1/operations \
-H "X-EuroMail-Api-Key: em_live_..."
import { EuroMail } from "@euromail/sdk";
const euromail = new EuroMail({ apiKey: "em_live_..." });
const result = await euromail.listOperations();
from euromail import EuroMail
client = EuroMail(api_key="em_live_...")
result = client.list_operations()
use euromail::EuroMail;
let client = EuroMail::new("em_live_...");
let result = client.list_operations().await?;
client := euromail.NewClient("em_live_...")
result, err := client.ListOperations(ctx)
GET /v1/operations/{id}
GET /v1/operations/:id - Get a single operation
Parameters
| Name | In | Type | Required | Description |
id | path | string | Yes | Operation ID |
Responses
| Status | Description |
| 200 | Operation details |
| 401 | Unauthorized |
| 404 | Operation not found |
Example
curl -X GET https://api.euromail.dev/v1/operations/{id} \
-H "X-EuroMail-Api-Key: em_live_..."
import { EuroMail } from "@euromail/sdk";
const euromail = new EuroMail({ apiKey: "em_live_..." });
const result = await euromail.getOperation("id_...");
from euromail import EuroMail
client = EuroMail(api_key="em_live_...")
result = client.get_operation("id_...")
use euromail::EuroMail;
let client = EuroMail::new("em_live_...");
let result = client.get_operation("id_...").await?;
client := euromail.NewClient("em_live_...")
result, err := client.GetOperation(ctx, "id_...")