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

# Create Customer

POST https://api.trykeet.com/v1/dispatch-me/customers
Content-Type: application/json

Reference: https://docs.trykeet.com/api-reference/api-reference/integrations/dispatch-me/create-customer

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Headers

- `X-Account-Token` (string, required) — The account token that is associated with the end user linked to this account

### Body (application/json)

This endpoint expects an object.

- `customer` (DispatchMeCustomer, required)

## Response

### 200

- `customer` (any, required)
- `status` (enum, required)
  - Allowed values: `ok`, `error`

## Errors

### 401 Un Authorized Error

- `error` (string, required)

### 500 Internal Server Error

- `error` (string, required)

### 404 Not Found Error

- `error` (string, required)

### 400 Bad Request Error

- `error` (string, required)

### 500 Not Implemented Error

- `error` (string, required)

## Types

### DispatchMeCustomer

- `firstName` (string, required)
- `lastName` (string, required)
- `organizationId` (string, required)
- `companyName` (string, required)
- `billingAddress` (DispatchMeAddress, required)
- `homeAddress` (DispatchMeAddress, required)
- `email` (string, required)
- `notes` (string, required)
- `phoneNumbers` (list of DispatchMePhoneNumber, required)
- `labels` (list of string, required)

### DispatchMeAddress

- `street1` (string, required)
- `street2` (string, required)
- `city` (string, required)
- `state` (string, required)
- `postalCode` (string, required)
- `district` (string, required)
- `county` (string, required)
- `country` (string, required)
- `formattedAddress` (string, required)
- `timezone` (string, required)
- `latitude` (double, required)
- `longitude` (double, required)

### DispatchMePhoneNumber

- `primary` (boolean, required)
- `number` (string, required)

## Examples

**Request**

```json
{
  "customer": {
    "firstName": "firstName",
    "lastName": "lastName",
    "organizationId": "organizationId",
    "companyName": "companyName",
    "billingAddress": {
      "street1": "street1",
      "street2": "street2",
      "city": "city",
      "state": "state",
      "postalCode": "postalCode",
      "district": "district",
      "county": "county",
      "country": "country",
      "formattedAddress": "formattedAddress",
      "timezone": "timezone",
      "latitude": 1.1,
      "longitude": 1.1
    },
    "homeAddress": {
      "street1": "street1",
      "street2": "street2",
      "city": "city",
      "state": "state",
      "postalCode": "postalCode",
      "district": "district",
      "county": "county",
      "country": "country",
      "formattedAddress": "formattedAddress",
      "timezone": "timezone",
      "latitude": 1.1,
      "longitude": 1.1
    },
    "email": "email",
    "notes": "notes",
    "phoneNumbers": [
      {
        "primary": true,
        "number": "number"
      },
      {
        "primary": true,
        "number": "number"
      }
    ],
    "labels": [
      "labels",
      "labels"
    ]
  }
}
```

**Response**

```json
{
  "customer": {
    "key": "value"
  },
  "status": "ok"
}
```

**SDK Code**

```typescript
import { KeetClient } from "@keet-tech/keet-node-client";

const client = new KeetClient({ token: "YOUR_TOKEN", accountToken: "YOUR_ACCOUNT_TOKEN" });
await client.integrations.dispatchMe.createCustomer({
    customer: {
        firstName: "string",
        lastName: "string",
        organizationId: "string",
        companyName: "string",
        billingAddress: {
            street1: "string",
            street2: "string",
            city: "string",
            state: "string",
            postalCode: "string",
            district: "string",
            county: "string",
            country: "string",
            formattedAddress: "string",
            timezone: "string",
            latitude: 1.1,
            longitude: 1.1
        },
        homeAddress: {
            street1: "string",
            street2: "string",
            city: "string",
            state: "string",
            postalCode: "string",
            district: "string",
            county: "string",
            country: "string",
            formattedAddress: "string",
            timezone: "string",
            latitude: 1.1,
            longitude: 1.1
        },
        email: "string",
        notes: "string",
        phoneNumbers: [{
                primary: true,
                number: "string"
            }],
        labels: ["string"]
    }
});

```

```python
import requests

url = "https://api.trykeet.com/v1/dispatch-me/customers"

payload = { "customer": {
        "firstName": "firstName",
        "lastName": "lastName",
        "organizationId": "organizationId",
        "companyName": "companyName",
        "billingAddress": {
            "street1": "street1",
            "street2": "street2",
            "city": "city",
            "state": "state",
            "postalCode": "postalCode",
            "district": "district",
            "county": "county",
            "country": "country",
            "formattedAddress": "formattedAddress",
            "timezone": "timezone",
            "latitude": 1.1,
            "longitude": 1.1
        },
        "homeAddress": {
            "street1": "street1",
            "street2": "street2",
            "city": "city",
            "state": "state",
            "postalCode": "postalCode",
            "district": "district",
            "county": "county",
            "country": "country",
            "formattedAddress": "formattedAddress",
            "timezone": "timezone",
            "latitude": 1.1,
            "longitude": 1.1
        },
        "email": "email",
        "notes": "notes",
        "phoneNumbers": [
            {
                "primary": True,
                "number": "number"
            },
            {
                "primary": True,
                "number": "number"
            }
        ],
        "labels": ["labels", "labels"]
    } }
headers = {
    "X-Account-Token": "X-Account-Token",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```go
