Getting started
Guides
Endpoints
- Accounts
- Broadcasts
- Custom Fields
- Forms
- Subscribers
- Tags
- Email Templates
- Purchases
- Segments
- Sequences
- Webhooks
Custom Fields
Bulk create custom fields
See “Bulk & async processing” for more information.
POST
/
v4
/
bulk
/
custom_fields
Copy
Ask AI
curl --request POST \
--url https://api.kit.com/v4/bulk/custom_fields \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"custom_fields": [
{
"label": "Test Custom Field 0"
},
{
"label": "Test Custom Field 1"
},
{
"label": "Test Custom Field 2"
},
{
"label": "Test Custom Field 3"
}
],
"callback_url": null
}'
Copy
Ask AI
{
"custom_fields": [
{
"id": 1398,
"label": "Existing Custom Field",
"key": "existing_custom_field",
"name": "ck_field_1398_existing_custom_field",
"created_at": "2023-02-17T11:43:55Z"
},
{
"id": 1400,
"label": "Interests",
"key": "interests",
"name": "ck_field_1400_interests",
"created_at": "2023-02-17T11:43:55Z"
},
{
"id": 1399,
"label": "Last name",
"key": "last_name",
"name": "ck_field_1399_last_name",
"created_at": "2023-02-17T11:43:55Z"
}
],
"failures": []
}
Authorizations
Authenticate API requests via an OAuth token
Body
application/json
Response
200
application/json
Creates the custom_fields synchronously when 100 or less custom fields are requested
The response is of type object
.
Copy
Ask AI
curl --request POST \
--url https://api.kit.com/v4/bulk/custom_fields \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"custom_fields": [
{
"label": "Test Custom Field 0"
},
{
"label": "Test Custom Field 1"
},
{
"label": "Test Custom Field 2"
},
{
"label": "Test Custom Field 3"
}
],
"callback_url": null
}'
Copy
Ask AI
{
"custom_fields": [
{
"id": 1398,
"label": "Existing Custom Field",
"key": "existing_custom_field",
"name": "ck_field_1398_existing_custom_field",
"created_at": "2023-02-17T11:43:55Z"
},
{
"id": 1400,
"label": "Interests",
"key": "interests",
"name": "ck_field_1400_interests",
"created_at": "2023-02-17T11:43:55Z"
},
{
"id": 1399,
"label": "Last name",
"key": "last_name",
"name": "ck_field_1399_last_name",
"created_at": "2023-02-17T11:43:55Z"
}
],
"failures": []
}
Assistant
Responses are generated using AI and may contain mistakes.