A Company Manager sets it up under Settings → Integrations. An API key lets your service desk create a dispatch request from a ticket, follow it, change its details, add comments (they appear in the job chat) and cancel it. A webhook is the other direction: PeerToSite calls your system when a job changes — accepted, on site, signed off, completed — and when the technician sends a message, so the ticket keeps itself up to date.
Cancelling from the ticket cancels the visit under the same rule as the Cancel button: until the technician checks in. The Delivery Log shows every message PeerToSite sent and whether it arrived. Your IT team or service-desk vendor will want the Developers page (linked at the foot of the PeerToSite site) for the details.
Whatever you connect is your own system — when you set it up you confirm your company is responsible for where it keeps the information PeerToSite sends it.