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

fetch('https://api.runmorph.dev/v1/connections/{connectorId}/{ownerId}/authorization', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
{
  "object": "connectionAuthorization",
  "connectorId": "<string>",
  "ownerId": "<string>",
  "status": "<string>",
  "authorizationUrl": "<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

Query Parameters

redirectUrl
string
mode
enum<string>
Available options:
connect,
direct

Body

Response

200
application/json

OK

The response is of type object.