> Calendly developer docs. For page Markdown, append .md to any URL.
> Index: https://developer.calendly.com/llms.txt
> API catalog: https://developer.calendly.com/.well-known/api-catalog
> OpenAPI: https://developer.calendly.com/openapi/calendly-api.yaml
> OAuth authorization server: https://calendly.com/.well-known/oauth-authorization-server
> MCP protected resource: https://mcp.calendly.com/.well-known/oauth-protected-resource
> Scheduling MCP endpoint: https://mcp.calendly.com
> Docs search MCP: https://developer.calendly.com/_mcp/server

# Create Contact Custom Field Definition

POST https://api.calendly.com/contacts/custom_field_definitions
Content-Type: application/json

Creates a contact custom field definition. The caller must have permission to create custom fields.

Send `Content-Type: application/json`. Supply only `label`, `field_type`, and the fields required for that type. Do not supply IDs, URIs, timestamps, `source`, `question_uuid`, or `custom_field`. Option objects accept only `label`. Unknown fields are rejected.

Leading and trailing whitespace is removed from the field label. The result must contain 1 to 255 characters. Currency codes are not case-sensitive and are converted to uppercase. Options keep their request order. Duplicate nonblank option labels are allowed. The server assigns option UUIDs. Each response option includes `color`, which is `null` when no color is set.

Invalid fields return 400. A field label that already exists returns 409. Field-name checks ignore case. If `City` exists, creating `city` returns 409. The default rate limit applies.

Example validation error:

```json
{"title":"Invalid Argument","message":"The supplied parameters are invalid.","details":[{"parameter":"options","message":"Supply 1 to 10 label-only options for a single_select field."}]}
```

Example duplicate-label error:

```json
{"title":"Already Exists","message":"The resource already exists","details":[{"parameter":"label","message":"A custom field with this label already exists."}]}
```

**Note:** Requires CRM on your plan.

> `contacts:write`

Reference: https://developer.calendly.com/api-docs/calendly-api/contacts/create-contact-custom-field-definition

## Authentication

- `Authorization` header (bearer token, required) — OAuth 2.0
- `Authorization` header (bearer token, required) — Personal Access Token

## Request

### Body (application/json)

This endpoint expects a CreateContactCustomFieldDefinitionRequest.

- `label` (string, required) — Display name. Leading and trailing whitespace is removed. The result must contain 1 to 255 characters.
- `field_type` (enum, required) — Field type. Supported values: - `text`: A text value. - `number`: A numeric value. - `currency`: A monetary amount in the specified currency. Send `currency` with this value. - `tags`: A list of text labels. - `date`: A calendar date. - `single_select`: One value from the field's configured options. Send `options` with this value. System-generated `invitee_question` fields cannot be created.
  - Allowed values: `text`, `number`, `currency`, `tags`, `date`, `single_select`
- `currency` (string, optional) — Required only for `currency` fields. Supported codes are `USD`, `EUR`, `GBP`, `JPY`, `CHF`, `CAD`, `AUD`, `CNY`, `SGD`, `INR`, and `KRW`. Codes are not case-sensitive. The response uses uppercase. Other field types reject this field.
- `options` (list of CreateContactCustomFieldDefinitionRequestOptionsItems, optional) — Required only for `single_select` fields. Supply 1 to 10 label-only objects in display order. Duplicate labels are allowed. The server assigns option UUIDs. Other field types reject this field.

## Response

### 201

Created

- `resource` (ContactCustomFieldDefinition, required) — A custom field definition describes the schema for a field that can be applied to Contacts.

## Errors

### 400 Bad Request Error

Request is not valid

- `title` (enum, required)
  - Allowed values: `Internal Server Error`
- `message` (enum, required)
  - Allowed values: `The server encountered an unexpected condition that prevented it from fulfilling the request.`
- `details` (list of ErrorResponseDetailsItem, optional)

### 401 Unauthorized Error

Cannot authenticate caller

- `title` (enum, required)
  - Allowed values: `Internal Server Error`
- `message` (enum, required)
  - Allowed values: `The server encountered an unexpected condition that prevented it from fulfilling the request.`