package main

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

func main() {

	url := "https://api.trykeet.com/v1/dispatch-me/customers"

	payload := strings.NewReader("{\n  \"customer\": {\n    \"firstName\": \"firstName\",\n    \"lastName\": \"lastName\",\n    \"organizationId\": \"organizationId\",\n    \"companyName\": \"companyName\",\n    \"billingAddress\": {\n      \"street1\": \"street1\",\n      \"street2\": \"street2\",\n      \"city\": \"city\",\n      \"state\": \"state\",\n      \"postalCode\": \"postalCode\",\n      \"district\": \"district\",\n      \"county\": \"county\",\n      \"country\": \"country\",\n      \"formattedAddress\": \"formattedAddress\",\n      \"timezone\": \"timezone\",\n      \"latitude\": 1.1,\n      \"longitude\": 1.1\n    },\n    \"homeAddress\": {\n      \"street1\": \"street1\",\n      \"street2\": \"street2\",\n      \"city\": \"city\",\n      \"state\": \"state\",\n      \"postalCode\": \"postalCode\",\n      \"district\": \"district\",\n      \"county\": \"county\",\n      \"country\": \"country\",\n      \"formattedAddress\": \"formattedAddress\",\n      \"timezone\": \"timezone\",\n      \"latitude\": 1.1,\n      \"longitude\": 1.1\n    },\n    \"email\": \"email\",\n    \"notes\": \"notes\",\n    \"phoneNumbers\": [\n      {\n        \"primary\": true,\n        \"number\": \"number\"\n      },\n      {\n        \"primary\": true,\n        \"number\": \"number\"\n      }\n    ],\n    \"labels\": [\n      \"labels\",\n      \"labels\"\n    ]\n  }\n}")

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

	req.Header.Add("X-Account-Token", "X-Account-Token")
	req.Header.Add("Authorization", "Bearer <token>")
	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
require 'uri'
require 'net/http'

url = URI("https://api.trykeet.com/v1/dispatch-me/customers")

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

request = Net::HTTP::Post.new(url)
request["X-Account-Token"] = 'X-Account-Token'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"customer\": {\n    \"firstName\": \"firstName\",\n    \"lastName\": \"lastName\",\n    \"organizationId\": \"organizationId\",\n    \"companyName\": \"companyName\",\n    \"billingAddress\": {\n      \"street1\": \"street1\",\n      \"street2\": \"street2\",\n      \"city\": \"city\",\n      \"state\": \"state\",\n      \"postalCode\": \"postalCode\",\n      \"district\": \"district\",\n      \"county\": \"county\",\n      \"country\": \"country\",\n      \"formattedAddress\": \"formattedAddress\",\n      \"timezone\": \"timezone\",\n      \"latitude\": 1.1,\n      \"longitude\": 1.1\n    },\n    \"homeAddress\": {\n      \"street1\": \"street1\",\n      \"street2\": \"street2\",\n      \"city\": \"city\",\n      \"state\": \"state\",\n      \"postalCode\": \"postalCode\",\n      \"district\": \"district\",\n      \"county\": \"county\",\n      \"country\": \"country\",\n      \"formattedAddress\": \"formattedAddress\",\n      \"timezone\": \"timezone\",\n      \"latitude\": 1.1,\n      \"longitude\": 1.1\n    },\n    \"email\": \"email\",\n    \"notes\": \"notes\",\n    \"phoneNumbers\": [\n      {\n        \"primary\": true,\n        \"number\": \"number\"\n      },\n      {\n        \"primary\": true,\n        \"number\": \"number\"\n      }\n    ],\n    \"labels\": [\n      \"labels\",\n      \"labels\"\n    ]\n  }\n}"

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

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

HttpResponse<String> response = Unirest.post("https://api.trykeet.com/v1/dispatch-me/customers")
  .header("X-Account-Token", "X-Account-Token")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"customer\": {\n    \"firstName\": \"firstName\",\n    \"lastName\": \"lastName\",\n    \"organizationId\": \"organizationId\",\n    \"companyName\": \"companyName\",\n    \"billingAddress\": {\n      \"street1\": \"street1\",\n      \"street2\": \"street2\",\n      \"city\": \"city\",\n      \"state\": \"state\",\n      \"postalCode\": \"postalCode\",\n      \"district\": \"district\",\n      \"county\": \"county\",\n      \"country\": \"country\",\n      \"formattedAddress\": \"formattedAddress\",\n      \"timezone\": \"timezone\",\n      \"latitude\": 1.1,\n      \"longitude\": 1.1\n    },\n    \"homeAddress\": {\n      \"street1\": \"street1\",\n      \"street2\": \"street2\",\n      \"city\": \"city\",\n      \"state\": \"state\",\n      \"postalCode\": \"postalCode\",\n      \"district\": \"district\",\n      \"county\": \"county\",\n      \"country\": \"country\",\n      \"formattedAddress\": \"formattedAddress\",\n      \"timezone\": \"timezone\",\n      \"latitude\": 1.1,\n      \"longitude\": 1.1\n    },\n    \"email\": \"email\",\n    \"notes\": \"notes\",\n    \"phoneNumbers\": [\n      {\n        \"primary\": true,\n        \"number\": \"number\"\n      },\n      {\n        \"primary\": true,\n        \"number\": \"number\"\n      }\n    ],\n    \"labels\": [\n      \"labels\",\n      \"labels\"\n    ]\n  }\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.trykeet.com/v1/dispatch-me/customers', [
  'body' => '{
  "customer": {
    "firstName": "firstName",
    "lastName": "lastName",
    "organizationId": "organizationId",
    "companyName": "companyName",
    "billingAddress": {
      "street1": "street1",
      "street2": "street2",
      "city": "city",
      "state": "state",
      "postalCode": "postalCode",
      "district": "district",
      "county": "county",
      "country": "country",
      "formattedAddress": "formattedAddress",
      "timezone": "timezone",
      "latitude": 1.1,
      "longitude": 1.1
    },
    "homeAddress": {
      "street1": "street1",
      "street2": "street2",
      "city": "city",
      "state": "state",
      "postalCode": "postalCode",
      "district": "district",
      "county": "county",
      "country": "country",
      "formattedAddress": "formattedAddress",
      "timezone": "timezone",
      "latitude": 1.1,
      "longitude": 1.1
    },
    "email": "email",
    "notes": "notes",
    "phoneNumbers": [
      {
        "primary": true,
        "number": "number"
      },
      {
        "primary": true,
        "number": "number"
      }
    ],
    "labels": [
      "labels",
      "labels"
    ]
  }
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    'X-Account-Token' => 'X-Account-Token',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.trykeet.com/v1/dispatch-me/customers");
var request = new RestRequest(Method.POST);
request.AddHeader("X-Account-Token", "X-Account-Token");
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"customer\": {\n    \"firstName\": \"firstName\",\n    \"lastName\": \"lastName\",\n    \"organizationId\": \"organizationId\",\n    \"companyName\": \"companyName\",\n    \"billingAddress\": {\n      \"street1\": \"street1\",\n      \"street2\": \"street2\",\n      \"city\": \"city\",\n      \"state\": \"state\",\n      \"postalCode\": \"postalCode\",\n      \"district\": \"district\",\n      \"county\": \"county\",\n      \"country\": \"country\",\n      \"formattedAddress\": \"formattedAddress\",\n      \"timezone\": \"timezone\",\n      \"latitude\": 1.1,\n      \"longitude\": 1.1\n    },\n    \"homeAddress\": {\n      \"street1\": \"street1\",\n      \"street2\": \"street2\",\n      \"city\": \"city\",\n      \"state\": \"state\",\n      \"postalCode\": \"postalCode\",\n      \"district\": \"district\",\n      \"county\": \"county\",\n      \"country\": \"country\",\n      \"formattedAddress\": \"formattedAddress\",\n      \"timezone\": \"timezone\",\n      \"latitude\": 1.1,\n      \"longitude\": 1.1\n    },\n    \"email\": \"email\",\n    \"notes\": \"notes\",\n    \"phoneNumbers\": [\n      {\n        \"primary\": true,\n        \"number\": \"number\"\n      },\n      {\n        \"primary\": true,\n        \"number\": \"number\"\n      }\n    ],\n    \"labels\": [\n      \"labels\",\n      \"labels\"\n    ]\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "X-Account-Token": "X-Account-Token",
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = ["customer": [
    "firstName": "firstName",
    "lastName": "lastName",
    "organizationId": "organizationId",
    "companyName": "companyName",
    "billingAddress": [
      "street1": "street1",
      "street2": "street2",
      "city": "city",
      "state": "state",
      "postalCode": "postalCode",
      "district": "district",
      "county": "county",
      "country": "country",
      "formattedAddress": "formattedAddress",
      "timezone": "timezone",
      "latitude": 1.1,
      "longitude": 1.1
    ],
    "homeAddress": [
      "street1": "street1",
      "street2": "street2",
      "city": "city",
      "state": "state",
      "postalCode": "postalCode",
      "district": "district",
      "county": "county",
      "country": "country",
      "formattedAddress": "formattedAddress",
      "timezone": "timezone",
      "latitude": 1.1,
      "longitude": 1.1
    ],
    "email": "email",
    "notes": "notes",
    "phoneNumbers": [
      [
        "primary": true,
        "number": "number"
      ],
      [
        "primary": true,
        "number": "number"
      ]
    ],
    "labels": ["labels", "labels"]
  ]] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.trykeet.com/v1/dispatch-me/customers")! 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()
```