Skip to content

API reference

Topics API

Subscription topics contacts opt in to or out of.

Paths are relative to https://isent.dev/api/v1. Every request needs an API key; see API overview for errors, rate limits and pagination.

List topics

GET/topics

Responses

List topics: responses
StatusMeaning
200OK.
400The body is not valid JSON.
401Missing, invalid or restricted API key.
403Not allowed: role, key scope, unverified domain, plan limit (plan_limit_reached) or a new team's members-only sending (sending_restricted).
422Validation failed.
429Rate limit (rate_limit_exceeded), monthly quota (monthly_quota_exceeded) or a new team's daily limit (daily_limit_reached).
cURL
curl -X GET https://isent.dev/api/v1/topics \
  -H "Authorization: Bearer $ISENT_API_KEY"

Create a topic

POST/topics

Body

A JSON object.

Create a topic: body
NameTypeDescription
nameRequiredstring1 to 100 characters.
descriptionstringAt most 300 characters.
default_subscription"opt_in" | "opt_out"None
visibility"public" | "private"None

Responses

Create a topic: responses
StatusMeaning
201Created.
400The body is not valid JSON.
401Missing, invalid or restricted API key.
403Not allowed: role, key scope, unverified domain, plan limit (plan_limit_reached) or a new team's members-only sending (sending_restricted).
409Conflict with the current state, or an idempotency key reused.
422Validation failed.
429Rate limit (rate_limit_exceeded), monthly quota (monthly_quota_exceeded) or a new team's daily limit (daily_limit_reached).

Retrieve a topic

GET/topics/{id}

Parameters

Retrieve a topic: parameters
NameInTypeDescription
idRequiredpathstringNone

Responses

Retrieve a topic: responses
StatusMeaning
200OK.
400The body is not valid JSON.
401Missing, invalid or restricted API key.
403Not allowed: role, key scope, unverified domain, plan limit (plan_limit_reached) or a new team's members-only sending (sending_restricted).
404Not found.
422Validation failed.
429Rate limit (rate_limit_exceeded), monthly quota (monthly_quota_exceeded) or a new team's daily limit (daily_limit_reached).
cURL
curl -X GET https://isent.dev/api/v1/topics/{id} \
  -H "Authorization: Bearer $ISENT_API_KEY"

Update a topic

PATCH/topics/{id}

Parameters

Update a topic: parameters
NameInTypeDescription
idRequiredpathstringNone

Body

A JSON object.

Update a topic: body
NameTypeDescription
namestring1 to 100 characters.
descriptionstring | nullAt most 300 characters.
default_subscription"opt_in" | "opt_out"None
visibility"public" | "private"None

Responses

Update a topic: responses
StatusMeaning
200OK.
400The body is not valid JSON.
401Missing, invalid or restricted API key.
403Not allowed: role, key scope, unverified domain, plan limit (plan_limit_reached) or a new team's members-only sending (sending_restricted).
404Not found.
409Conflict with the current state, or an idempotency key reused.
422Validation failed.
429Rate limit (rate_limit_exceeded), monthly quota (monthly_quota_exceeded) or a new team's daily limit (daily_limit_reached).

Delete a topic

DELETE/topics/{id}

Parameters

Delete a topic: parameters
NameInTypeDescription
idRequiredpathstringNone

Responses

Delete a topic: responses
StatusMeaning
200OK.
400The body is not valid JSON.
401Missing, invalid or restricted API key.
403Not allowed: role, key scope, unverified domain, plan limit (plan_limit_reached) or a new team's members-only sending (sending_restricted).
404Not found.
409Conflict with the current state, or an idempotency key reused.
422Validation failed.
429Rate limit (rate_limit_exceeded), monthly quota (monthly_quota_exceeded) or a new team's daily limit (daily_limit_reached).
cURL
curl -X DELETE https://isent.dev/api/v1/topics/{id} \
  -H "Authorization: Bearer $ISENT_API_KEY"