The article describes the steps for retrieving (all) subscriptions for your Bluedolphin tenant.
HTTP response status code | Interpretation |
---|---|
200 OK | Subscription retrieved successfully |
400 Bad Request | Subscription could not be retrieved due to invalid tenant data passed |
401 Unauthorized | Subscription could not be retrieved due to the user not being authorized with the correct API key |
404 Not Found | Could not find subscription with specified ID |
500 Internal Server Error | The subscriptions couldn’t be retrieved due to a server error |
Make a GET request to /subscriptions
- Resource/endpoint destination URL
- The header for your API request
- The {tenant} needs to be replaced with the tenant's name
The following query parameters are optional:
- include_disabled (Include all disabled subscriptions in response)
- bluedolphin_event (Filter response based on a specific event)
Example API Request
curl --location --request GET 'https://public-api.eu.bluedolphin.app/v1/subscriptions?include_disabled=true' \
--header 'x-api-key: YOURAPIKEYSECRET' \
--header 'tenant: tenantName' \
--header 'Content-Type: text/plain' \
Successful Response:
A successful call returns a response with a 200 OK HTTP status code and the following body:
{
"total_items": 1,
"items": [
{
"id": "Unique identifier",
"last_updated_by": "Unique identifier",
"url": "Unique URL provided",
"bluedolphin_event": "Event Name",
"object_definition_id": "000000000000000000000001",
"workspace_id": "000000000000000000000001",
"headers": {},
"status": 0,
"http_verb": "POST"
}
]
}
Response properties
Property | Type | Description |
---|---|---|
id | string | Unique identifier for the subscription |
last_updated_by | string | Unique identifier of the person who last updated/created the subscription |
url | string | The external url provided to which messages are sent |
bluedolphin_event | string | The event name for which the subscription was created |
object_definition_id | string | Unique identifier of the object definition that the object is based on |
workspace_id | string | Unique identifier of the workspace where the event is located |
headers | object | The headers provided if needed to make a request to an external Url with authorization tokens |
http_verb | string | The type of request to be made to the URL provided |
Comments
0 comments
Please sign in to leave a comment.