Skip to main content

Retrieve a Subscription

Jetmir Abdija avatar
Written by Jetmir Abdija
Updated this week

This article describes the steps for retrieving a subscription in BlueDolphin.

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/{id}:

  • Resource/endpoint destination URL

  • The header for your API request

  • The {tenant} needs to be replaced with the tenant's name

  • The ID needs to be replaced with the ID of the subscription to retrieve

  • Optional query parameters:

    • include_disabled

    • bluedolphin_event

The following events are currently supported:

    ObjectCreated,
ObjectArchived,
ObjectUpdated

Example API Request

curl --location --globoff --request GET 'https://public-api.eu.bluedolphin.app/v1/subscriptions/‘{id} \
--header 'x-api-key: YOURAPIKEYSECRET' \
--header 'tenant: tenantName' \

Successful response

A successful call returns a response with a 200 OK HTTP status code and the following body:

{
"id": "Unique identifier",
"last_updated_by": "Unique identifier",
"url": "Unique URL provided",
"bluedolphin_event": "Event Name",
"lifecycle_state": "Current"
"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

headers

object

The headers are 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

lifecycle_state

Enum

The lifecycle state to filter on.

Values can be:

  • All

  • Current

  • Future

Did this answer your question?