Skip to main content
POST
/
api
/
v2
/
alternative
/
generate
Generate Alternatives
curl --request POST \
  --url https://app.octavehq.com/api/v2/alternative/generate \
  --header 'Content-Type: application/json' \
  --header 'api_key: <api-key>' \
  --data '
{
  "alternatives": [
    {
      "sources": [
        {
          "type": "TEXT",
          "value": "Lead generation and qualification for enterprise sales"
        }
      ],
      "name": "Spreadsheet + email stack"
    }
  ],
  "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>",
      "deletedAt": "<string>",
      "archivedAt": "<string>",
      "active": true,
      "data": {
        "whereItWorks": [
          "<string>"
        ],
        "whereItBreaks": [
          "<string>"
        ],
        "whoChampionsThisApproach": [
          "<string>"
        ],
        "whyOurApproachIsSuperior": [
          "<string>"
        ],
        "perceivedBenefits": [
          "<string>"
        ],
        "hiddenCostsAndPitfalls": [
          "<string>"
        ],
        "customFields": [
          {
            "title": "<string>",
            "value": [
              "<string>"
            ]
          }
        ]
      },
      "user": {
        "oId": "<string>",
        "firstName": "John",
        "lastName": "Doe"
      },
      "workspace": {
        "oId": "<string>"
      }
    }
  ]
}

Authorizations

api_key
string
header
required

Body

application/json

Alternative generation input with source materials

alternatives
object[]
required

Array of alternative generation requests - each object generates one status-quo / incumbent analysis

Minimum array length: 1
primaryOfferingOId
string

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

Example:

"o_123456"

linkingStrategy
object

Strategy for linking generated alternatives to offerings (products/services)

brandVoiceOId
string

Brand voice oId to apply to generated alternatives

Example:

"bv_123456"

Response

Alternatives generated successfully

_metadata
object
required
data
object[]
required