API · Topics

Topics that devices subscribe to.

Base: https://api.pushtifly.com. Every response uses { errCode, errMsg, data, meta }. Authentication and keys · Error catalog

GET/v1/topics

App topics with their subscriber count (sk_ with topics:write)

Key: sk_

Responses: 200

curl -X GET "https://api.pushtifly.com/v1/topics" \
  -H "Authorization: Bearer sk_test_YOUR_SECRET_KEY"

POST/v1/topics

Create topic

Key: sk_

Body

FieldTypeDescription
name*string
descriptionstring

Responses: 201409

curl -X POST "https://api.pushtifly.com/v1/topics" \
  -H "Authorization: Bearer sk_test_YOUR_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "offers",
  "description": "Promotions and discounts"
}'

DELETE/v1/topics/{topic}

Delete topic

Key: sk_

Parameters

NameInTypeDescription
topic*pathstring

Responses: 200

curl -X DELETE "https://api.pushtifly.com/v1/topics/offers" \
  -H "Authorization: Bearer sk_test_YOUR_SECRET_KEY"