- `details` (list of ErrorResponseDetailsItem, optional)

### 403 Forbidden Error

Permission Denied or insufficient scope

- `Create-contact-custom-field-definitionRequestForbiddenError`
  - ContactsError: ContactsError
  - InsufficientScopeError: InsufficientScopeError

### 409 Conflict Error

Attempt to create a resource that already exists

- `title` (enum, required)
  - Allowed values: `Internal Server Error`
- `message` (enum, required)
  - Allowed values: `The server encountered an unexpected condition that prevented it from fulfilling the request.`
- `details` (list of ErrorResponseDetailsItem, optional)

### 429 Too Many Requests Error

Too Many Requests

- `title` (enum, required)
  - Allowed values: `Internal Server Error`
- `message` (enum, required)
  - Allowed values: `The server encountered an unexpected condition that prevented it from fulfilling the request.`
- `details` (list of ErrorResponseDetailsItem, optional)

### 500 Internal Server Error

An error has occurred on the server

- `title` (enum, required)
  - Allowed values: `Internal Server Error`
- `message` (enum, required)
  - Allowed values: `The server encountered an unexpected condition that prevented it from fulfilling the request.`
- `details` (list of ErrorResponseDetailsItem, optional)

## Types

### CreateContactCustomFieldDefinitionRequestOptionsItems

- `label` (string, required) — Option label. The value must contain a non-whitespace character. Duplicate labels are allowed.

### ContactCustomFieldDefinition

A custom field definition describes the schema for a field that can be applied to Contacts.

- `uri` (string, required) — Canonical URI of the custom field definition.
- `label` (string, required) — User-facing display name.
- `field_type` (enum, required) — Calendly custom field kind, which determines both input behavior and the expected value type.
  - Allowed values: `text`, `number`, `currency`, `tags`, `date`, `single_select`, `invitee_question`
- `created_at` (string, required) — Creation timestamp.
- `updated_at` (string, required) — Last update timestamp.
- `options` (list of ContactCustomFieldOption, optional) — Allowed options for `single_select` fields. Returned in configured display order.
- `currency` (string, optional) — ISO currency code for currency fields, if applicable.
- `source` (ContactCustomFieldSource, optional) — Source metadata for system-generated fields. Present when `field_type` is `invitee_question`.

### ErrorResponseDetailsItem

- `message` (string, required)
- `parameter` (string, optional)
- `code` (string, optional)

### ContactsError

Permission Denied

- `title` (enum, required)
  - Allowed values: `Permission Denied`
- `message` (enum, required)
  - Allowed values: `Please upgrade to a paid Calendly account.`, `You do not have permission to access this resource.`, `Contact creation is not available. Required features are not enabled for your account.`

### InsufficientScopeError

Caller does not have required oauth scopes

- `title` (enum, required)
  - Allowed values: `Insufficient scope`
- `message` (enum, required)
  - Allowed values: `This operation requires the scopes listed in the 'required_scopes' array.`
- `required_scopes` (list of string, required)

### ContactCustomFieldOption

- `uuid` (string, required) — Unique identifier for the option. Used in Contact `custom_fields` entries when `field_type` is `single_select`.
- `label` (string, required) — User-facing display label for the option.
- `color` (string, required, nullable) — Display color for the option. `null` when no color is set.
- `is_active` (boolean, required) — Whether the option is active and selectable.

### ContactCustomFieldSource

Source metadata for system-generated fields, such as invitee questions.

- `type` (enum, required)
  - Allowed values: `event_type_invitee_question`
- `event_type_uri` (string, optional)
- `question` (string, optional)

## Examples

### Text

**Request**

```json
{
  "label": "Notes",
  "field_type": "text"
}
```

**Response**

```json
{
  "resource": {
    "uri": "https://api.calendly.com/contacts/custom_field_definitions/CCCCCCCCCCCCCCCC",
    "label": "Notes",
    "field_type": "text",
    "created_at": "2026-10-26T14:00:00Z",
    "updated_at": "2026-10-26T14:00:00Z"
  }
}
```

**SDK Code**

