İçeriğe geç
BETA Voxnup şu an beta aşamasında. Hatalar ve eksiklikler olabilir — geri bildiriminiz bizim için çok değerli! Geri bildirim gönder
Voxnup

How do I post to a room from another service with a webhook?

Official Voxnup documentation Updated: Türkçe
In short

Right-click a text room, open Room Settings and in the Webhooks tab press New webhook. Take the URL with Copy URL and paste it into the service that will post; the URL is only shown at that moment. When the service sends JSON such as {"content": "Hello"} to the URL, the message appears in the room with the webhook's name and avatar and a BOT badge. You need the Manage Webhooks permission in the channel.

Creating a webhook

  1. Open the room settings

    In the channel's room list, right-click a text room and choose Room Settings. Switch to the Webhooks tab on the left. The tab only appears in text rooms and for people with the permission.

  2. Create a new webhook

    Press New webhook. A new row opens in the list and the notification "Webhook created. Copy the URL now; it won't be shown again." appears.

  3. Copy the URL

    Press Copy URL and keep the URL somewhere safe. For security the URL isn't stored; once you close the page it won't be shown again.

  4. Set the name and avatar (optional)

    Type the name shown on messages in Name, click the avatar to pick an image (PNG, JPG, GIF or WEBP, up to 2 MB). To move the webhook to another text room of the same channel, change Room. Press Save.

Example: posting from the command line

curl -H "Content-Type: application/json" \
  -d '{"content": "Build finished ✅", "username": "CI"}' \
  "https://voxnup.com/api/v1/webhooks/ID/TOKEN"

Sending GitHub notifications to a room

On GitHub, open the repository's Settings → Webhooks → Add webhook page, paste the webhook URL with /github added to the end into Payload URL and choose application/json as Content type. Pushes, pull requests, issues, comments, reviews, releases and stars arrive in the room as short cards. For services that post in Slack format, add /slack to the end of the URL.

Limits

WhatLimit
Webhooks in a room15
Messages per webhook30 a minute (above that 429 with Retry-After)
Message text2000 characters
Embeds10 per message, 6000 characters in total, 25 fields per embed
Files10 per message, up to 10 MB each
Warning

Anyone with the URL can post to the room. If the URL leaked, press New URL: the old URL stops working right away. Creating, editing, resetting and deleting webhooks is written to the channel's Audit Log.

Frequently asked questions

Why doesn't @everyone work in a webhook message?

By default webhook messages only notify @username mentions; @everyone and role mentions are off. Add "allowed_mentions": {"parse": ["everyone", "roles", "users"]} to the JSON you send to turn them on.

Does an integration written for Discord work?

Yes. Voxnup accepts the same body format (content, username, avatar_url, embeds, files). Put the Voxnup URL where the service asks for a Discord webhook URL.

I lost the URL. How do I see it?

The URL isn't stored, so it can't be shown again. Create a new one with New URL and update the service.

Are a webhook's messages deleted with it?

No. The messages it sent stay in the room; only the URL stops working.

Can I see every webhook in the channel in one place?

Yes. The Webhooks tab in the channel settings lists the webhooks from all of the channel's text rooms. From there you can pick a room and create a new webhook, edit existing ones or move them to another room, reset their URLs, or delete them. The tab is only shown to people with the Manage Webhooks permission.

Where do I give the "Manage Webhooks" permission?

In the channel settings, pick the role under Roles; the permission is in the General Channel Permissions group.

Related guides

Still stuck? Email support@voxnup.com. Tell us which device and browser you use and include the exact error text you see, and we'll get back to you quickly.