curl --request GET \
--url https://api.openphone.com/v1/webhooks \
--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>"
]
}
]
}
List all webhooks for a user.
curl --request GET \
--url https://api.openphone.com/v1/webhooks \
--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 the user. Defaults to the workspace owner.
"U55wgP5I5"
Success
The response is of type object
.
Was this page helpful?