POST
/
webhooks
import { Panora } from "@panora/sdk";

const panora = new Panora({
  apiKey: "<YOUR_API_KEY_HERE>",
});

async function run() {
  const result = await panora.webhooks.create({
    url: "https://acme.com/webhook_receiver",
    description: "Webhook to receive connection events",
    scope: [
      "connection.created",
    ],
  });
  
  // Handle the result
  console.log(result)
}

run();
{
  "id_webhook_endpoint": "801f9ede-c698-4e66-a7fc-48d19eebaa4f",
  "endpoint_description": "Webhook to receive connection events",
  "url": "https://acme.com/webhook_receiver",
  "secret": "801f9ede-c698-4e66-a7fc-48d19eebaa4f",
  "active": true,
  "created_at": "2024-10-01T12:00:00Z",
  "scope": [
    "connection.created"
  ],
  "id_project": "801f9ede-c698-4e66-a7fc-48d19eebaa4f",
  "last_update": "2024-10-01T12:00:00Z"
}

Authorizations

x-api-key
string
header
required

Body

application/json

Response

201 - application/json

The response is of type object.