Topics

Create a topic

A topic contacts can opt in to or out of. Its `default_subscription` is the state of every contact that has not chosen, and never changes.

POST
/topics

A topic contacts can opt in to or out of. Its default_subscription is the state of every contact that has not chosen, and never changes.

Authorization

bearer
headerAuthorizationBearer <token>

Request Body

application/json
  1. body
default_subscription*string

The state of a contact that has not chosen: opt_in or opt_out. It never changes.

description?|

At most 200 characters.

doi_from?|

An exx extension: the confirmation's sender, an address at a verified domain of the project; required with doi_required.

doi_required?|

An exx extension: an opt-in waits for the contact's confirmation (double opt-in).

name*string

At most 50 characters.

visibility?|

public (shown on the preference page) or private (the default).

Response Body

Success

application/json
  1. response

The answer to a create or an update.

id*string
Formatuuid
object*string
Example Request
curl -X POST 'https://api.exx.sh/topics' \  -H 'Content-Type: application/json' \  -d '{  "default_subscription": "string",  "name": "string"}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "object": "string"}