Skip to Content
MailroomMailroom home
API referenceApprovals

Reject a pending send

POST
/approvals/{id}/reject

Authorization

bearerAuth
headerAuthorizationBearer <mr_live_ / mr_test_>

API key. Never log the secret.

Path Parameters

id*string

Header Parameters

Idempotency-Key?string

Stored 24h. Same key + body returns the original response.

Request Body

application/json
  1. body
reason?string

Response Body

Rejected

application/json
  1. response
id?string
email_id?string
agent_id?string
status?string
Value in"pending""approved""rejected""expired""edited"
requested_at?string
Formatdate-time
expires_at?string
Formatdate-time
reason?string
Example Request
curl -X POST 'https://api.mailroom.gosuevals.com/v1/approvals/string/reject' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response200
{  "id": "string",  "email_id": "string",  "agent_id": "string",  "status": "pending",  "requested_at": "2019-08-24T14:15:22Z",  "expires_at": "2019-08-24T14:15:22Z",  "reason": "string"}