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
| Field | Type | Description |
|---|---|---|
name* | string | |
description | string |
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
| Name | In | Type | Description |
|---|---|---|---|
topic* | path | string |
Responses: 200
curl -X DELETE "https://api.pushtifly.com/v1/topics/offers" \
-H "Authorization: Bearer sk_test_YOUR_SECRET_KEY"