Connectors

HTTP REST API sink

Send records from a SQIP topic to an HTTPS API

Use the HTTP REST API sink when every record from a SQIP topic should be sent to an HTTPS endpoint using POST or PUT.

Before you begin

Ask the API owner for:

  • The HTTPS endpoint URL.
  • Whether to use POST or PUT.
  • The authentication method and credentials.
  • The largest request the API accepts and its recommended concurrency.

Warning

The receiving API may see the same record more than once after a retry. Whenever possible, use an endpoint that safely recognizes repeated requests.

Install the connector

Select the connector

In Connectors, find HTTP REST API Sink and select Select and install.

Choose the input

Enter an installation name, select the tenant, cluster, and namespace, and choose the input topic whose records will be sent to the API.

Configure the endpoint

Enter the endpoint and request settings from the table below.

Add authentication

Select the API's authentication type and enter credentials only in SQIP's credential section.

Install and verify

Select Install connector, wait for Running, and send a test record to the input topic. Confirm that it arrives at the API.

Configuration fields

FieldWhat to enterExampleRequired
URLThe complete HTTPS endpoint that receives recordshttps://events.example.com/v1/ordersYes
HTTP MethodPOST to create or submit records; PUT when the endpoint expects replacement or upsert behaviorPOSTNo; defaults to POST
Auth TypeNONE, BEARER, BASIC, or API_KEYBEARERNo; defaults to NONE
Auth Header NameThe header used for API_KEY authenticationX-API-KeyOnly for API_KEY
Connect Timeout MsHow long SQIP waits to establish a connection5000No
Request Timeout MsMaximum time allowed for one API request10000No
Max Request BytesLargest topic record that may be sent, in bytes1048576 (1 MiB)No
Max In FlightMaximum requests SQIP may send at the same time32No
Forward Pulsar MetadataSelect Yes only when the receiving API needs SQIP message detailsNoNo
ParallelismNumber of connector instances1Yes; allowed range 116

Authentication choices

Auth TypeWhen to use itCredential input
NONEThe endpoint requires no loginNone
BEARERThe endpoint expects an access tokenToken
BASICThe endpoint expects a username and passwordUsername and password
API_KEYThe endpoint expects a key in a named headerAPI key and Auth Header Name

Enter only the credential fields required by the selected authentication type. Alternatively, expand Use an existing secret reference instead and enter the approved secret name. Do not use both approaches.

Public test example

This endpoint accepts test POST requests without credentials and returns a simulated response.

FieldInput
URLhttps://jsonplaceholder.typicode.com/posts
HTTP MethodPOST
Auth TypeNONE
Auth Header NameX-API-Key
Connect Timeout Ms5000
Request Timeout Ms10000
Max Request Bytes1048576
Max In Flight32
Forward Pulsar MetadataNo

Warning

The public test endpoint does not permanently store records. Use it only to confirm that the connector can send a request.

If installation fails

  • Confirm that the URL starts with https:// and does not contain credentials.
  • Confirm that the API supports the selected POST or PUT method.
  • Confirm that the authentication type and credential match the API requirements.
  • Lower Max In Flight if the API reports rate-limit or overload errors.
  • Increase Max Request Bytes only if valid topic records exceed the current limit.