GET
/
v1
/
connections
/
{connectorId}
/
{ownerId}
Retrieve a connection
const url = 'https://api.runmorph.dev/v1/connections/{connectorId}/{ownerId}';
const options = {
  method: 'GET',
  headers: {'x-api-key': '<api-key>', 'x-api-secret': '<api-key>'},
  body: undefined
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
{
  "object": "connection",
  "connectorId": "<string>",
  "ownerId": "<string>",
  "operations": [
    "<string>"
  ],
  "status": "<string>",
  "createdAt": "<string>",
  "updatedAt": "<string>"
}
Session Token
You can also retrieve a connection using a session token by making a GET request to /v1/s/connection. This requires setting both the x-api-key and x-session-token headers.

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,
xero,
chargebee
ownerId
string
required

Response

OK

The response is of type object.