PawTalk Support
Sign in

Webhooks

Last updated 4 October 2026

Webhooks work both ways: incoming webhooks let anything post into a channel with a secret URL, and outgoing events are signed so you know they really came from PawTalk.

Post to a channel

  1. Create the webhookServer Settings → Integrations → Create webhook. Pick the channel, name and avatar.
  2. Copy the URLIt's shown once. Anyone with it can post in that channel, so keep it secret.
  3. PostSend JSON to the URL.
Post a messagebash
curl -X POST https://paw-talk.xyz/api/v1/webhooks/<id>/execute \
  -H "Authorization: Webhook <secret>" \
  -H "Content-Type: application/json" \
  -d '{"content":"Build finished","username":"CI","embeds":[{"title":"v2.4 is live"}]}'
FieldWhat it does
contentThe message text. Mentions like <@user id> ping people.
embedsRich cards: title, description, fields, colour, image.
usernameName for this one message.
avatar_urlPicture for this one message (HTTPS).
Leaked URL?Press Rotate URL in Integrations. The old one stops working at once.

Signed events

When PawTalk sends events to your app (webhook events, or interactions to your endpoint URL), every request carries two headers:

X-PawTalk-TimestampWhen it was sent (unix seconds)
X-PawTalk-SignatureEd25519 signature of timestamp + "." + raw body, base64

Your app's public key is on its page in the Developer Portal.

Verify a signature

PHPwebhook.php
// sodium is built into PHP
$body = file_get_contents('php://input');
$ts   = $_SERVER['HTTP_X_PAWTALK_TIMESTAMP'] ?? '';
$sig  = base64_decode($_SERVER['HTTP_X_PAWTALK_SIGNATURE'] ?? '');
$key  = base64_decode(PAWTALK_PUBLIC_KEY);
$ok = abs(time() - (int)$ts) < 300
   && sodium_crypto_sign_open($sig, $key) === $ts . '.' . $body;
if (!$ok) { http_response_code(401); exit; }
Node.jswebhook.js
import nacl from 'tweetnacl';
const ts  = req.headers['x-pawtalk-timestamp'];
const sig = Buffer.from(req.headers['x-pawtalk-signature'], 'base64');
const key = Buffer.from(process.env.PAWTALK_PUBLIC_KEY, 'base64');
const opened = nacl.sign.open(sig, key);
const ok = Math.abs(Date.now() / 1000 - ts) < 300 && opened &&
  Buffer.from(opened).toString() === ts + '.' + rawBody;
if (!ok) return res.status(401).end();
Always check the timestampReject anything older than 5 minutes, so an old request can't be replayed.

Didn't answer your question?

Somebody on the team will help.

Submit a request