curl --request GET \
--url https://api.openphone.com/v1/webhooks/{id} \
--header 'Authorization: <api-key>'
{
"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": [
"message.received"
],
"resourceIds": [
"<string>"
]
}
}
Get a webhook by its unique identifier.
curl --request GET \
--url https://api.openphone.com/v1/webhooks/{id} \
--header 'Authorization: <api-key>'
{
"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": [
"message.received"
],
"resourceIds": [
"<string>"
]
}
}
The unique identifier of a webhook
"WH12345"
Success
The response is of type object
.
Was this page helpful?