Add a new subscriber
Add a new subscriber to your publication. The publication is identified by the API key provided in the Authorization header.
Requirements:
- At least one of
emailorwalletmust be provided - If both are provided, the subscriber will be associated with both credentials
Behavior:
- If the subscriber already exists (by email or wallet), they will not be duplicated
apiKeyAuthorizationBearer <token>API key for authenticating protected endpoints. Pass as Bearer token in Authorization header.
Body
application/json- body
email?stringEmail address of the subscriber
emailwallet?stringWallet address of the subscriber (0x format)
^0x[a-fA-F0-9]{40}$createdAt?numberTimestamp (in milliseconds) when the subscription was created. Defaults to current time.
Subscriber added successfully
application/json- response
success*trueWhether the subscriber was added
truecurl -X POST "https://example.com/v1/subscribers" \ -H "Content-Type: application/json" \ -d '{}'{ "success": true}List subscribers GET
Retrieve a paginated list of subscribers for your publication. The publication is identified by the API key provided in the Authorization header. **Response:** - Returns subscriber email and/or wallet address - Only active subscribers are returned - Results are ordered by subscription date (newest first)
Remove a subscriber DELETE
Remove a subscriber from your publication. The publication is identified by the API key provided in the Authorization header. Identify the subscriber by email, wallet, or both. **Requirements:** - At least one of `email` or `wallet` must be provided - If both are provided, they must resolve to the same subscriber **Behavior:** - The subscription is hard-deleted, mirroring the dashboard's "remove subscriber" action