Skip to main content
POST
/
api
/
v2
/
competitor
/
generate
Generate Competitors
curl --request POST \
  --url https://app.octavehq.com/api/v2/competitor/generate \
  --header 'Content-Type: application/json' \
  --header 'api_key: <api-key>' \
  --data '{
  "primaryOfferingOId": "o_123456",
  "linkingStrategy": {
    "mode": "ALL"
  },
  "competitors": [
    {
      "name": "Salesforce CRM",
      "sources": [
        {
          "type": "TEXT",
          "value": "Direct competitor in the CRM space with enterprise focus and strong sales automation"
        }
      ]
    },
    {
      "sources": [
        {
          "type": "URL",
          "value": "https://example.com/competitor-analysis"
        }
      ]
    }
  ],
  "brandVoiceOId": "bv_123456"
}'
{
  "_metadata": {
    "usage": 0,
    "requestId": "requestId",
    "message": "message",
    "timestamp": "2021-01-01T00:00:00.000Z"
  },
  "data": [
    {
      "oId": "<string>",
      "createdAt": "<string>",
      "updatedAt": "<string>",
      "deletedAt": "<string>",
      "archivedAt": "<string>",
      "name": "<string>",
      "internalName": "<string>",
      "description": "<string>",
      "active": true,
      "data": {
        "businessModel": [
          "<string>"
        ],
        "comparativeStrengths": [
          "<string>"
        ],
        "comparativeWeaknesses": [
          "<string>"
        ],
        "keyDifferentiators": [
          "<string>"
        ],
        "reasonsWeWin": [
          "<string>"
        ],
        "customersWeWon": [
          "<string>"
        ],
        "customersWeSwitched": [
          "<string>"
        ],
        "customFields": [
          {
            "title": "<string>",
            "value": [
              "<string>"
            ]
          }
        ]
      },
      "user": {
        "oId": "<string>",
        "firstName": "John",
        "lastName": "Doe"
      },
      "workspace": {
        "oId": "<string>"
      },
      "shared": true
    }
  ]
}

Authorizations

api_key
string
header
required

Body

application/json

Competitor generation input with source materials

competitors
object[]
required

Array of competitor generation requests - each object generates one competitor analysis

Minimum length: 1
Example:
[
{
"name": "Salesforce CRM",
"sources": [
{
"type": "TEXT",
"value": "Direct competitor in the CRM space with enterprise focus and strong sales automation"
}
]
},
{
"sources": [
{
"type": "URL",
"value": "https://example.com/competitor-analysis"
}
]
}
]
primaryOfferingOId
string

Primary Offering to use as context when generating competitors. If not provided, the primary company attached to the Workspace will be used.

Example:

"o_123456"

linkingStrategy
object

Strategy for linking this persona to products/offerings Strategy for linking generated competitors to products/offerings

  • Option 1
  • Option 2
brandVoiceOId
string

Brand voice oId to apply to generated competitors

Example:

"bv_123456"

Response

Competitors generated successfully

_metadata
object
required
data
object[]
required
I