RocketCOMS

Retrieve a Campaign Subscription

Retrieve a webhook subscription for a campaign.

Endpoint

GET /v1/campaigns/{campaignId}/subscriptions/{subscriptionId}

Authorization Header

Authorization: Bearer <access_token>
or
Authorization: Basic <encodedString>
where <encodedString> is your <api-key>:<api-secret> string encoded using Base64 encoding

Path Parameters

campaignId  REQUIRED

string (UUID)

Unique ID assigned to the campaign in RocketCOMS.

subscriptionId  REQUIRED

string (UUID)

Unique ID assigned to the webhook subscription in RocketCOMS.

Request Body

None

Returns

Returns the Campaign Subscription object. This object contains the subscription details including the event types for which the subscription receives notifications.

SAMPLE RESPONSE

				
					{
  "status": "string",
  "result": {
    "id": "991d95fb-1723-4b00-b5ab-ab05eccc0fcd",
    "campaignId": "d341ae75-d236-4240-b653-ce10f54b1e55",
    "url": "https://mycompany.com/webhook/listener",
    "eventTypes": [
      "message.status",
      "message.replies",
      "batch.status"
    ]
  },
  "message": "string"
}