Draft a campaign from a brief
post/project-hub/campaign-from-brief
Draft a campaign from a brief: picks the segment among those that can be written to, reuses the best template (the organisation's if the project has none), writes the copy in the audience language and runs the check. It stops at a draft: a person approves it before anything is sent.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
workspace:write- Graphql
Mutation.workspaceProjectHubDraftFromBrief- Sdk
workspace.projectHub.draftFromBrief- Cli
workspace project hub draft from brief
Request bodyapplication/json, required
- briefstringrequiredAt most 2000 characters.
- languagestringAt most 10 characters.
- channelstringOne of: email, sms. Default: email.
Responses
- 200application/jsonSuccess
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring