Skip to content

Events Subscriptions API (v1)

Introduction

Welcome to the Aritma Events API!

Over time there will be introduced changes to the API as we continuously introduce improvements. You have the option to use a specific version or the most recent version, supported versions are available in the response header api-supported-versions. Use a specific version of the API by specifying the api-version header, for example api-version: 1.0. If you don't specify the header, the latest version will be used. If a version has been scheduled to be removed, it will be reported through the api-supported-versions header.

Our API uses resource-oriented endpoint paths, accepts Json-Encoded request bodies, returns Json-Encoded responses, and uses standard HTTP response codes and verbs.

Download OpenAPI description
Languages
Servers
Mock server
https://developer.aritma.com/_mock/apis/platform/events/openapi/events-openapi
Subscriptions API Dev
https://events.dev.aritma.io
Subscriptions API
https://events.aritma.io

Deadletter

Operations

Subscriptions

Operations

Creates a new subscription.

Request


Create a subscription for a set of event-types.
To complete provisioning of the subscription you must do a GET request against the validationUrl sent to the Delivery.Url.
Webhooks of the specified event-types will be delivered when provisioning has succeeded.

Security
authorization_code_dev(Required scopes:
api
)
or client_credentials_dev(Required scopes:
api
)
or authorization_code(Required scopes:
api
)
or client_credentials(Required scopes:
api
)
Headers
ResourceUristring

ResourceUri to create the event subscriptions under.

TenantIdstring(uuid)

TenantId used by the customer.

Body

Aritma.Events.Subscription.Api.Models.Requests.CreateSubscriptionRequest

namestring or null

A unique identifier for the subscription.

Example: "ExampleName"
eventsArray of strings or null

List of events to subscribe to.

deliveryobject(Delivery)

An object used to configure event delivery properties.

expirationTimestring or null(date-time)

A date and time for when the subscription should expire.

Example: "2024-01-01T00:00:00.000Z"
retryPolicyobject(RetryPolicy)

An object used to configure the retry policy for the subscription.

deadletterEnabledboolean or null

A boolean describing if failed events should be stored in a container.

Example: true
{ "name": "ExampleName", "events": [ "string" ], "delivery": { "url": "https://localhost.test", "maxEventsPerBatch": 10, "preferredBatchSizeInKiloBytes": 128, "authorizationHeader": "Bearer mF_9.B5f-4.1JqM" }, "expirationTime": "2024-01-01T00:00:00.000Z", "retryPolicy": { "ttl": "00:10:00", "maxEventDeliveryAttempts": 30 }, "deadletterEnabled": true }

Responses

Created

Body
namestring or null

A unique identifier for the subscription.

Example: "ExampleName"
eventTypesArray of strings or null

List of events to subscribe to.

deliveryobject(Delivery)

An object used to configure event delivery properties.

expirationDatestring or null(date-time)

A date and time for when the subscription should expire.

Example: "05/29/2024 05:50:06"
retryPolicyobject(RetryPolicy)

An object used to configure the retry policy for the subscription.

deadletterEnabledboolean

A boolean describing if failed events should be stored in a container.

Example: true
provisioningStatestring or null


An event status describing the status for the subscription.
Ok - the subscription is active and operating.
Pending - the subscription is awaiting webhook validation from user.
Processing - the subscription is applying changes, will change status to Ok when done.
Aborted - the last changes was either canceled or failed.

Example: "Ok"
Response
No response example

Gets all subscriptions available.

Request

Security
authorization_code_dev(Required scopes:
api
)
or client_credentials_dev(Required scopes:
api
)
or authorization_code(Required scopes:
api
)
or client_credentials(Required scopes:
api
)
Headers
ResourceUristring

ResourceUri to create the event subscriptions under.

TenantIdstring(uuid)

TenantId used by the customer.

No request payload

Responses

Success

Body
namestring or null

A unique identifier for the subscription.

Example: "ExampleName"
eventTypesArray of strings or null

List of events to subscribe to.

deliveryobject(Delivery)

An object used to configure event delivery properties.

expirationDatestring or null(date-time)

A date and time for when the subscription should expire.