```python Text
import requests

url = "https://api.calendly.com/contacts/custom_field_definitions"

payload = {
    "label": "Notes",
    "field_type": "text"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Text
const url = 'https://api.calendly.com/contacts/custom_field_definitions';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"label":"Notes","field_type":"text"}'
};

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

```go Text
package main

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

func main() {

	url := "https://api.calendly.com/contacts/custom_field_definitions"

	payload := strings.NewReader("{\n  \"label\": \"Notes\",\n  \"field_type\": \"text\"\n}")

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

	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 Text
require 'uri'
require 'net/http'

url = URI("https://api.calendly.com/contacts/custom_field_definitions")

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

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"label\": \"Notes\",\n  \"field_type\": \"text\"\n}"

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

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

HttpResponse<String> response = Unirest.post("https://api.calendly.com/contacts/custom_field_definitions")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"label\": \"Notes\",\n  \"field_type\": \"text\"\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.calendly.com/contacts/custom_field_definitions', [
  'body' => '{
  "label": "Notes",
  "field_type": "text"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp Text
using RestSharp;

var client = new RestClient("https://api.calendly.com/contacts/custom_field_definitions");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"label\": \"Notes\",\n  \"field_type\": \"text\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Text
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "label": "Notes",
  "field_type": "text"
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.calendly.com/contacts/custom_field_definitions")! 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()
```

### Number

**Request**

```json
{
  "label": "Deal size",
  "field_type": "number"
}
```

**Response**

```json
{
  "resource": {
    "uri": "https://api.calendly.com/contacts/custom_field_definitions/CCCCCCCCCCCCCCCC",
    "label": "Deal size",
    "field_type": "number",
    "created_at": "2026-10-26T14:00:00Z",
    "updated_at": "2026-10-26T14:00:00Z"
  }
}
```

**SDK Code**

```python Number
import requests

url = "https://api.calendly.com/contacts/custom_field_definitions"

payload = {
    "label": "Deal size",
    "field_type": "number"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Number
const url = 'https://api.calendly.com/contacts/custom_field_definitions';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"label":"Deal size","field_type":"number"}'
};

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

```go Number
package main

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

func main() {

	url := "https://api.calendly.com/contacts/custom_field_definitions"

	payload := strings.NewReader("{\n  \"label\": \"Deal size\",\n  \"field_type\": \"number\"\n}")

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

	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 Number
require 'uri'
require 'net/http'

url = URI("https://api.calendly.com/contacts/custom_field_definitions")

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

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"label\": \"Deal size\",\n  \"field_type\": \"number\"\n}"

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

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

HttpResponse<String> response = Unirest.post("https://api.calendly.com/contacts/custom_field_definitions")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"label\": \"Deal size\",\n  \"field_type\": \"number\"\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.calendly.com/contacts/custom_field_definitions', [
  'body' => '{
  "label": "Deal size",
  "field_type": "number"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp Number
using RestSharp;

var client = new RestClient("https://api.calendly.com/contacts/custom_field_definitions");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"label\": \"Deal size\",\n  \"field_type\": \"number\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Number
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "label": "Deal size",
  "field_type": "number"
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.calendly.com/contacts/custom_field_definitions")! 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()
```

### Currency

**Request**

```json
{
  "label": "Budget",
  "field_type": "currency",
  "currency": "uSd"
}
```

**Response**

```json
{
  "resource": {
    "uri": "https://api.calendly.com/contacts/custom_field_definitions/CCCCCCCCCCCCCCCC",
    "label": "Budget",
    "field_type": "currency",
    "created_at": "2026-10-26T14:00:00Z",
    "updated_at": "2026-10-26T14:00:00Z",
    "currency": "USD"
  }
}
```

**SDK Code**

```python Currency
import requests

url = "https://api.calendly.com/contacts/custom_field_definitions"

payload = {
    "label": "Budget",
    "field_type": "currency",
    "currency": "uSd"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Currency
const url = 'https://api.calendly.com/contacts/custom_field_definitions';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"label":"Budget","field_type":"currency","currency":"uSd"}'
};

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

```go Currency
package main

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

