Skip to main content
POST
Node.js SDK

Authorizations

Authorization
string
header
required

API key authentication. Use 'Authorization: Bearer YOUR_API_KEY' where YOUR_API_KEY is obtained from the Migma dashboard under Settings → Developers → API Keys.

Body

application/json
name
string
required
Maximum string length: 100
projectId
string
required
description
string
Maximum string length: 500
defaultSubscription
enum<string>
default:opt_out

Cannot be changed after creation. opt_out means all contacts are subscribed by default.

Available options:
opt_in,
opt_out
visibility
enum<string>
default:public
Available options:
public,
private
displayOrder
integer
Required range: x >= 0

Response

Topic created

success
boolean
required
data
object
error
string | null