Sign in

Messages: Resend

POST https://{organization}.myguper.com/api/sender/messages/{id}/resend

Clones a message process and its selected dispatchers, creating new pending entries that the dispatch cron will pick up and send again. When a recipient object is provided, it overrides the original dispatcher's contact data, allowing the caller to pass refreshed information from the register.

Try-it values populated from environment ACME (Demo)

Modes

Resends selected dispatchers from an existing message process.

Authentication

Token

Send your user token in the x-guper-authorization header.

Headers

Name Type Description
x-guper-authorization * string User token issued by Guper.
Content-Type * string Always `application/json` for endpoints that accept a JSON body.

Path parameters

Name Type Description
id * integer Original `message_process_queue.id` to resend from.

Request body

Content-Type: application/json

{
    "dispatchers": "[101, 102]",
    "resentBy": "42",                                           // optional
    "recipient": {                                              // optional
        "id": "12345",                                          // optional
        "name": "John Doe",                                     // optional
        "email": "john@example.com",                            // optional
        "cellphone": "19981127262",                             // optional
        "countryCallingCode": "55"                              // optional
    }
}

Responses

{
    "resent": true,
    "processId": 4986575,
    "dispatchers": 1
}
Copied to clipboard