List all webhooks for a given app as specified by the App ID.
project_id required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
app_id required | string The unique ID of the app. You can find this on the Sinch Dashboard. |
A successful response.
Array of objects (Webhook) List of webhooks belonging to a specific project ID and app ID | |||||||||||||||
Array
|
Malformed request. See common error responses for more information.
Incorrect credentials. See common error responses for more information.
Correct credentials but you don't have access to the requested resource. See common error responses for more information.
Correct credentials but you don't have access to the requested resource. See common error responses for more information.
Something went wrong on our end, try again with exponential back-off. See common error responses for more information.
{- "webhooks": [
- {
- "app_id": "string",
- "client_credentials": {
- "client_id": "string",
- "client_secret": "pa$$word",
- "endpoint": "string"
}, - "id": "string",
- "secret": "pa$$word",
- "target": "string",
- "target_type": "DISMISS",
- "triggers": [
- "MESSAGE_DELIVERY"
]
}
]
}
Creates a webhook for receiving callbacks on specific triggers. You can create up to 5 webhooks per app.
project_id required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
Required. The Webhook to create
app_id required | string The app that this webhook belongs to. |
target required | string The target url where events should be sent to. Maximum URL length is 742. The conversation-api.*.sinch.com subdomains are forbidden. |
triggers required | Array of strings (WebhookTrigger) An array of triggers that should trigger the webhook and result in an event being sent to the target url. Refer to the list of Webhook Triggers for a complete list. |
object (ClientCredentials) Optional. Used for OAuth2 authentication. | |
secret | string <password> Optional secret be used to sign contents of webhooks sent by the Conversation API. You can then use the secret to verify the signature. |
target_type | string (WebhookTargetType) Default: "HTTP" Enum: "DISMISS" "HTTP" |
A successful response.
app_id required | string The app that this webhook belongs to. |
target required | string The target url where events should be sent to. Maximum URL length is 742. The conversation-api.*.sinch.com subdomains are forbidden. |
triggers required | Array of strings (WebhookTrigger) An array of triggers that should trigger the webhook and result in an event being sent to the target url. Refer to the list of Webhook Triggers for a complete list. |
object (ClientCredentials) Optional. Used for OAuth2 authentication. | |
id | string The ID of the webhook. |
secret | string <password> Optional secret be used to sign contents of webhooks sent by the Conversation API. You can then use the secret to verify the signature. |
target_type | string (WebhookTargetType) Default: "HTTP" Enum: "DISMISS" "HTTP" |
Malformed request. See common error responses for more information.
Incorrect credentials. See common error responses for more information.
Correct credentials but you don't have access to the requested resource. See common error responses for more information.
Correct credentials but you don't have access to the requested resource. See common error responses for more information.
Something went wrong on our end, try again with exponential back-off. See common error responses for more information.
{- "app_id": "string",
- "target": "string",
- "triggers": [
- "MESSAGE_DELIVERY"
]
}
{- "app_id": "string",
- "client_credentials": {
- "client_id": "string",
- "client_secret": "pa$$word",
- "endpoint": "string"
}, - "id": "string",
- "secret": "pa$$word",
- "target": "string",
- "target_type": "DISMISS",
- "triggers": [
- "MESSAGE_DELIVERY"
]
}
Get a webhook as specified by the webhook ID.
project_id required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
webhook_id required | string The unique ID of the webhook. |
A successful response.
app_id required | string The app that this webhook belongs to. |
target required | string The target url where events should be sent to. Maximum URL length is 742. The conversation-api.*.sinch.com subdomains are forbidden. |
triggers required | Array of strings (WebhookTrigger) An array of triggers that should trigger the webhook and result in an event being sent to the target url. Refer to the list of Webhook Triggers for a complete list. |
object (ClientCredentials) Optional. Used for OAuth2 authentication. | |
id | string The ID of the webhook. |
secret | string <password> Optional secret be used to sign contents of webhooks sent by the Conversation API. You can then use the secret to verify the signature. |
target_type | string (WebhookTargetType) Default: "HTTP" Enum: "DISMISS" "HTTP" |
Malformed request. See common error responses for more information.
Incorrect credentials. See common error responses for more information.
Correct credentials but you don't have access to the requested resource. See common error responses for more information.
Correct credentials but you don't have access to the requested resource. See common error responses for more information.
Something went wrong on our end, try again with exponential back-off. See common error responses for more information.
{- "app_id": "string",
- "client_credentials": {
- "client_id": "string",
- "client_secret": "pa$$word",
- "endpoint": "string"
}, - "id": "string",
- "secret": "pa$$word",
- "target": "string",
- "target_type": "DISMISS",
- "triggers": [
- "MESSAGE_DELIVERY"
]
}
Updates an existing webhook as specified by the webhook ID.
project_id required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
webhook_id required | string The unique ID of the webhook. |
Required. The Webhook to update
app_id required | string The app that this webhook belongs to. |
target required | string The target url where events should be sent to. Maximum URL length is 742. The conversation-api.*.sinch.com subdomains are forbidden. |
triggers required | Array of strings (WebhookTrigger) An array of triggers that should trigger the webhook and result in an event being sent to the target url. Refer to the list of Webhook Triggers for a complete list. |
object (ClientCredentials) Optional. Used for OAuth2 authentication. | |
secret | string <password> Optional secret be used to sign contents of webhooks sent by the Conversation API. You can then use the secret to verify the signature. |
target_type | string (WebhookTargetType) Default: "HTTP" Enum: "DISMISS" "HTTP" |
A successful response.
app_id required | string The app that this webhook belongs to. |
target required | string The target url where events should be sent to. Maximum URL length is 742. The conversation-api.*.sinch.com subdomains are forbidden. |
triggers required | Array of strings (WebhookTrigger) An array of triggers that should trigger the webhook and result in an event being sent to the target url. Refer to the list of Webhook Triggers for a complete list. |
object (ClientCredentials) Optional. Used for OAuth2 authentication. | |
id | string The ID of the webhook. |
secret | string <password> Optional secret be used to sign contents of webhooks sent by the Conversation API. You can then use the secret to verify the signature. |
target_type | string (WebhookTargetType) Default: "HTTP" Enum: "DISMISS" "HTTP" |
Malformed request. See common error responses for more information.
Incorrect credentials. See common error responses for more information.
Correct credentials but you don't have access to the requested resource. See common error responses for more information.
Correct credentials but you don't have access to the requested resource. See common error responses for more information.
Something went wrong on our end, try again with exponential back-off. See common error responses for more information.
{- "app_id": "string",
- "target": "string",
- "triggers": [
- "MESSAGE_DELIVERY"
]
}
{- "app_id": "string",
- "client_credentials": {
- "client_id": "string",
- "client_secret": "pa$$word",
- "endpoint": "string"
}, - "id": "string",
- "secret": "pa$$word",
- "target": "string",
- "target_type": "DISMISS",
- "triggers": [
- "MESSAGE_DELIVERY"
]
}
Deletes a webhook as specified by the webhook ID.
project_id required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
webhook_id required | string The unique ID of the webhook. |
A successful response.
Malformed request. See common error responses for more information.
Incorrect credentials. See common error responses for more information.
Correct credentials but you don't have access to the requested resource. See common error responses for more information.
Correct credentials but you don't have access to the requested resource. See common error responses for more information.
Something went wrong on our end, try again with exponential back-off. See common error responses for more information.
{- "code": 400,
- "message": "Malformed request",
- "status": "INVALID_REQUEST",
- "details": [ ]
}