diff --git a/src/Endpoints/EmailEndpoint.php b/src/Endpoints/EmailEndpoint.php index 966bd56..0904b94 100644 --- a/src/Endpoints/EmailEndpoint.php +++ b/src/Endpoints/EmailEndpoint.php @@ -217,6 +217,11 @@ public function send(): array $headers['Idempotency-Key'] = $this->idempotencyKey; } - return $this->httpClient->post('/v1/send', $this->payload, $headers); + $result = $this->httpClient->post('/v1/send', $this->payload, $headers); + + $this->payload = []; + $this->idempotencyKey = null; + + return $result; } }