Authorization
All requests must include a Bearer token in theAuthorization header. You can find your API key in the Leadterra dashboard under Settings → API Keys.
Path Parameters
The unique ID of the campaign you want to pause. You receive this ID when you create a campaign. Example:
camp_123.Request Body
This endpoint accepts no request body.Example Request
Response Fields
The campaign ID that was paused.
Updated campaign status. Returns
paused on success.ISO 8601 timestamp of when the campaign transitioned to
paused.Example Response
Notes
- Calling this endpoint on a campaign that is already
pausedor indraftstatus is a no-op — the response returns the current state without error. - Emails that were already in transit before the pause signal was received will still be delivered to recipients.
- To resume sending, call the Start Campaign endpoint with the same campaign ID.
Error Codes
| HTTP Status | Code | Meaning |
|---|---|---|
400 Bad Request | invalid_request | The request was malformed or contained unexpected parameters. |
401 Unauthorized | authentication_failed | The Authorization header is missing, malformed, or the key is invalid. |
404 Not Found | campaign_not_found | No campaign with the given id exists in your workspace. |