Skip to main content
POST
Create Custom Extractor

Authorizations

api_key
string
header
required

Body

application/json

Custom extractor definition

name
string
required
Required string length: 1 - 255
prompt
string
required
Required string length: 1 - 20000
eventTypes
enum<string>[]
required

Event types this extractor runs on

Minimum array length: 1
Available options:
EMAIL_SENT,
EMAIL_REPLY_RECEIVED,
CALL_TRANSCRIPT,
DEAL_WON,
DEAL_LOST,
OPPORTUNITY_CREATED,
MEETING_BOOKED,
RESOURCE_INDEXED,
RESOURCE_REINDEXED,
PROJECT_UPDATE,
TASK_COMPLETED,
ENTITY_CREATED,
ENTITY_UPDATED,
SOCIAL_MESSAGE_SENT,
SOCIAL_MESSAGE_RECEIVED,
SOCIAL_CONNECTION_SENT,
SOCIAL_CONNECTION_ACCEPTED,
AD_SET_PUBLISHED,
AD_PERFORMANCE_SNAPSHOT,
BULK_IMPORT_SUMMARY,
PROCESSING_NOT_APPLICABLE,
PROVIDER_EVENT_TYPE_UNKNOWN,
UNKNOWN
modelTier
enum<string>
required
Available options:
NOTE,
PULSE,
ECHO,
HARMONY,
CHORUS,
SYMPHONY
description
string | null
Maximum string length: 2000
authoringInput
string | null

The plain-language ask the AI authoring assist drafted the prompt from, kept for provenance. Omit (or null) when the prompt was hand-written. Changing it alone does not bump promptVersion.

Maximum string length: 4000
eventFilters
object | null

Optional additional event filters (event-log filter shape). Library-entity filters hold the extractor until entity matching has run, then gate it there as well as in backfills.

outputMode
enum<string>
default:freeform

Output shape: freeform snippets, structured fields, or a per-event verdict (boolean / number / single or multi choice)

Available options:
freeform,
boolean,
number,
enum_single,
enum_multi,
object
classes
object[] | null

Choice-mode classes (enum_single / enum_multi); >= 2 required

Maximum array length: 25
numberConfig
object | null

NUMBER-mode unit and optional min/max bounds

jsonSchema
object | null

OBJECT-mode JSON Schema for the structured value

resultCardinality
enum<string>
default:single

OBJECT mode only: one record for the whole event, or one record per matching occurrence

Available options:
single,
repeated
perspective
enum<string>
default:EXTERNAL

Whose contributions to mine: INTERNAL (our team), EXTERNAL (prospect), or ANY. Defaults to EXTERNAL — nearly all GTM intelligence is about what the buyer said, and an unstated preference is a preference for the buyer's voice.

Available options:
INTERNAL,
EXTERNAL,
ANY
fieldTargets
object[]

Optional (entity, field) refinement targets — findings are pinned to these entities as evidence for the named field

status
enum<string>
default:ACTIVE

Initial lifecycle status. ACTIVE (default) extracts from new matching events as they arrive; DRAFT holds the extractor for review until explicitly activated.

Available options:
DRAFT,
ACTIVE

Response

The created extractor with its LLM-proposed anchors

_metadata
object
required
data
object | null