Skip to main content

Custom Fields

Get Directory Custom Fields

Retrieve all custom fields for a specific directory.
Parameters:
  • directory_id (integer, required): The ID of the directory
Response:

Get Single Custom Field

Retrieve a specific custom field by ID.
Parameters:
  • directory_id (integer, required): The ID of the directory
  • custom_field_id (integer, required): The ID of the custom field

Create Custom Field

Create a new custom field definition in the directory.
Parameters:
  • directory_id (integer, required): The ID of the directory
Request Body:
Available fields:
After creating a field, set its value on a listing by passing the field’s name as a flat key in the listing’s create/update body — e.g. { "name": "My Tool", "price_range": "$$" }. See Listings → Create Listing.

Update Custom Field

Update an existing custom field definition. Only include the fields you want to change.
Request Body:

Delete Custom Field

Delete a custom field definition. This also removes the field’s stored values from all listings.
Response:

Custom Field Types

The API supports various custom field types:
  • text - Simple text input
  • number - Numeric input
  • date - Date picker
  • file_upload - File upload field
  • url - URL input with validation
  • email - Email input with validation
  • rich_editor - Rich text editor
  • markdown - Markdown editor
  • textarea - Multi-line text area
  • checkbox - Boolean toggle
  • rating - Rating input (0-5)
  • select - Dropdown with predefined options
  • list - Repeatable list of values
  • multi_select - Multiple-choice select (stored comma-separated)
  • button - Button/CTA field
  • javascript - Custom JavaScript
  • html - Custom HTML