> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://wt.hhr.systems/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://wt.hhr.systems/_mcp/server.

# Resend the ticket email

POST https://api.sar.worldticket.cloud/sms-gateway-service/notifications/email
Content-Type: application/json

Resend the ticket confirmation email for a booking. Send the record locator and the recipients. Returns `204 No Content` on success.


Reference: https://wt.hhr.systems/hhr-ticketing-system-api/tickets/resend-ticket-email

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /sms-gateway-service/notifications/email:
    post:
      operationId: resendTicketEmail
      summary: Resend the ticket email
      description: >
        Resend the ticket confirmation email for a booking. Send the record
        locator and the recipients. Returns `204 No Content` on success.
      tags:
        - Tickets
      parameters:
        - name: x-api-key
          in: header
          required: true
          schema:
            type: string
      responses:
        '204':
          description: The email was sent.
          content:
            application/json:
              schema:
                type: object
                properties: {}
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResendTicketEmailRequest'
servers:
  - url: https://api.sar.worldticket.cloud
    description: Production
  - url: https://test-api.worldticket.net
    description: Test
components:
  schemas:
    ResendTicketEmailRequestPassengersItems:
      type: object
      properties:
        firstName:
          type: string
        middleName:
          type: string
        lastName:
          type: string
      title: ResendTicketEmailRequestPassengersItems
    ResendTicketEmailRequest:
      type: object
      properties:
        emails:
          type: array
          items:
            type: string
          description: Recipients of the ticket email.
        ccEmails:
          type: array
          items:
            type: string
        bccEmails:
          type: array
          items:
            type: string
        recordLocator:
          type: string
          description: The booking's W1 record locator.
        passengers:
          type: array
          items:
            $ref: '#/components/schemas/ResendTicketEmailRequestPassengersItems'
      required:
        - emails
        - recordLocator
      title: ResendTicketEmailRequest

```

## Examples



**Request**

```json
{
  "emails": [
    "traveler@example.com"
  ],
  "recordLocator": "N6G2NW",
  "ccEmails": [],
  "bccEmails": [],
  "passengers": [
    {
      "firstName": "BARAA",
      "lastName": "BUKHARI"
    },
    {
      "firstName": "SARA",
      "lastName": "BUKHARI"
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.sar.worldticket.cloud/sms-gateway-service/notifications/email"

payload = {
    "emails": ["traveler@example.com"],
    "recordLocator": "N6G2NW",
    "ccEmails": [],
    "bccEmails": [],
    "passengers": [
        {
            "firstName": "BARAA",
            "lastName": "BUKHARI"
        },
        {
            "firstName": "SARA",
            "lastName": "BUKHARI"
        }
    ]
}
headers = {
    "x-api-key": "YOUR_API_KEY",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.sar.worldticket.cloud/sms-gateway-service/notifications/email';
const options = {
  method: 'POST',
  headers: {'x-api-key': 'YOUR_API_KEY', 'Content-Type': 'application/json'},
  body: '{"emails":["traveler@example.com"],"recordLocator":"N6G2NW","ccEmails":[],"bccEmails":[],"passengers":[{"firstName":"BARAA","lastName":"BUKHARI"},{"firstName":"SARA","lastName":"BUKHARI"}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.sar.worldticket.cloud/sms-gateway-service/notifications/email"

	payload := strings.NewReader("{\n  \"emails\": [\n    \"traveler@example.com\"\n  ],\n  \"recordLocator\": \"N6G2NW\",\n  \"ccEmails\": [],\n  \"bccEmails\": [],\n  \"passengers\": [\n    {\n      \"firstName\": \"BARAA\",\n      \"lastName\": \"BUKHARI\"\n    },\n    {\n      \"firstName\": \"SARA\",\n      \"lastName\": \"BUKHARI\"\n    }\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-api-key", "YOUR_API_KEY")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.sar.worldticket.cloud/sms-gateway-service/notifications/email")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-api-key"] = 'YOUR_API_KEY'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"emails\": [\n    \"traveler@example.com\"\n  ],\n  \"recordLocator\": \"N6G2NW\",\n  \"ccEmails\": [],\n  \"bccEmails\": [],\n  \"passengers\": [\n    {\n      \"firstName\": \"BARAA\",\n      \"lastName\": \"BUKHARI\"\n    },\n    {\n      \"firstName\": \"SARA\",\n      \"lastName\": \"BUKHARI\"\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.sar.worldticket.cloud/sms-gateway-service/notifications/email")
  .header("x-api-key", "YOUR_API_KEY")
  .header("Content-Type", "application/json")
  .body("{\n  \"emails\": [\n    \"traveler@example.com\"\n  ],\n  \"recordLocator\": \"N6G2NW\",\n  \"ccEmails\": [],\n  \"bccEmails\": [],\n  \"passengers\": [\n    {\n      \"firstName\": \"BARAA\",\n      \"lastName\": \"BUKHARI\"\n    },\n    {\n      \"firstName\": \"SARA\",\n      \"lastName\": \"BUKHARI\"\n    }\n  ]\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.sar.worldticket.cloud/sms-gateway-service/notifications/email', [
  'body' => '{
  "emails": [
    "traveler@example.com"
  ],
  "recordLocator": "N6G2NW",
  "ccEmails": [],
  "bccEmails": [],
  "passengers": [
    {
      "firstName": "BARAA",
      "lastName": "BUKHARI"
    },
    {
      "firstName": "SARA",
      "lastName": "BUKHARI"
    }
  ]
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => 'YOUR_API_KEY',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.sar.worldticket.cloud/sms-gateway-service/notifications/email");
var request = new RestRequest(Method.POST);
request.AddHeader("x-api-key", "YOUR_API_KEY");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"emails\": [\n    \"traveler@example.com\"\n  ],\n  \"recordLocator\": \"N6G2NW\",\n  \"ccEmails\": [],\n  \"bccEmails\": [],\n  \"passengers\": [\n    {\n      \"firstName\": \"BARAA\",\n      \"lastName\": \"BUKHARI\"\n    },\n    {\n      \"firstName\": \"SARA\",\n      \"lastName\": \"BUKHARI\"\n    }\n  ]\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "x-api-key": "YOUR_API_KEY",
  "Content-Type": "application/json"
]
let parameters = [
  "emails": ["traveler@example.com"],
  "recordLocator": "N6G2NW",
  "ccEmails": [],
  "bccEmails": [],
  "passengers": [
    [
      "firstName": "BARAA",
      "lastName": "BUKHARI"
    ],
    [
      "firstName": "SARA",
      "lastName": "BUKHARI"
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.sar.worldticket.cloud/sms-gateway-service/notifications/email")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```