> This page is for version v2.
> For other versions, use one of these documentation indexes:
> - v1 (default): https://doc.youratlas.com/v1/llms.txt
> - v2: https://doc.youratlas.com/v2/llms.txt

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

# Create contact manually

POST https://api.youratlas.com/v1/api/contactlist/contactlistmanual
Content-Type: application/json

Adds one or more contacts to a campaign without uploading a CSV. Each contact is validated independently — see the `200` response, which returns accepted contacts under `processed` and rejected ones under `invalid`.

Reference: https://doc.youratlas.com/api-reference/atlas-api/contacts/create-manual-contact

## Authentication

- `api-key` header (required) — Your Atlas API key. Get it from the Atlas Portal under Settings > API Keys.

## Request

### Body (application/json)

This endpoint expects an object.

- `contacts` (list of ContactInput, required)
- `campaignId` (string, optional) — Campaign to attach the contacts to. Omit it and the contacts are created as global contacts only — they will **not** be dialed by any campaign.

## Response

### 200

Contacts processed. Each contact is validated independently and the response is `200` even when every contact is rejected — always check `invalid`, and treat an empty `processed` array as a failure. `invalid` entries carry an `errors` array (for example `Invalid last name`, `Invalid phone number`).

- `processed` (list of ContactEntity, optional)
- `invalid` (list of ContactlistContactlistmanualPostResponsesContentApplicationJsonSchemaInvalidItems, optional)

## Errors

### 400 Bad Request Error

Bad request

- `error` (ErrorError, optional)

### 401 Unauthorized Error

Invalid or missing API key

- `error` (ErrorError, optional)

### 500 Internal Server Error

Internal server error

- `error` (ErrorError, optional)

## Types

### ContactInput

Contact information. In addition to the standard fields, you can include custom fields as additional key-value properties. Custom fields are injected into the agent's script using the `{{fieldName}}` syntax. For example, adding `"appointmentDate": "May 15"` lets the agent reference it as `{{appointmentDate}}` during the conversation.

- `firstName` (string, required) — Contact's first name (injected as `{{firstName}}`)
- `lastName` (string, required) — Contact's last name (injected as `{{lastName}}`)
- `phoneNumber` (string, required) — Contact's phone number in E.164 format (e.g. `+14155552671`). The country code and leading `+` are required — a national-format number such as `2135050618` is rejected.
- `timezone` (string, optional) — Contact's timezone (e.g. America/New_York)

### ContactEntity

- `PartitionKey` (string, optional)
- `RowKey` (string, optional)
- `Timestamp` (datetime, optional)
- `FirstName` (string, optional)
- `LastName` (string, optional)
- `Timezone` (string, optional)
- `TimezoneIANA` (string, optional) — IANA timezone identifier (e.g., America/New_York)
- `TimezoneFriendly` (string, optional) — Human-readable timezone name

### ContactlistContactlistmanualPostResponsesContentApplicationJsonSchemaInvalidItems

Contact information. In addition to the standard fields, you can include custom fields as additional key-value properties. Custom fields are injected into the agent's script using the `{{fieldName}}` syntax. For example, adding `"appointmentDate": "May 15"` lets the agent reference it as `{{appointmentDate}}` during the conversation.

- `firstName` (string, required) — Contact's first name (injected as `{{firstName}}`)
- `lastName` (string, required) — Contact's last name (injected as `{{lastName}}`)
- `phoneNumber` (string, required) — Contact's phone number in E.164 format (e.g. `+14155552671`). The country code and leading `+` are required — a national-format number such as `2135050618` is rejected.
- `timezone` (string, optional) — Contact's timezone (e.g. America/New_York)
- `errors` (list of string, optional)

### ErrorError

- `message` (string, optional)
- `code` (string, optional)
- `requestId` (string, optional)

## Examples

**Request**

```json
{
  "contacts": [
    {
      "firstName": "Jane",
      "lastName": "Doe",
      "phoneNumber": "+15555550123",
      "timezone": "America/Chicago"
    }
  ],
  "campaignId": "3f2a9c1e-5b7d-4e8a-9c21-0a1b2c3d4e5f"
}
```

**Response**

```json
{
  "processed": [
    {
      "PartitionKey": "string",
      "RowKey": "string",
      "Timestamp": "2024-01-15T09:30:00Z",
      "FirstName": "string",
      "LastName": "string",
      "Timezone": "string",
      "TimezoneIANA": "string",
      "TimezoneFriendly": "string"
    }
  ],
  "invalid": [
    {
      "firstName": "string",
      "lastName": "string",
      "phoneNumber": "string",
      "timezone": "string",
      "errors": [
        "string"
      ]
    }
  ]
}
```

