CRM Custom FieldsCreate a custom field

Create a custom field

curl -X POST "https://api.talkturo.com/api/crm/custom-fields" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "John Doe",
  "type": "text",
  "entity_type": "contact",
  "options": [
    "example_string"
  ]
}'
{
  "success": true,
  "field": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "John Doe",
    "type": "text",
    "entity_type": "contact",
    "options": [
      "example_string"
    ]
  }
}
POST
/crm/custom-fields
POST
Base URLstring

Target server for requests. Edit to use your own host.

API Key (cookie: sb-access-token)
sb-access-tokenstring
Required

Authenticated Talkturo web session cookie (Supabase httpOnly session). Browser clients typically send this automatically after sign-in. Related refresh cookies may also be present depending on the client.

Authenticated Talkturo web session cookie (Supabase httpOnly session). Browser clients typically send this automatically after sign-in. Related refresh cookies may also be present depending on the client.
Content-Typestring
Required

The media type of the request body

Options: application/json
typestring
Required
Options: text, number, date, select, boolean
entity_typestring
Required
Options: contact, company, opportunity
optionsarray

Required for select fields

Request Preview
Response

Response will appear here after sending the request

Authentication

path
parameterstring
Required

API Key for authentication. Authenticated Talkturo web session cookie (Supabase httpOnly session). Browser clients typically send this automatically after sign-in. Related refresh cookies may also be present depending on the client.

Body

application/json
typestring
Required
Allowed values:textnumberdateselectboolean
entity_typestring
Required
Allowed values:contactcompanyopportunity
optionsarray

Required for select fields

Responses

successboolean
fieldobject