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

# Create Contact

Create a new contact.

<ParamField body="name" type="string" required>
  Contact name
</ParamField>

<ParamField body="phone_e164" type="string" required>
  Phone number in E.164 format
</ParamField>

<ParamField body="email" type="string">
  Email address
</ParamField>

<ParamField body="attributes" type="object">
  Custom attributes (key-value pairs)
</ParamField>

<ParamField body="tags" type="array">
  Array of tag strings
</ParamField>

## Request Example

<RequestExample>
  ```json theme={null}
  {
    "name": "John Doe",
    "phone_e164": "+255614853618",
    "email": "john@example.com",
    "attributes": {
      "company": "Example Corp",
      "position": "Manager"
    },
    "tags": ["VIP", "Customer"]
  }
  ```
</RequestExample>

## Success Response (201)

<ResponseExample>
  ```json theme={null}
  {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "name": "John Doe",
    "phone_e164": "+255614853618",
    "email": "john@example.com",
    "attributes": {
      "company": "Example Corp",
      "position": "Manager"
    },
    "tags": ["VIP", "Customer"],
    "is_active": true,
    "opt_in_at": "2025-11-27T10:30:00Z",
    "opt_out_at": null,
    "created_at": "2025-11-27T10:30:00Z",
    "updated_at": "2025-11-27T10:30:00Z"
  }
  ```
</ResponseExample>
