| title | Incoming Webhooks |
|---|---|
| permalink | /docs/incoming-webhooks/ |
| excerpt | Incoming Webhooks allow you to send posts from external sources into talkspirit. |
| modified | 2025-02-28 |
Incoming Webhooks enable you to send posts from external sources into talkspirit using a secret URL. You can send webhooks to groups or individual users by making a simple HTTP request with a JSON payload in UTF-8.
To get started, set up an incoming webhook integration in your talkspirit team, obtain the token, and start sending posts.
You can post messages using an incoming webhook. Here’s an example of a message sent via a webhook:
To create a post, your JSON payload should include the following properties:
{
"title": "First post through Incoming Webhook",
"content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
"url": "https://www.talkspirit.com/",
"contact": {
"display_name": "Incoming Webhook bot",
"url": "https://www.talkspirit.com/",
"icon": "https://talkspirit.github.io/img/talkspirit-bot-avatar.png"
}
}The illustration below shows where these payload properties appear in the post:
- Blue: Contact properties
- Green: Message properties
Since incoming webhooks use JSON, set the Content-Type HTTP header to application/json.
You can test the webhook using the command below. Replace XXXXXXXXXXXXXXXXXXXXXXXX with your actual webhook token:
curl -X POST -H 'Content-Type: application/json' --data '
{
"title": "First post through Incoming Webhook",
"content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
"url": "https://www.talkspirit.com/",
"contact": {
"display_name": "Incoming Webhook bot",
"url": "https://www.talkspirit.com/",
"icon": "https://talkspirit.github.io/img/talkspirit-bot-avatar.png"
}
}' https://webhook.talkspirit.com/v1/incoming/XXXXXXXXXXXXXXXXXXXXXXXXTo test and debug your webhook requests before sending them to talkspirit, you can use tools like:
| Tool | Description |
|---|---|
| Beeceptor | Create a mock HTTP endpoint to inspect and debug webhook requests. |
| Webhook.site | Monitor incoming HTTP requests and see detailed request logs. |
talkspirit supports threads, allowing you to send multiple webhooks that appear as comments on an initial post. To achieve this, include a thread_id field in your payload. This can be any unique identifier, such as a timestamp or a custom string.
curl -X POST -H 'Content-Type: application/json' --data '
{
"title": "First post through Incoming Webhook",
"content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
"url": "https://www.talkspirit.com/",
"thread_id": "2025-02-28",
"contact": {
"display_name": "Incoming Webhook bot",
"url": "https://www.talkspirit.com/",
"icon": "https://talkspirit.github.io/img/talkspirit-bot-avatar.png"
}
}' https://webhook.talkspirit.com/v1/incoming/XXXXXXXXXXXXXXXXXXXXXXXXcurl -X POST -H 'Content-Type: application/json' --data '
{
"content": "This is a reply to the initial post.",
"thread_id": "2025-02-28",
"contact": {
"display_name": "Incoming Webhook bot",
"url": "https://www.talkspirit.com/",
"icon": "https://talkspirit.github.io/img/talkspirit-bot-avatar.png"
}
}' https://webhook.talkspirit.com/v1/incoming/XXXXXXXXXXXXXXXXXXXXXXXXBy following these steps, you can integrate external sources with talkspirit using incoming webhooks.


