Support reports
Let users send diagnostic logs from your app to your support team in one tap. VPNBuilder scrubs secrets, stores the report for 30 days, emails it to your support address and returns a short reference the user can quote.
Sending a report
POST /v2/support/logs with your app key. A bearer token is optional: if
you send a valid token of your brand, the report is linked to that account
(any other or invalid token is ignored, so this also works when the user is
signed out or their token expired).
curl -X POST https://mercury.vpnbuilder.org/v2/support/logs \
-H 'Accept: application/json' -H 'Content-Type: application/json' \
-H 'X-App-Key: pk_acme_3Jx9cTq0aVb1mN8rLw2yKp5sDf7gHj4z' \
-H 'Authorization: Bearer 12|kX8bS0mQ2v7tYf4nR1cW9eJ6hL3pA5zD' \
-H 'X-Device-Id: 6f1c2d4e-8a7b-4c3d-9e2f-1a0b9c8d7e6f' \
-d '{
"message": "Cannot connect on hotel Wi-Fi",
"contact_email": "ada@example.com",
"app_version": "3.2.0 (412)",
"platform": "ios",
"os_version": "iOS 26.1",
"device_model": "iPhone16,2",
"logs": "2026-12-02 17:40:01 Connecting to lon-1.vpn.example.net:1194 (udp)\n2026-12-02 17:40:11 TLS handshake timed out\n..."
}'
{"reference": "MV-7KQ2X"}
| Field | Required | Limit |
|---|---|---|
logs |
yes | text, ≤ 2 MB (bytes) |
app_version |
yes | ≤ 50 chars |
platform |
yes | free text ≤ 32 chars (ios, android, androidtv, …) |
message |
no | ≤ 2000 chars: what the user typed |
contact_email |
no | valid email ≤ 255 chars; used as Reply-To |
os_version |
no | ≤ 100 chars |
device_model |
no | ≤ 100 chars |
Leading/trailing whitespace of every field (including the logs) is trimmed.
Invalid input is 422 validation_failed with fields.
Show the reference to the user ("Your reference is MV-7KQ2X") and prefill
it in any follow-up email. References are MV- plus 5 characters from
ABCDEFGHJKMNPQRSTUVWXYZ23456789.
Rate limit
5 reports per hour per brand and X-Device-Id (per IP address when no device
id is sent). Always send X-Device-Id so users behind the same network do not
share a limit. Over the limit: 429 rate_limited with Retry-After.
Scrubbing
Logs and the message are scrubbed on the server before they are stored or
emailed. Replaced with [REDACTED]:
- PEM private keys and OpenVPN static keys;
- inline
<key>,<tls-crypt>,<tls-crypt-v2>,<tls-auth>,<secret>and<auth-user-pass>blocks; - WireGuard
PrivateKey/PresharedKeylines; Bearer/Basictokens andAuthorization,X-Api-Key,Cookieheader values;- reseller keys (
sk_…) and node tokens (vbn_…); - values of password-, token- and secret-like
key=valueand"key": "value"pairs (password,pass,pwd,secret,token,access_token,refresh_token,device_code,api_key,private_key, …).
Scrubbing is a safety net, not a licence: do not put secrets in your logs. Log connection events, errors, server names and transports; never the VPN password, the user's account password, tokens or private keys.
Delivery and retention
- The report is emailed to your brand's
support_emailsetting, from your brand's mail sender, with the subjectSupport logs <reference> — <platform> <app_version>, Reply-To thecontact_email(else the signed-in account's email), and the logs attached as<brand>-logs-<reference>.txt. - If no support email is configured, or sending fails, the report is still
stored and the request still succeeds (the report shows
emailed: false). - Reports are deleted after 30 days.
Looking up a report
From your backend, with the Reseller API:
curl https://mercury.vpnbuilder.org/reseller/v2/support/MV-7KQ2X \
-H 'Accept: application/json' \
-H 'Authorization: Bearer sk_acme_Q7vTn2LxP9sRk4Wb8yHc1Me6Ud3Fj5Ga0Zq7Np2Vt9Xs4Kr'
{
"report": {
"reference": "MV-7KQ2X",
"created_at": "2026-12-02T17:44:00Z",
"message": "Cannot connect on hotel Wi-Fi",
"contact_email": "ada@example.com",
"account": {"id": 42, "email": "ada@example.com"},
"app_version": "3.2.0 (412)",
"platform": "ios",
"os_version": "iOS 26.1",
"device_model": "iPhone16,2",
"log_bytes": 18234,
"emailed": true,
"logs": "2026-12-02 17:40:01 Connecting to ..."
}
}
The reference is case-insensitive. Reports of other brands, and reports older
than 30 days, are 404 not_found.