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

# Create a contact

> Create a contact

### Path parameters

<ParamField path="id" type="string" required>
  Company ID
</ParamField>

### Request body

`CreateContactRequest`

<ParamField body="email" type="string,null" />

<ParamField body="first_name" type="string" required />

<ParamField body="last_name" type="string,null" />

<ParamField body="phone" type="string,null" />

<ParamField body="title" type="string,null" />

### Responses

<ResponseField name="201" type="ContactResponse" />

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api.stateset.com/api/v1/companies/{id}/contacts' \
    --header 'Authorization: Bearer YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{
    "email": null,
    "first_name": "string",
    "last_name": null,
    "phone": null,
    "title": null
  }'
  ```
</RequestExample>

<ResponseExample>
  ```json 201 theme={null}
  {
    "email": null,
    "id": "string",
    "name": "string",
    "title": null
  }
  ```
</ResponseExample>
