logo
Custom FieldsCreate Custom Field

Create Custom Field

Create a new custom field

curl -X POST "https://app.nashra.ai/api/v1/fields" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "field_name": "Company Size",
  "data_name": "company_size",
  "type": "number",
  "is_required": false
}'
{
  "data": {
    "uuid": "9a3c2b6e-8f3a-4f7c-b1a4-1f1d5d9e4c22",
    "field_name": "Company",
    "data_name": "company",
    "type": "text",
    "is_required": false
  },
  "meta": {}
}
POST
/fields
POST
Bearer Token
Bearer Tokenstring
Required

API token generated in Settings > API Tokens

API token generated in Settings > API Tokens
Content-Typestring
Required

The media type of the request body

Options: application/json
data_namestring
Required

Lowercase alphanumeric with underscores only

typestring
Required
Options: text, number, date, boolean
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. API token generated in Settings > API Tokens

Body

application/json
data_namestring
Required

Lowercase alphanumeric with underscores only

typestring
Required
Allowed values:textnumberdateboolean

Responses