POST
/
v1
/
webhooks
/
call-transcripts
curl --request POST \
  --url https://api.openphone.com/v1/webhooks/call-transcripts \
  --header 'Content-Type: application/json' \
  --data '{
  "events": [
    "call.transcript.completed"
  ],
  "label": "my webhook label",
  "resourceIds": [
    "<string>"
  ],
  "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.transcript.completed"
    ],
    "resourceIds": [
      "<string>"
    ]
  }
}

Body

application/json
events
enum<string>[]
required
Available options:
call.transcript.completed
url
string
required

The endpoint that receives events from the webhook.

Example:

"https://example.com"

label
string

The webhook's label.

Example:

"my webhook label"

resourceIds
status
enum<string>

The status of the webhook.

Available options:
enabled,
disabled
Example:

"enabled"

userId
string

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

Example:

"US123abc"

Response

201
application/json
Success
data
object
required