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

# Create contact

> Register a new contact in your organization's address book

Create a new contact record with phone number, name, optional categorization tags, notes, and custom metadata fields.

***

### Authentication

This endpoint requires Bearer token authentication.

```http theme={null}
Authorization: Bearer <token>
```

| Header          | Type     | Required | Description                                     | Format           |
| :-------------- | :------- | :------- | :---------------------------------------------- | :--------------- |
| `Authorization` | `string` | **Yes**  | Scoped organization API key or Bearer JWT token | `Bearer <token>` |

***

### Input parameters

The following parameters are accepted in the JSON request body.

<ParamField header="Authorization" type="string" required>
  Bearer token for authentication. Format: `Bearer <token>`.
</ParamField>

<ParamField body="phone_number" type="string" required>
  Destination phone number (maximum 50 characters). E.164 format is recommended (e.g. `+14155550199`).
</ParamField>

<ParamField body="name" type="string" required>
  Full name or display name of the contact (maximum 255 characters). Example: `Jane Doe`.
</ParamField>

<ParamField body="tags" type="string[]">
  Array of classification tags for segmenting campaigns (e.g. `["lead", "vip", "retail"]`). Defaults to `[]`.
</ParamField>

<ParamField body="notes" type="string">
  Internal context, notes, or customer history notes.
</ParamField>

<ParamField body="custom_fields" type="object">
  Key-value dictionary containing arbitrary custom metadata (e.g. `{"account_id": "acc_123", "plan": "enterprise"}`).
</ParamField>

***

### Response Fields

<ResponseField name="id" type="string">
  Generated UUID identifier of the contact.
</ResponseField>

<ResponseField name="organization_id" type="string">
  UUID of the owning organization.
</ResponseField>

<ResponseField name="phone_number" type="string">
  Contact's telephone number.
</ResponseField>

<ResponseField name="name" type="string">
  Contact's full name.
</ResponseField>

<ResponseField name="tags" type="string[]">
  Assigned segmentation tags.
</ResponseField>

<ResponseField name="notes" type="string">
  Internal notes text or `null`.
</ResponseField>

<ResponseField name="custom_fields" type="object">
  Stored custom metadata object or `null`.
</ResponseField>

<ResponseField name="created_at" type="string">
  ISO 8601 creation timestamp.
</ResponseField>

<ResponseField name="updated_at" type="string">
  ISO 8601 last modification timestamp.
</ResponseField>

***

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST "https://api.sayvy.ai/api/v1/contacts" \
    -H "Authorization: Bearer <token>" \
    -H "Content-Type: application/json" \
    -d '{
      "phone_number": "+14155550199",
      "name": "Jane Doe",
      "tags": ["vip", "enterprise"],
      "notes": "Met at SaaS Summit 2026",
      "custom_fields": {
        "company": "Acme Corp",
        "lead_score": 92
      }
    }'
  ```

  ```python Python theme={null}
  import requests

  url = "https://api.sayvy.ai/api/v1/contacts"

  payload = {
      "phone_number": "+14155550199",
      "name": "Jane Doe",
      "tags": ["vip", "enterprise"],
      "notes": "Met at SaaS Summit 2026",
      "custom_fields": {
          "company": "Acme Corp",
          "lead_score": 92
      }
  }

  headers = {
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
  }

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

  ```javascript JavaScript theme={null}
  const response = await fetch("https://api.sayvy.ai/api/v1/contacts", {
    method: "POST",
    headers: {
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      phone_number: "+14155550199",
      name: "Jane Doe",
      tags: ["vip", "enterprise"],
      notes: "Met at SaaS Summit 2026",
      custom_fields: {
        company: "Acme Corp",
        lead_score: 92
      }
    })
  });

  const data = await response.json();
  console.log(data);
  ```

  ```java Java theme={null}
  HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://api.sayvy.ai/api/v1/contacts"))
      .header("Authorization", "Bearer <token>")
      .header("Content-Type", "application/json")
      .POST(HttpRequest.BodyPublishers.ofString("""
        {
          "phone_number": "+14155550199",
          "name": "Jane Doe",
          "tags": ["vip", "enterprise"],
          "notes": "Met at SaaS Summit 2026",
          "custom_fields": {
            "company": "Acme Corp",
            "lead_score": 92
          }
        }
      """))
      .build();

  HttpResponse<String> response =
      HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
  System.out.println(response.body());
  ```
</RequestExample>

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "id": "7b8f9e2a-4c1d-48ef-9123-bcde456789ab",
    "organization_id": "93f35dc2-5d46-4e58-a9ee-038c35d9bcf1",
    "phone_number": "+14155550199",
    "name": "Jane Doe",
    "tags": [
      "vip",
      "enterprise"
    ],
    "notes": "Met at SaaS Summit 2026",
    "custom_fields": {
      "company": "Acme Corp",
      "lead_score": 92
    },
    "created_at": "2026-09-07T11:00:00Z",
    "updated_at": "2026-09-07T11:00:00Z"
  }
  ```

  ```json 400 Bad Request theme={null}
  {
    "detail": "Invalid phone number format or length."
  }
  ```

  ```json 401 Unauthorized theme={null}
  {
    "detail": "Unauthorized"
  }
  ```
</ResponseExample>

***

<div
  style={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
backgroundColor: "rgba(255, 255, 255, 0.03)",
border: "1px solid rgba(255, 255, 255, 0.08)",
borderRadius: "16px",
padding: "10px 18px",
marginTop: "40px",
gap: "16px",
flexWrap: "wrap"
}}
>
  <a
    href="/api-reference/contacts/overview"
    style={{
display: "inline-flex",
alignItems: "center",
gap: "6px",
color: "#94A3B8",
textDecoration: "none",
fontSize: "14px",
fontWeight: "500",
padding: "4px 8px"
}}
  >
    <span style={{ fontSize: "16px" }}>‹</span> Previous
  </a>

  <div
    style={{
display: "flex",
alignItems: "center",
gap: "16px",
backgroundColor: "rgba(255, 255, 255, 0.04)",
border: "1px solid rgba(255, 255, 255, 0.06)",
borderRadius: "12px",
padding: "8px 16px",
marginLeft: "auto"
}}
  >
    <div style={{ textAlign: "right" }}>
      <div style={{ fontSize: "13px", fontWeight: "700", color: "#F8FAFC" }}>List contacts</div>

      <div style={{ fontSize: "11px", color: "#94A3B8", maxWidth: "260px", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }}>
        GET /api/v1/contacts
      </div>
    </div>

    <div style={{ width: "1px", height: "24px", backgroundColor: "rgba(255, 255, 255, 0.1)" }} />

    <a
      href="/api-reference/contacts/list-contacts"
      style={{
  display: "inline-flex",
  alignItems: "center",
  gap: "6px",
  color: "#94A3B8",
  textDecoration: "none",
  fontSize: "14px",
  fontWeight: "500"
}}
    >
      Next <span style={{ fontSize: "16px" }}>›</span>
    </a>
  </div>
</div>
