POST /emails/{job_id}/cancel
Cancel a send still queued (scheduled or not)
API key (Bearer), on the public API endpoint.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
job_id | path | string · required |
Responses
| Status | Description | Body |
|---|---|---|
200 | Send cancelled | EmailResponse |
403 | Scope mail:send missing | |
404 | Send not found | |
409 | Send already dispatched or finished |
Examples
curl
curl -X POST "$GALON_API_BASE/emails/<job_id>/cancel" \
-H "Authorization: Bearer $GALON_API_KEY"Node.js (SDK)
import { Galon } from "galon";
const galon = new Galon(process.env.GALON_API_KEY);
const result = await galon.emails.cancel("<id>");Python (SDK)
from galon import Galon
galon = Galon() # reads GALON_API_KEY
result = galon.emails.cancel("<id>")