Connect a ticket webhook: step-by-step guide
Sends every ticket event (opened, recurred, passed, closed) as a signed JSON POST to one https address you own, so your own system (a queue, a bot, an internal tracker) can open its ticket. This guide takes you from nothing to a verified connection, and lists the errors you can meet with their cause and fix.
Last updated:
Keep your credentials private. Never paste a token, key, password or webhook URL into a chat. Type it only in Studio → Settings → Integrations, where it is saved in your workspace's .env file and shown as dots. The same goes for an AI assistant: it can walk you through this guide, but it never needs your token.
What you need
- An https endpoint you control that accepts POST requests with a JSON body. No user:password@ in the address; redirects are not followed.
- A signing secret of at least 16 characters, known to the Studio and to your endpoint only.
Get the credentials
- Create a random secret of at least 16 characters (for example 32 random letters and digits from your password manager).
- Store the same secret in your endpoint's configuration.
- Make the endpoint check each request, in this order: X-Nexus-Timestamp is no more than 5 minutes old; X-Nexus-Signature equals "sha256=" + the hex HMAC-SHA256 of "<X-Nexus-Timestamp>.<raw body>" with the secret; X-Nexus-Delivery was not seen before (a retry keeps the same id). Answer 2xx once it is stored.
- The body is JSON: { event, delivery, at, ref, test, ticket } for opened, or { …, note } for the others. event is opened (a reopen carries reopened: true), recurred, passed or closed; ticket is the redacted ticket with no local file paths. The test event is named ping.
Connect it in the Studio
- In the Studio, open Settings → Integrations → Ticket webhook.
- Save the address in
TICKETS_WEBHOOK_URLand the secret inTICKETS_WEBHOOK_SECRET, turn onTICKETS_HOOK_ENABLEDand press Save changes. - Open the Tickets page. Under Where, pick + Add a destination → Webhook, then press save tickets.
Check that it works
- On the Connect a webhook card, press Send a test event. "delivered · id <uuid>" means your endpoint answered 2xx to a signed ping.
- Check that your endpoint logged the ping and accepted its signature. Then a failing test sends "opened" with the ticket.
Common errors
| What you see | Cause | Fix |
|---|---|---|
| "save an https:// webhook URL (no user:password@) first" | The address is empty, http, or carries a user and password. | Save an https address without credentials in it. |
| "save a signing secret of at least 16 characters first" | The secret is empty or too short. | Save a secret of 16 or more characters, and the same one in your endpoint. |
| "webhook answered HTTP 401" or "HTTP 403" | Your endpoint rejected the signature or the timestamp. | Sign "<timestamp>.<raw body>" exactly as received (not re-serialized JSON) and check the clocks of both machines. |
| "webhook not reached (…)" | This PC cannot reach the endpoint (DNS, firewall, proxy or certificate), or the endpoint redirects: redirects are never followed, so the signature cannot travel to another host. | Use the final https address and open it from the same PC; three tries are made with a growing wait. |
| "webhook not sent: Isolated mode is on" | Isolated mode blocks every third-party connection, the webhook included. | Turn Isolated mode off in Settings if this webhook should receive events. |
Settings keys
| Key | What it does | Valid value | How to check it |
|---|---|---|---|
TICKETS_HOOK_ENABLED | Send tickets to your own system | true or false | Turn on, add the Webhook destination on the Tickets page; Send a test event works either way. |
TICKETS_WEBHOOK_URL | Address for your tickets system (secret, saved only on this computer) | https://… with a host, no user:password@ | Send a test event: "save an https:// webhook URL" means it was refused. |
TICKETS_WEBHOOK_SECRET | Signing password for your tickets (secret, saved only on this computer) | At least 16 characters, one line | Send a test event: "save a signing secret of at least 16 characters" means it is too short. |
More: all integrations, the Settings guide, troubleshooting. Other guides: Jira Cloud, Azure Boards, Slack, Microsoft Teams, Telegram, GitHub Issues, Linear, GitLab Issues, PagerDuty, TestRail, Tickets.
Still stuck? Write to support@nexusstudioqa.com with the exact error line the Studio shows. Do not include a token.