POST
Create a marketing campaign

Authorizations

better-auth.session_token
string
cookie
required

Better Auth session cookie.

Body

application/json
name
string
required
Required string length: 1 - 200
source
string | null
Maximum string length: 200
medium
string | null
Maximum string length: 200
campaign
string | null
Maximum string length: 200
term
string | null
Maximum string length: 200
content
string | null
Maximum string length: 200
referral
string | null
Maximum string length: 200
defaultEmailTemplateId
string | null

Response

Created

id
string
required
organizationId
string
required
name
string
required
source
string | null
required
medium
string | null
required
campaign
string | null
required
term
string | null
required
content
string | null
required
referral
string | null
required
defaultEmailTemplateId
string | null
required
archivedAt
string<date-time> | null
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required