Referência da APIEndpointsTopics
Create a topic
Creates a subscription topic with its default opt-in.
Authorization
apiKey AuthorizationBearer <token>
An API key from the dashboard (ms_…), sent as Authorization: Bearer. A sending-only key reaches the /emails routes only.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/topics" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "default_subscription": "opt_in" }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "description": "string", "default_subscription": "opt_in", "visibility": "private", "created_at": "string"}