**SDK Code**

```python Contacts_createManualContact_example
import requests

url = "https://api.youratlas.com/v1/api/contactlist/contactlistmanual"

payload = {
    "contacts": [
        {
            "firstName": "Jane",
            "lastName": "Doe",
            "phoneNumber": "+15555550123",
            "timezone": "America/Chicago"
        }
    ],
    "campaignId": "3f2a9c1e-5b7d-4e8a-9c21-0a1b2c3d4e5f"
}
headers = {
    "api-key": "<apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Contacts_createManualContact_example
const url = 'https://api.youratlas.com/v1/api/contactlist/contactlistmanual';
const options = {
  method: 'POST',
  headers: {'api-key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"contacts":[{"firstName":"Jane","lastName":"Doe","phoneNumber":"+15555550123","timezone":"America/Chicago"}],"campaignId":"3f2a9c1e-5b7d-4e8a-9c21-0a1b2c3d4e5f"}'
};

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

```go Contacts_createManualContact_example
package main

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

func main() {

	url := "https://api.youratlas.com/v1/api/contactlist/contactlistmanual"

	payload := strings.NewReader("{\n  \"contacts\": [\n    {\n      \"firstName\": \"Jane\",\n      \"lastName\": \"Doe\",\n      \"phoneNumber\": \"+15555550123\",\n      \"timezone\": \"America/Chicago\"\n    }\n  ],\n  \"campaignId\": \"3f2a9c1e-5b7d-4e8a-9c21-0a1b2c3d4e5f\"\n}")

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

	req.Header.Add("api-key", "<apiKey>")
	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 Contacts_createManualContact_example
require 'uri'
require 'net/http'

url = URI("https://api.youratlas.com/v1/api/contactlist/contactlistmanual")

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

request = Net::HTTP::Post.new(url)
request["api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"contacts\": [\n    {\n      \"firstName\": \"Jane\",\n      \"lastName\": \"Doe\",\n      \"phoneNumber\": \"+15555550123\",\n      \"timezone\": \"America/Chicago\"\n    }\n  ],\n  \"campaignId\": \"3f2a9c1e-5b7d-4e8a-9c21-0a1b2c3d4e5f\"\n}"

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

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

HttpResponse<String> response = Unirest.post("https://api.youratlas.com/v1/api/contactlist/contactlistmanual")
  .header("api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"contacts\": [\n    {\n      \"firstName\": \"Jane\",\n      \"lastName\": \"Doe\",\n      \"phoneNumber\": \"+15555550123\",\n      \"timezone\": \"America/Chicago\"\n    }\n  ],\n  \"campaignId\": \"3f2a9c1e-5b7d-4e8a-9c21-0a1b2c3d4e5f\"\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.youratlas.com/v1/api/contactlist/contactlistmanual', [
  'body' => '{
  "contacts": [
    {
      "firstName": "Jane",
      "lastName": "Doe",
      "phoneNumber": "+15555550123",
      "timezone": "America/Chicago"
    }
  ],
  "campaignId": "3f2a9c1e-5b7d-4e8a-9c21-0a1b2c3d4e5f"
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'api-key' => '<apiKey>',
  ],
]);

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

```csharp Contacts_createManualContact_example
using RestSharp;

var client = new RestClient("https://api.youratlas.com/v1/api/contactlist/contactlistmanual");
var request = new RestRequest(Method.POST);
request.AddHeader("api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"contacts\": [\n    {\n      \"firstName\": \"Jane\",\n      \"lastName\": \"Doe\",\n      \"phoneNumber\": \"+15555550123\",\n      \"timezone\": \"America/Chicago\"\n    }\n  ],\n  \"campaignId\": \"3f2a9c1e-5b7d-4e8a-9c21-0a1b2c3d4e5f\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Contacts_createManualContact_example
import Foundation

let headers = [
  "api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "contacts": [
    [
      "firstName": "Jane",
      "lastName": "Doe",
      "phoneNumber": "+15555550123",
      "timezone": "America/Chicago"
    ]
  ],
  "campaignId": "3f2a9c1e-5b7d-4e8a-9c21-0a1b2c3d4e5f"
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.youratlas.com/v1/api/contactlist/contactlistmanual")! 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()
```