> ## Documentation Index
> Fetch the complete documentation index at: https://docs.shipfastai.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Contact API

> Reference for the contact form endpoint that sends support messages and confirmation emails.

The contact API accepts form submissions from the Shipfastai website, sends a notification email to the support team, and sends a confirmation email to the submitter.

***

## POST /api/contact

Submit a contact form message. The endpoint sends a styled notification email to the support team and a confirmation email to the submitter.

**Request body:**

<ParamField body="name" type="string" required>
  Full name of the person submitting the form.
</ParamField>

<ParamField body="email" type="string" required>
  Email address for the reply and confirmation email.
</ParamField>

<ParamField body="subject" type="string" required>
  The subject category. One of `sales`, `support`, `enterprise`, `partnership`, or `other`.
</ParamField>

<ParamField body="message" type="string" required>
  The message body.
</ParamField>

```bash theme={null}
curl --request POST \
  --url "https://your-app.com/api/contact" \
  --header "Content-Type: application/json" \
  --data '{
    "name": "Jane Smith",
    "email": "jane@example.com",
    "subject": "support",
    "message": "I need help with my license key."
  }'
```

### Subject categories

| Value         | Label                |
| ------------- | -------------------- |
| `sales`       | Sales Inquiry        |
| `support`     | Technical Support    |
| `enterprise`  | Enterprise Solutions |
| `partnership` | Partnership          |
| `other`       | General Inquiry      |

### Success response

```json theme={null}
{
  "success": true
}
```

### Error responses

| Status | Condition                                                         |
| ------ | ----------------------------------------------------------------- |
| `400`  | Missing required field (`name`, `email`, `subject`, or `message`) |
| `500`  | Failed to send the notification email                             |