Example: "05/29/2024 05:50:06"
retryPolicyobject(RetryPolicy)

An object used to configure the retry policy for the subscription.

deadletterEnabledboolean

A boolean describing if failed events should be stored in a container.

Example: true
provisioningStatestring or null


An event status describing the status for the subscription.
Ok - the subscription is active and operating.
Pending - the subscription is awaiting webhook validation from user.
Processing - the subscription is applying changes, will change status to Ok when done.
Aborted - the last changes was either canceled or failed.

Example: "Ok"
Response
No response example

Gets a subscription matching the id specified.

Request

Security
authorization_code_dev(Required scopes:
api
)
or client_credentials_dev(Required scopes:
api
)
or authorization_code(Required scopes:
api
)
or client_credentials(Required scopes:
api
)
Path
subscriptionNamestringrequired

The unique name of the subscription.

Headers
ResourceUristring

ResourceUri to create the event subscriptions under.

TenantIdstring(uuid)

TenantId used by the customer.

No request payload

Responses

Success

Body
namestring or null

A unique identifier for the subscription.

Example: "ExampleName"
eventTypesArray of strings or null

List of events to subscribe to.

deliveryobject(Delivery)

An object used to configure event delivery properties.

expirationDatestring or null(date-time)

A date and time for when the subscription should expire.

Example: "05/29/2024 05:50:06"
retryPolicyobject(RetryPolicy)

An object used to configure the retry policy for the subscription.

deadletterEnabledboolean

A boolean describing if failed events should be stored in a container.

Example: true
provisioningStatestring or null


An event status describing the status for the subscription.
Ok - the subscription is active and operating.
Pending - the subscription is awaiting webhook validation from user.
Processing - the subscription is applying changes, will change status to Ok when done.
Aborted - the last changes was either canceled or failed.

Example: "Ok"
Response
No response example

Updates an existing subscription matching the id specified.

Request


Updates a subscription for a set of event-types.
To complete provisioning of the subscription you must do a GET request against the validationUrl sent to the Delivery.Url.
Webhooks of the specified event-types will be delivered when provisioning has succeeded.

Security
authorization_code_dev(Required scopes:
api
)
or client_credentials_dev(Required scopes:
api
)
or authorization_code(Required scopes:
api
)
or client_credentials(Required scopes:
api
)
Path
subscriptionNamestringrequired

The unique identifier of a subscription.

Headers
ResourceUristring

ResourceUri to create the event subscriptions under.

TenantIdstring(uuid)

TenantId used by the customer.

Body

A Aritma.Events.Subscription.Api.Models.Requests.UpdateSubscriptionRequest object used to Update a subscription.

eventsArray of strings or null

List of events to subscribe to.

deliveryobject(Delivery)

An object used to configure event delivery properties.

expirationTimestring or null(date-time)

A date and time for when the subscription should expire.

Example: "2024-01-01T00:00:00.000Z"
retryPolicyobject(RetryPolicy)

An object used to configure the retry policy for the subscription.

deadletterEnabledboolean or null

A boolean describing if failed events should be stored in a container.

Example: true
{ "events": [ "string" ], "delivery": { "url": "https://localhost.test", "maxEventsPerBatch": 10, "preferredBatchSizeInKiloBytes": 128, "authorizationHeader": "Bearer mF_9.B5f-4.1JqM" }, "expirationTime": "2024-01-01T00:00:00.000Z", "retryPolicy": { "ttl": "00:10:00", "maxEventDeliveryAttempts": 30 }, "deadletterEnabled": true }

Responses

Success

Body
provisioningStatestring or null
Response
No response example

Deletes an existing subscription matching the id specified.

Request

Security
authorization_code_dev(Required scopes:
api
)
or client_credentials_dev(Required scopes:
api
)
or authorization_code(Required scopes:
api
)
or client_credentials(Required scopes:
api
)
Path
subscriptionNamestringrequired

The unique name of a subscription.

Headers
ResourceUristring

ResourceUri to create the event subscriptions under.

TenantIdstring(uuid)

TenantId used by the customer.

No request payload

Responses

No Content

Response
No content