curl --request POST \
--url https://app.octavehq.com/api/v2/segment/generate \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '
{
"segments": [
{
"name": "Enterprise Technology Companies",
"sources": [
{
"type": "TEXT",
"value": "Enterprise companies with 500+ employees in technology sector"
}
]
},
{
"sources": [
{
"type": "URL",
"value": "https://example.com/market-research"
}
]
}
],
"primaryOfferingOId": "o_123456",
"linkingStrategy": {
"mode": "ALL"
},
"brandVoiceOId": "bv_123456"
}
'{
"_metadata": {
"requestId": "requestId",
"timestamp": "2021-01-01T00:00:00.000Z",
"usage": 0,
"message": "message"
},
"data": [
{
"oId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"name": "<string>",
"internalName": "<string>",
"description": "<string>",
"unrecognized": true,
"rejected": true,
"deletedAt": "<string>",
"archivedAt": "<string>",
"active": true,
"data": {
"fitExplanation": "<string>",
"firmographics": {},
"keyPriorities": [
"<string>"
],
"keyConsiderations": [
"<string>"
],
"uniqueApproach": [
"<string>"
],
"customFields": [
{
"title": "<string>",
"value": [
"<string>"
]
}
]
},
"qualifyingQuestions": [
{
"question": "<string>",
"rationale": "<string>",
"fitType": "GOOD",
"weight": "MEDIUM",
"archivedAt": "<string>"
}
],
"user": {
"oId": "<string>",
"firstName": "John",
"lastName": "Doe"
},
"workspace": {
"oId": "<string>"
}
}
]
}Generate market segments from source materials using AI. Each input array generates one segment. Supports text, URLs, and generative names as sources.
curl --request POST \
--url https://app.octavehq.com/api/v2/segment/generate \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '
{
"segments": [
{
"name": "Enterprise Technology Companies",
"sources": [
{
"type": "TEXT",
"value": "Enterprise companies with 500+ employees in technology sector"
}
]
},
{
"sources": [
{
"type": "URL",
"value": "https://example.com/market-research"
}
]
}
],
"primaryOfferingOId": "o_123456",
"linkingStrategy": {
"mode": "ALL"
},
"brandVoiceOId": "bv_123456"
}
'{
"_metadata": {
"requestId": "requestId",
"timestamp": "2021-01-01T00:00:00.000Z",
"usage": 0,
"message": "message"
},
"data": [
{
"oId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"name": "<string>",
"internalName": "<string>",
"description": "<string>",
"unrecognized": true,
"rejected": true,
"deletedAt": "<string>",
"archivedAt": "<string>",
"active": true,
"data": {
"fitExplanation": "<string>",
"firmographics": {},
"keyPriorities": [
"<string>"
],
"keyConsiderations": [
"<string>"
],
"uniqueApproach": [
"<string>"
],
"customFields": [
{
"title": "<string>",
"value": [
"<string>"
]
}
]
},
"qualifyingQuestions": [
{
"question": "<string>",
"rationale": "<string>",
"fitType": "GOOD",
"weight": "MEDIUM",
"archivedAt": "<string>"
}
],
"user": {
"oId": "<string>",
"firstName": "John",
"lastName": "Doe"
},
"workspace": {
"oId": "<string>"
}
}
]
}Segment generation input with source materials
Array of segment generation requests - each object generates one market segment
1Show child attributes
Source materials to generate the market segment from
Optional name for the segment - if provided, will be used as the entity name
"Enterprise Technology Companies"
[
{
"name": "Enterprise Technology Companies",
"sources": [
{
"type": "TEXT",
"value": "Enterprise companies with 500+ employees in technology sector"
}
]
},
{
"sources": [
{
"type": "URL",
"value": "https://example.com/market-research"
}
]
}
]Primary Offering to use as context when generating segments. If not provided, the primary company attached to the Workspace will be used.
"o_123456"
Brand voice oId to apply to generated segments
"bv_123456"
Segments generated successfully
Show child attributes
Show child attributes
Show child attributes
The question to ask to qualify the entity
The rationale for the question as to why it helps qualify
The fit type of the question
GOOD, BAD "GOOD"
The weight of the question
LOW, MEDIUM, HIGH, INSTANT_QUALIFIER, INSTANT_DISQUALIFIER "MEDIUM"
The date and time the question was archived