POST
/
v1
/
hook
/
{orgId}
/
{envKey}
/
{connectorId}
/
{webhookType}
/
{webhookTokenOrGlobalRoute}
Handle connector webhooks
const url = 'https://api.runmorph.dev/v1/hook/{orgId}/{envKey}/{connectorId}/{webhookType}/{webhookTokenOrGlobalRoute}';
const options = {
  method: 'POST',
  headers: {
    'x-api-key': '<api-key>',
    'x-api-secret': '<api-key>',
    'Content-Type': 'application/json'
  },
  body: '"<any>"'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
"<any>"

Authorizations

x-api-key
string
header
required
x-api-secret
string
header
required

Headers

headers
any

Path Parameters

orgId
string
required
envKey
string
required
connectorId
enum<string>
required
Available options:
hubspot,
pipedrive,
salesforce,
aircall,
gong,
attio,
dialpad,
calendly,
xero,
chargebee
webhookType
enum<string>
required
Available options:
global,
subscription
webhookTokenOrGlobalRoute
string
required

Query Parameters

query
any

Body

The body is of type any.

Response

OK

The response is of type any.