POST
/
v1
/
connections
/
{connectorId}
/
{ownerId}
const options = {
  method: 'POST',
  headers: {
    'x-api-key': '<api-key>',
    'x-api-secret': '<api-key>',
    'Content-Type': 'application/json'
  },
  body: '{"operations":["genericCompany::create"]}'
};

fetch('https://api.runmorph.dev/v1/connections/{connectorId}/{ownerId}', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
{
  "object": "connection",
  "connectorId": "<string>",
  "ownerId": "<string>",
  "operations": [
    "<string>"
  ],
  "status": "<string>",
  "createdAt": "<string>",
  "updatedAt": "<string>"
}

Authorizations

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

Path Parameters

connectorId
required
Available options:
hubspot,
pipedrive,
salesforce,
aircall,
gong,
attio,
dialpad,
calendly
ownerId
string
required

Body

Response

201
application/json

Created

The response is of type object.