Admin Subscribers
Endpoints for administrators to manage subscribers and view subscription analytics.
X-API-KEY Required for all endpoints in this section.
Update Subscriber Active State
Enable or disable a subscriber.
HTTP Method & URL: PUT /api/admin/Subscriber/UpdateSubscriberActiveState
Request
- Headers
- Payload
- cURL
| Name | Value | Required | Description |
|---|---|---|---|
X-API-KEY | string | Yes | Your unique API key. |
Content-Type | application/json | Yes | Sending JSON data. |
Body: SubscribeActiveModel
{
"SubscriberId": "3fa85f64-5717-4562-b3fc-2c963f66afb1",
"IsActive": false
}
curl -X PUT "https://stg.itechops.com/api/admin/Subscriber/UpdateSubscriberActiveState" \
-H "X-API-KEY: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"SubscriberId": "3fa85f64-5717-4562-b3fc-2c963f66afb1",
"IsActive": false
}'
Responses
- 200 OK
- 400 Bad Request
- 401 Unauthorized
- 500 Server Error
Description: Success. Subscriber state updated.
Description: Validation error.
Response Body: ApiResponse<List<string>>
Description: Unauthorized. Invalid API key.
Description: Internal server error.
Get Subscription Chart Data
Retrieve data for subscription growth charts.
HTTP Method & URL: GET /api/admin/Subscriber/GetMonthlysubsChartData
Request
- Parameters
- cURL
Range: (String)7days,30days,90days, orcustom.StartDate: (String) Required if Range iscustom.EndDate: (String) Required if Range iscustom.
curl -X GET "https://stg.itechops.com/api/admin/Subscriber/GetMonthlysubsChartData?Range=30days" \
-H "X-API-KEY: your_api_key_here"
Responses
- 200 OK
- 401 Unauthorized
- 500 Server Error
Description: Success. Returns chart data.
Response Body: ApiResponse<List<SubscriberMonthGroup>>
Description: Authentication failed.
Description: Internal server error.
List All Subscribers (Paginated)
Retrieve a paginated list of all subscribers.
HTTP Method & URL: POST /api/admin/Subscriber/list
Request
- Payload
Body: PaginationModel<SubscribeModel>
{
"Start": 0,
"Length": 10,
"Search": { "Value": "user@example.com" }
}
Responses
- 200 OK
- 401 Unauthorized
- 500 Server Error
Description: Success. Returns a paginated list of subscribers.
Response Body: ApiResponse<PaginationModel<SubscribeModel>>
Description: Authentication failed.
Description: Internal server error.