func main() {

	url := "https://api.calendly.com/contacts/custom_field_definitions"

	payload := strings.NewReader("{\n  \"label\": \"Budget\",\n  \"field_type\": \"currency\",\n  \"currency\": \"uSd\"\n}")

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

	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 Currency
require 'uri'
require 'net/http'

url = URI("https://api.calendly.com/contacts/custom_field_definitions")

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

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"label\": \"Budget\",\n  \"field_type\": \"currency\",\n  \"currency\": \"uSd\"\n}"

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

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

HttpResponse<String> response = Unirest.post("https://api.calendly.com/contacts/custom_field_definitions")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"label\": \"Budget\",\n  \"field_type\": \"currency\",\n  \"currency\": \"uSd\"\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.calendly.com/contacts/custom_field_definitions', [
  'body' => '{
  "label": "Budget",
  "field_type": "currency",
  "currency": "uSd"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp Currency
using RestSharp;

var client = new RestClient("https://api.calendly.com/contacts/custom_field_definitions");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"label\": \"Budget\",\n  \"field_type\": \"currency\",\n  \"currency\": \"uSd\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Currency
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "label": "Budget",
  "field_type": "currency",
  "currency": "uSd"
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.calendly.com/contacts/custom_field_definitions")! 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()
```

### Date

**Request**

```json
{
  "label": "Renewal date",
  "field_type": "date"
}
```

**Response**

```json
{
  "resource": {
    "uri": "https://api.calendly.com/contacts/custom_field_definitions/CCCCCCCCCCCCCCCC",
    "label": "Renewal date",
    "field_type": "date",
    "created_at": "2026-10-26T14:00:00Z",
    "updated_at": "2026-10-26T14:00:00Z"
  }
}
```

**SDK Code**

```python Date
import requests

url = "https://api.calendly.com/contacts/custom_field_definitions"

payload = {
    "label": "Renewal date",
    "field_type": "date"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Date
const url = 'https://api.calendly.com/contacts/custom_field_definitions';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"label":"Renewal date","field_type":"date"}'
};

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

```go Date
package main

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

func main() {

	url := "https://api.calendly.com/contacts/custom_field_definitions"

	payload := strings.NewReader("{\n  \"label\": \"Renewal date\",\n  \"field_type\": \"date\"\n}")

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

	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 Date
require 'uri'
require 'net/http'

url = URI("https://api.calendly.com/contacts/custom_field_definitions")

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

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"label\": \"Renewal date\",\n  \"field_type\": \"date\"\n}"

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

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

HttpResponse<String> response = Unirest.post("https://api.calendly.com/contacts/custom_field_definitions")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"label\": \"Renewal date\",\n  \"field_type\": \"date\"\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.calendly.com/contacts/custom_field_definitions', [
  'body' => '{
  "label": "Renewal date",
  "field_type": "date"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp Date
using RestSharp;

var client = new RestClient("https://api.calendly.com/contacts/custom_field_definitions");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"label\": \"Renewal date\",\n  \"field_type\": \"date\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Date
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "label": "Renewal date",
  "field_type": "date"
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.calendly.com/contacts/custom_field_definitions")! 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()
```

### Single select

**Request**

```json
{
  "label": "Lead source",
  "field_type": "single_select",
  "options": [
    {
      "label": "Website"
    },
    {
      "label": "Referral"
    }
  ]
}
```

**Response**

```json
{
  "resource": {
    "uri": "https://api.calendly.com/contacts/custom_field_definitions/CCCCCCCCCCCCCCCC",
    "label": "Lead source",
    "field_type": "single_select",
    "created_at": "2026-10-26T14:00:00Z",
    "updated_at": "2026-10-26T14:00:00Z",
    "options": [
      {
        "uuid": "DDDDDDDDDDDDDDDD",
        "label": "Website",
        "color": null,
        "is_active": true
      },
      {
        "uuid": "EEEEEEEEEEEEEEEE",
        "label": "Referral",
        "color": null,
        "is_active": true
      }
    ]
  }
}
```

**SDK Code**

