Skip to main content
POST
Create webhook endpoint

Authorizations

Authorization
string
header
required

Use your API key as a Bearer token. API keys can be generated in Settings → Integrations → API Access.

Body

application/json
url
string
required

HTTPS URL on the public internet

Maximum string length: 2048
Example:

"https://example.com/webhooks/msportal"

eventTypes
enum<string>[]
required

Events to send. Only events whose public API read the linked user could make are accepted (403 otherwise).

Required array length: 1 - 20 elements
Available options:
csat.response.created,
ticket.created,
ticket.updated,
company.created,
company.updated,
company.deleted
description
string | null
Maximum string length: 500
companyIds
string<uuid>[] | null

Only events about these companies; null, empty or omitted for every company

Maximum array length: 500
alertEmails
string<email>[] | null

Told when deliveries keep failing; omitted for the endpoint's owner

Maximum array length: 10
secretHeader
string | null

A request header, named here, that also carries the signing secret as is, for receivers that can only compare a static header (Power Automate, Rewst, n8n). Every request is still signed. Letters, digits and hyphens, at most 64; not a header MSPortal already sends (webhook-*, content-type, user-agent…). Rotating the secret changes its value at once. null, empty or omitted: none.

Maximum string length: 64
Example:

"x-msportal-secret"

fields
object | null

Payload fields by event type, each a list of field names; an event left out sends its default fields. The record's id and company are always sent. csat.response.created: id (always), rating, scale, normalizedScore, comment, source, sourceResponseId, submittedAt, company (always), contact, technician, ticket. ticket.*: id (always), ticketNumber, title, description, resolution, status, isClosed, priority, escalationStatus, companyId (always), companyName, contactName, contactEmail, contactPhone, reportedBy, enteredBy, assignedTo, boardName, typeName, categoryName, issueTypeName, subIssueTypeName, source, hoursBudgeted, hoursActual, createdAt, updatedAt, dueDate, closedAt, daysOpen, provider, externalId, companyExternalId, psaUrl, portalUrl, reference. company.created/updated: id (always), name, isActive, domain, website, industry, companySize, accountNumber, entityType, types, territory, market, timezone, parentCompany, phone, address, primaryContact, teamMembers, customFields, createdAt, updatedAt, portalUrl. company.deleted: id (always), name, isActive, domain, website, industry, companySize, accountNumber, phone, createdAt.

Example:

Response

Endpoint created, with its signing secret

data
object
required

Never includes the signing secret.