Middleware

Interact with Telco Blacklist Middleware API

Subscriptions → Create Subscription

AI-generated

Summary

Create a new subscription in the Middleware service by sending a request to the middleware API's subscriptions endpoint.

Inputs

  • Authentication — Choose the authentication method to use; either 'None' (no credentials) or 'Credentials' (using stored middlewareApi credentials).
  • Base URL — Specify the base URL of your middleware service; used only if authentication is set to 'None' (defaults to https://glb-middleware.xeri.dev).

Output shape

a JSON object representing the newly created subscription or an error object

The operation returns the created subscription data as JSON. If 'Credentials' authentication is selected, stored credentials are used for authentication; otherwise the Base URL input is used without credentials. The operation processes items individually and supports error handling according to node settings.

Examples

Example 1: Creating a subscription with credentials authentication

Set Authentication to 'Credentials' to use stored middleware API credentials. Provide any required input if applicable. The node sends a POST request to create the subscription.

Example 2: Creating a subscription without credentials

Set Authentication to 'None' and specify the Base URL of your middleware service. The node sends a POST request without authentication headers.

Discussion