Overview
Call this endpoint as a GET request to get a single webhook associated with your account.
Endpoint
Method | URL |
---|---|
GET | https://{{your url}}/api/2.0/production/sms/webhooks/{{webhook_id}} |
Requests
Example Curl Request
curl --location 'https://{{your url}}/api/2.0/production/sms/webhooks/{{webhook_id}}'
Responses
Status Codes
Status Code |
Explanation |
---|---|
200 OK |
Webhook retrieved successfully |
401 Unauthorized | The provided authorization credentials are incorrect |
200 OK
Response Body Example
{ "status": "success", "data": { "webhook": { "id": "e0fce57e-1064-4cb4-9b76-8aa8bf4b0678", "url": "https://typedwebhook.tools/webhook/46d9467c-b764-478a-a077-56a4d651310d", "verb": "post", "auth_details": { "username": "admin", "password": "password" }, "auth_type": "basic", "status": "enabled", "updated_timestamp": "2023-09-09T19:31:43+02:00", "created_timestamp": "2023-08-30T12:33:30+02:00", "event_types": [ "reply", "bounce" ] } } }
Top Level Response Properties
Property |
Sub-Property | Explanation | Data Type |
---|---|---|---|
status |
|
This field is used to determine whether the request succeeded or failed. |
String |
data |
This holds an array with a |
Array |
|
data | webhook |
This field holds an array of a single webhook |
Array |
Lower Level Response Properties
Property |
Sub-Property | Explanation | Data Type |
Possible Values |
---|---|---|---|---|
id |
|
This is the unique ID for the webhook |
String | |
url |
This is the webhook URL that is being used for this configured webhook |
String | ||
verb |
This is the method that is used when pushing data to the webhook |
String |
|
|
auth_details |
This is the authentication details if the webhook requires authentication |
Array | ||
auth_details | username |
This is the username portion for basic authentication details for the webhook |
String | |
auth_details | password |
This is the password portion for basic authentication details for the webhook |
String | |
auth_type |
This is the authentication type that the webhook may user |
String |
If this webhook does not require authentication, then this field is left empty ( |
|
status |
This indicated if the webhook is enabled or disabled |
String |
|
|
updated_timestamp |
This indicates when the webhook was last updated |
DateTime (Iso8601 format) |
||
created_timestamp |
This indicates when the webhook was created |
DateTime ( |
||
event_types |
This indicates what events the webhook is monitoring |
Array |
|
401 Unauthorized
Response Body Example
"Invalid Credentials"