cURL
curl --request POST \ --url https://api.notifique.dev/v1/topics \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "slug": "<string>", "name": "<string>", "description": "<string>", "defaultOptIn": true } '
{ "success": true, "data": { "id": "<string>", "workspaceId": "<string>", "slug": "<string>", "name": "<string>", "description": "<string>", "defaultOptIn": true, "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" } }
Cria tópico; slug único por workspace. Escopo: topics:create.
slug
Authorization: Bearer sk_live_xxxxx
64
128
2000
Padrão true se omitido.
Criado.
Show child attributes
Was this page helpful?