---
title: "Create a custom contact field"
method: POST
path: "/v1/projectId/{projectId}/contacts/fields"
tags: ["Contacts"]
---

# Create a custom contact field

`POST /v1/projectId/{projectId}/contacts/fields`

## Request

- Base URL: `https://api.bluefox.email`
- URL: `https://api.bluefox.email/v1/projectId/{projectId}/contacts/fields`
- Auth: HTTP bearer

## Path parameters

- `projectId` string, required

## Request body

- ContactField
  - `name` string, required
  - `type` 'string' | 'number' | 'boolean' | 'date', required

## Response `201`

Created

- object
  - `status` integer
  - `result` ContactField
    - `name` string, required
    - `type` 'string' | 'number' | 'boolean' | 'date', required

## Other responses

- `400`: Invalid request body or query - every violation found (missing/invalid/unexpected fields) is reported in one response, semicolon-separated, not just the first one hit.
- `403`: Missing or invalid API key

---

[API](https://skmtc.dev/bluefox/apis/bluefox-email-public-api.md) · [All operations](https://skmtc.dev/bluefox/apis/bluefox-email-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/bluefox/apis/bluefox-email-public-api/revisions/fa1a0a835c7f?raw)
