curl -X POST https://services-staging.getplu.com/api/v1/partner/profile/webhook \
-H "Authorization: Bearer sk_staging_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"webhookUrl": "https://api.acme.com/webhooks/bitmama"
}'
const response = await fetch(
'https://services-staging.getplu.com/api/v1/partner/profile/webhook',
{
method: 'POST',
headers: {
'Authorization': 'Bearer sk_staging_your_api_key',
'Content-Type': 'application/json',
},
body: JSON.stringify({
webhookUrl: 'https://api.acme.com/webhooks/bitmama',
}),
}
);
{
"status": "success",
"message": "Webhook endpoint configured",
"data": {
"webhookUrl": "https://api.acme.com/webhooks/bitmama",
"webhookSecret": "whsec_abc123def456..."
}
}
Profile
Set Webhook
Configure your webhook endpoint for event notifications
POST
/
v1
/
partner
/
profile
/
webhook
curl -X POST https://services-staging.getplu.com/api/v1/partner/profile/webhook \
-H "Authorization: Bearer sk_staging_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"webhookUrl": "https://api.acme.com/webhooks/bitmama"
}'
const response = await fetch(
'https://services-staging.getplu.com/api/v1/partner/profile/webhook',
{
method: 'POST',
headers: {
'Authorization': 'Bearer sk_staging_your_api_key',
'Content-Type': 'application/json',
},
body: JSON.stringify({
webhookUrl: 'https://api.acme.com/webhooks/bitmama',
}),
}
);
{
"status": "success",
"message": "Webhook endpoint configured",
"data": {
"webhookUrl": "https://api.acme.com/webhooks/bitmama",
"webhookSecret": "whsec_abc123def456..."
}
}
Set the URL where you want to receive webhook events. Returns a
webhookSecret for signature verification.
string
required
Bearer token. Example:
Bearer sk_staging_your_api_keystring
required
HTTPS URL to receive webhook events. Max 2048 characters.
curl -X POST https://services-staging.getplu.com/api/v1/partner/profile/webhook \
-H "Authorization: Bearer sk_staging_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"webhookUrl": "https://api.acme.com/webhooks/bitmama"
}'
const response = await fetch(
'https://services-staging.getplu.com/api/v1/partner/profile/webhook',
{
method: 'POST',
headers: {
'Authorization': 'Bearer sk_staging_your_api_key',
'Content-Type': 'application/json',
},
body: JSON.stringify({
webhookUrl: 'https://api.acme.com/webhooks/bitmama',
}),
}
);
{
"status": "success",
"message": "Webhook endpoint configured",
"data": {
"webhookUrl": "https://api.acme.com/webhooks/bitmama",
"webhookSecret": "whsec_abc123def456..."
}
}
Store the
webhookSecret securely — it’s only returned when you set or update your webhook URL. You’ll need it to verify webhook signatures.⌘I