POST
/
v1
/
webhooks
/
call-summaries
curl --request POST \
  --url https://api.openphone.com/v1/webhooks/call-summaries \
  --header 'Content-Type: application/json' \
  --data '{
  "events": [
    "call.summary.completed"
  ],
  "label": "my webhook label",
  "resourceIds": [
    "PN1234"
  ],
  "status": "enabled",
  "url": "https://example.com",
  "userId": "US123abc"
}'
{
  "data": {
    "id": "WHabcd1234",
    "userId": "US123abc",
    "orgId": "OR1223abc",
    "label": "my webhook label",
    "status": "enabled",
    "url": "https://example.com/",
    "key": "example-key",
    "createdAt": "2022-01-01T00:00:00Z",
    "updatedAt": "2022-01-01T00:00:00Z",
    "deletedAt": "2022-01-01T00:00:00Z",
    "events": [
      "call.summary.completed"
    ],
    "resourceIds": [
      "PN1234"
    ]
  }
}

Body

application/json
events
enum<string>[]
required

An event associated with the webhook.

Available options:
call.summary.completed
url
string
required

The endpoint that receives events from the webhook.

label
string

Webhook's label

resourceIds

The unique identifiers of the phone numbers associated with the webhook.

status
enum<string>
default:
enabled

The status of the webhook.

Available options:
enabled,
disabled
userId
string

The unique identifier of the user that creates the webhook. If not provided, default to workspace owner.

Response

201
application/json
Success
data
object
required