Subscription (Collection)


Get all Subscriptions

GET https://apis.wso2.com/api/am/publisher/v0.16/subscriptions

This operation can be used to retrieve a list of subscriptions of the user associated with the provided access token. This operation is capable of 1. Retrieving all subscriptions for the user's APIs. `GET https://localhost:9443/api/am/publisher/v0.16/subscriptions` 2. Retrieving subscriptions for a specific API. `GET https://localhost:9443/api/am/publisher/v0.16/subscriptions?apiId=c43a325c-260b-4302-81cb-768eafaa3aed`

OAuth 2.0 Scope

Not required

Examples

Parameters

Type Name Description Schema Default
Query

apiId

required

**API ID** consisting of the **UUID** of the API. Using the **UUID** in the API call is recommended. The combination of the provider of the API, name of the API and the version is also accepted as a valid API I. Should be formatted as **provider-name-version**.

String

Query

limit

optional

Maximum size of resource array to return.

Integer

25

Query

offset

optional

Starting point within the complete list of items qualified.

Integer

0

Header

Accept

optional

Media types acceptable for the response. Default is application/json.

String

application/json

Header

If-None-Match

optional

Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource (Will be supported in future).

String

Responses

HTTP Code Description Schema

200

OK. Subscription list returned.

SubscriptionList

304

Not Modified. Empty body because the client has already the latest version of the requested resource (Will be supported in future).

406

Not Acceptable. The requested media type is not supported

Error