Get subscriptions
Returns a list of all subscriptions for the specified channel with pagination. By default, the result is sorted by creation date in descending order.
The search can be used with various criteria passed via query parameters (all criteria combinations have AND semantic).
Note.To avoid validation errors and inconsistent results query parameters need to be encoded (see RFC 3986, section 2.1).
Example. Find subscriptions having applications 'app1' and 'app2', and the resource '100200300400'.
/subscriptions/1/subscription/SMS?applicationId=app1&applicationId=app2&resource=100200300400
Authorizations:
Scopes:
path Parameters
channel required | string Enum: "BLOCKLIST" "CUSTOMER_ENGAGEMENT" "EMAIL" "FACEBOOK" "KAKAO_ALIM" "KAKAO_CHINGU" "LINE" "MMS" "MOBILE_IDENTITY" "MOBILE_PUSH" "NUMBER_LOOKUP" "OPEN_CHANNEL" "RCS" "REGISTRATION" "SMS" "VIBER" "VOICE_VIDEO" "WHATSAPP" "ZALO" Channel name. A separate subscription is needed for each channel. |
query Parameters
page | integer <int32> >= 0 Default: 0 Results page to retrieve (0..N). |
size | integer <int32> [ 1 .. 100 ] Default: 20 Number of records per page. |
applicationId | string [ 1 .. 255 ] characters CPaaS-X application identifier. |
entityId | string [ 1 .. 255 ] characters CPaaS-X entity identifier. |
callsConfigurationId | string [ 1 .. 128 ] characters Calls configuration identifier. |
resource | string [ 1 .. 255 ] characters Resource. |
user | string [ 1 .. 255 ] characters User. |
Responses
Success.
Bad request.
Unauthorized
Forbidden
Not found.
Too many requests.
Internal Server Error
Request samples
- cURL
- Java
- C#
- Go
- Python
- PHP
- JavaScript
- NodeJs
- Ruby
curl -L -g 'https://{baseUrl}/subscriptions/1/subscription/{channel}' \ -H 'Authorization: {authorization}' \ -H 'Accept: application/json'
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
{- "results": [
- {
- "subscriptionId": "string",
- "name": "string",
- "profile": {
- "profileId": "string",
- "security": {
- "authId": "string"
}
}, - "events": [
- "string"
], - "criteria": [
- {
- "applicationId": "string",
- "entityId": "string",
- "callsConfigurationId": "string"
}
], - "resources": [
- "string"
], - "users": [
- "string"
]
}
], - "paging": {
- "page": 0,
- "size": 0,
- "totalPages": 0,
- "totalResults": 0
}
}
Need assistance
Encountering issues
What's new? Check out
Unsure about a term? See