Skip to main content
POST
Create or replace an offer

Authorizations

Authorization
string
header
required

A workspace API key: wdy_live_… / wdy_test_…. Created at POST /workspaces/{tenantId}/keys and shown exactly once.

Body

application/json
key
string
required

The kebab-case id the model emits.

name
object
required
description
string
required

ENGLISH, prompt-facing: when to offer it.

Maximum string length: 600
agentId
object | null

The agent this offer belongs to; null = the workspace pool.

price
object | null
features
object[]
Maximum array length: 6
highlight
boolean

A link id from the agent, where the button leads.

ctaLabel
object | null

Localized CTA button text. The principal language is required; automatic target translations may arrive later.

Response

id
string
required
agentId
object | null
required
key
string
required
name
object
required
description
string
required
features
object[]
required
highlight
boolean
required
status
enum<string>
required
Available options:
active,
archived
createdAt
string
required
updatedAt
string
required
price
object | null
ctaLabel
object | null