← All API sections

Operations

Track the progress of long-running bulk operations (batch sends, newsletters, broadcasts)

2 endpoints

Endpoints

MethodPathDescription
GET/v1/operationsGET /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

NameInTypeRequiredDescription
pagequeryintegerNoPage number (default: 1)
per_pagequeryintegerNoItems per page (default: 25)

Responses

StatusDescription
200Paginated list of operations
401Unauthorized

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

NameInTypeRequiredDescription
idpathstringYesOperation ID

Responses

StatusDescription
200Operation details
401Unauthorized
404Operation 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_...")