Nexus Integrations / Push Events
Create Webhook Endpoint
Tell Nexus where to send the events your integration needs.
1. Endpoint
POST
https://api.gpirblx.com/api/v1/stores/{Store-Id}/webhooksCreates an HTTPS webhook endpoint and returns its signing secret. Save the secret immediately.
2. Parameters
| Name | Location | Required | Description |
|---|---|---|---|
storeId | Path | Yes | The store where the webhook belongs. |
name | Body | Yes | A human-readable name, up to 80 characters. |
url | Body | Yes | The public HTTPS URL that receives events. |
events | Body | Yes | One or more supported event names. |
3. Request
When sending JSON, include the following request body:
{
"name": "My store listener",
"url": "https://example.com/nexus/webhook",
"events": ["order.completed", "entitlement.created"]
}Example request:
curl -X POST "https://api.gpirblx.com/api/v1/stores/STORE_ID/webhooks" \
-H "Content-Type: application/json" \
-d '{"name":"My store listener","url":"https://example.com/nexus/webhook","events":["order.completed"]}'4. Response
Successful response:
{
"success": true,
"data": {
"id": "webhook_id",
"name": "My store listener",
"url": "https://example.com/nexus/webhook",
"events": ["order.completed"],
"secret": "whsec_your_secret",
"active": true
}
}