```python Single select
import requests

url = "https://api.calendly.com/contacts/custom_field_definitions"

payload = {
    "label": "Lead source",
    "field_type": "single_select",
    "options": [{ "label": "Website" }, { "label": "Referral" }]
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Single select
const url = 'https://api.calendly.com/contacts/custom_field_definitions';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"label":"Lead source","field_type":"single_select","options":[{"label":"Website"},{"label":"Referral"}]}'
};

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

```go Single select
package main

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

func main() {

	url := "https://api.calendly.com/contacts/custom_field_definitions"

	payload := strings.NewReader("{\n  \"label\": \"Lead source\",\n  \"field_type\": \"single_select\",\n  \"options\": [\n    {\n      \"label\": \"Website\"\n    },\n    {\n      \"label\": \"Referral\"\n    }\n  ]\n}")

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

	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 Single select
require 'uri'
require 'net/http'

url = URI("https://api.calendly.com/contacts/custom_field_definitions")

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

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"label\": \"Lead source\",\n  \"field_type\": \"single_select\",\n  \"options\": [\n    {\n      \"label\": \"Website\"\n    },\n    {\n      \"label\": \"Referral\"\n    }\n  ]\n}"

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

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

HttpResponse<String> response = Unirest.post("https://api.calendly.com/contacts/custom_field_definitions")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"label\": \"Lead source\",\n  \"field_type\": \"single_select\",\n  \"options\": [\n    {\n      \"label\": \"Website\"\n    },\n    {\n      \"label\": \"Referral\"\n    }\n  ]\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.calendly.com/contacts/custom_field_definitions', [
  'body' => '{
  "label": "Lead source",
  "field_type": "single_select",
  "options": [
    {
      "label": "Website"
    },
    {
      "label": "Referral"
    }
  ]
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp Single select
using RestSharp;

var client = new RestClient("https://api.calendly.com/contacts/custom_field_definitions");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"label\": \"Lead source\",\n  \"field_type\": \"single_select\",\n  \"options\": [\n    {\n      \"label\": \"Website\"\n    },\n    {\n      \"label\": \"Referral\"\n    }\n  ]\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Single select
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "label": "Lead source",
  "field_type": "single_select",
  "options": [["label": "Website"], ["label": "Referral"]]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.calendly.com/contacts/custom_field_definitions")! 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()
```

### Tags

**Request**

```json
{
  "label": "Segments",
  "field_type": "tags"
}
```

**Response**

```json
{
  "resource": {
    "uri": "https://api.calendly.com/contacts/custom_field_definitions/CCCCCCCCCCCCCCCC",
    "label": "Segments",
    "field_type": "tags",
    "created_at": "2026-10-26T14:00:00Z",
    "updated_at": "2026-10-26T14:00:00Z"
  }
}
```

**SDK Code**

```python Tags
import requests

url = "https://api.calendly.com/contacts/custom_field_definitions"

payload = {
    "label": "Segments",
    "field_type": "tags"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Tags
const url = 'https://api.calendly.com/contacts/custom_field_definitions';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"label":"Segments","field_type":"tags"}'
};

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

```go Tags
package main

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

func main() {

	url := "https://api.calendly.com/contacts/custom_field_definitions"

	payload := strings.NewReader("{\n  \"label\": \"Segments\",\n  \"field_type\": \"tags\"\n}")

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

	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 Tags
require 'uri'
require 'net/http'

url = URI("https://api.calendly.com/contacts/custom_field_definitions")

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

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"label\": \"Segments\",\n  \"field_type\": \"tags\"\n}"

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

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

HttpResponse<String> response = Unirest.post("https://api.calendly.com/contacts/custom_field_definitions")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"label\": \"Segments\",\n  \"field_type\": \"tags\"\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.calendly.com/contacts/custom_field_definitions', [
  'body' => '{
  "label": "Segments",
  "field_type": "tags"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp Tags
using RestSharp;

var client = new RestClient("https://api.calendly.com/contacts/custom_field_definitions");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"label\": \"Segments\",\n  \"field_type\": \"tags\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Tags
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "label": "Segments",
  "field_type": "tags"
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.calendly.com/contacts/custom_field_definitions")! 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()
```