List Subscription Alerts — Guide

First-request guide for List Subscription Alerts.

API GUIDE

List Subscription Alerts

List Subscription Alerts

GET/subscriptions/{subscriptionId}/alertsNo request bodyAuthentication required

Overview

Retrieve a paginated list of alerts generated for the specified subscription ID. Each alert includes: - `alertId`: unique identifier for the alert - `createdAt`: timestamp of when the alert was generated Results are sorted in descending order of `createdAt` (most recent first).

Call the endpoint

Send a GET request to /subscriptions/{subscriptionId}/alerts with the required authentication and parameters.

Supply endpoint parameters

Review the parameter table to see which path, query, or header values the endpoint accepts.

Inspect the response

Use the success response shape to validate the fields your integration receives.

Quickstart

Follow these two steps to make a request and recognize a successful response.

STEP 1

Make a request

REQUEST
curl --request GET \
  --url https://uapi.demandbase.com/data/b2b/v1/subscriptions/287ea0c8-99de-4f0c-addc-097f78b48ba6/alerts?page=1&perPage=10 \
  --header "Authorization: Bearer $DB_API_KEY" \
  --header "Accept: application/json"
STEP 2

Read the response

SUCCESS RESPONSE · HTTP 200
{
  "alerts": [
    {
      "alertId": 3,
      "createdAt": "2025-05-23T15:25:56.202+05:30"
    }
  ],
  "pageNo": 1,
  "pageSize": 2,
  "totalCount": 1,
  "totalPages": 1
}

Request anatomy

Build the request from the method, path, parameters, and payload described below.

Parameters

NameLocationTypeRequiredDescription
pagequeryintegerOptionalPage number for pagination. Default is 1.
perPagequeryintegerOptionalNumber of results per page. Default is 10, maximum is 50.
subscriptionIdpathstringRequiredUnique identifier for the subscription

Request body

This endpoint does not define a JSON request body.

Response anatomy

The endpoint returns 200 for the documented success case. Subscription alert details list fetched successfully

The response schema does not enumerate fields; inspect the example response and status code.

Rules

  • Use GET with the path /subscriptions/{subscriptionId}/alerts.
  • Required inputs: subscriptionId.
  • Authenticate every request with a valid Demandbase access token.
  • This endpoint does not require a JSON request body.

Filters

The published schema exposes the following endpoint inputs. Use the location column to place each value correctly.

NameLocationTypeRequiredDescription
pagequeryintegerOptionalPage number for pagination. Default is 1.
perPagequeryintegerOptionalNumber of results per page. Default is 10, maximum is 50.
subscriptionIdpathstringRequiredUnique identifier for the subscription

Errors

Handle non-success responses explicitly so your integration can report actionable failures.

StatusMeaning
401Unauthorized because the user is not authenticated.
404Not Found

Next steps

Try the quickstart

Start with the request example, then replace the sample values with your credentials and data.

Return to the API area

Back to subscription-api

Back to top