Custom APIs

Send requests to any HTTP API.

POST
PUT
DELETE
rhub add:action <group.eventId> <filterId> HTTP POST

Param

Description

eventId

The event that will receive te action.

Example: payment.payment-fulfilled

filterId

The filter/trigger in the event that will process the action.

Example: on-event

Prompt Questions

Custom Headers

Send additional HTTP headers, to the Custom API endpoint.

YAML Command output.

-
id: my-action-ID
async: true
type: HTTP
action: POST
serviceAccountId: my-http-api-id
template:
path: /payment
headers:
headerKey: headerValue
payload:
keyName: '{keyName}'

Params

Description

id, async, type, action, operation, serviceAccountId

The action default parameters, see more.

path

The endpoint path, Reactivehub append the path to the service account base url.

Example:

Service Account Base Url: https://my-url.com

Path = /payment

url = https://my-url.com/payment

headers (optional)

Aditional headers that will be sent for each request.

payload

The message body.

rhub add:action <group.eventId> <filterId> HTTP PUT

Param

Description

eventId

The event that will receive te action.

Example: payment.payment-fulfilled

filterId

The filter/trigger in the event that will process the action.

Example: on-event

Prompt Questions

Custom Headers

Send additional HTTP headers, to the Custom API endpoint.

YAML Command output.

-
id: my-action-ID
async: true
type: HTTP
action: POST
serviceAccountId: my-http-api-id
template:
path: /payment
headers:
headerKey: headerValue
payload:
keyName: '{keyName}'

Params

Description

id, async, type, action, operation, serviceAccountId

The action default parameters, see more.

path

The endpoint path, Reactivehub append the path to the service account base url.

Example:

Service Account Base Url: https://my-url.com

Path = /payment

url = https://my-url.com/payment

headers (optional)

Aditional headers that will be sent for each request.

payload

The message body.

rhub add:action <group.eventId> <filterId> HTTP DELETE

Param

Description

eventId

The event that will receive te action.

Example: payment.payment-fulfilled

filterId

The filter/trigger in the event that will process the action.

Example: on-event

Prompt Questions

Custom Headers

Send additional HTTP headers, to the Custom API endpoint.

YAML Command output.

-
id: my-action-ID
async: true
type: HTTP
action: POST
serviceAccountId: my-http-api-id
template:
path: /payment
headers:
headerKey: headerValue

Params

Description

id, async, type, action, operation, serviceAccountId

The action default parameters, see more.

path

The endpoint path, Reactivehub append the path to the service account base url.

Example:

Service Account Base Url: https://my-url.com

Path = /payment

url = https://my-url.com/payment

headers (optional)

Aditional headers that will be sent for each request.