wallet
Test a webhook delivery (sends a single test payload)
Sends a test payload to the given URL to verify webhook connectivity and signature. Uses the same signing as real deliveries.
POST
/api/wallet/non-custodial/webhooks/testAuthentication
Requires JWT Requires API Key JWT or API Key
Note
This endpoint accepts either JWT Bearer token or API Key. Use
Authorization: Bearer YOUR_TOKEN for user context, or X-API-Key: YOUR_KEY for server-to-server. View authentication guide →Include your JWT in the Authorization: Bearer YOUR_TOKEN header (user-facing apps, RBAC). View authentication guide →Include your API key in the X-API-Key: YOUR_KEY header (server-to-server, SDKs). View authentication guide →Request Body
URL to send the test POST to; optional secret and projectId for scoping; optional event type to simulate.
json
{
"url": "https://scented-pleasure.biz/",
"secret": "Str0ng_Sample_Pass!w0rd",
"projectId": "proj_qh5hFHNT70YZ",
"event": "bus input"
}{
"url": "https://scented-pleasure.biz/",
"secret": "Str0ng_Sample_Pass!w0rd",
"projectId": "proj_qh5hFHNT70YZ",
"event": "bus input"
}SDK setup
Create a client and set credentials (JWT and/or API key) before calling the API. Match the authentication type shown above.
import { MudbaseClient } from "mudbase";
const client = new MudbaseClient();
client.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c3JfbW9yZ2FuX2RlIiwiZW1haWwiOiJtb3JnYW4uY2hlbkBub3J0aHdpbmQuZGV2IiwiZXhwIjoxODI1MTI5NjAwfQ.doc_preview_sig");import { MudbaseClient } from "mudbase";
const client = new MudbaseClient();
client.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c3JfbW9yZ2FuX2RlIiwiZW1haWwiOiJtb3JnYW4uY2hlbkBub3J0aHdpbmQuZGV2IiwiZXhwIjoxODI1MTI5NjAwfQ.doc_preview_sig");Example request
Call this endpoint using the client from SDK setup. Use View HTTP for a raw cURL example.
const result = await client.wallet.testWebhook({
url: "https://polite-scrap.name",
secret: "Str0ng_Sample_Pass!w0rd",
projectId: "proj_FpWB8WqmtVnv",
event: "protocol hack"
});const result = await client.wallet.testWebhook({
url: "https://polite-scrap.name",
secret: "Str0ng_Sample_Pass!w0rd",
projectId: "proj_FpWB8WqmtVnv",
event: "protocol hack"
});Try It Live
Test this endpoint with your own credentials. Your requests will be sent to the live API.
Get your API key from the console
Use the auth endpoints to obtain a JWT.
No Request Yet
Send a request to see the full inspector
Responses
200Test result
json
{
"success": true,
"data": {
"success": true,
"status": 200
}
}{
"success": true,
"data": {
"success": true,
"status": 200
}
}400Bad request or validation error.
401Authentication required or invalid token.
429Rate limit exceeded.
Errors
| Code | Meaning |
|---|---|
400 | Bad request or validation error. |
401 | Authentication required or invalid token. |
429 | Rate limit exceeded. |