Notifications
Save an event’s Discord embed (message, style, fields, buttons)
AuthorizationBearer <token>
API key from Settings → API keys
In: header
Path Parameters
storeId*string
event*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X PUT "https://example.com/v1/stores/string/notifications/embeds/string" \ -H "Content-Type: application/json" \ -d '{ "template": {} }'{ "event": "string", "notification": { "name": "string", "sellauthName": "string" }, "message": "string", "template": { "title": "string", "url": "string", "description": "string", "color": "string", "author": { "name": "string", "url": "string", "icon_url": "string" }, "thumbnail_url": "string", "image_url": "string", "footer": { "text": "string", "icon_url": "string" }, "timestamp": true, "fields": [ { "type": "field", "name": "string", "value": "string", "inline": true } ], "buttons": [ { "label": "string", "url": "string" } ] }, "customised": true, "defaultTemplate": { "title": "string", "url": "string", "description": "string", "color": "string", "author": { "name": "string", "url": "string", "icon_url": "string" }, "thumbnail_url": "string", "image_url": "string", "footer": { "text": "string", "icon_url": "string" }, "timestamp": true, "fields": [ { "type": "field", "name": "string", "value": "string", "inline": true } ], "buttons": [ { "label": "string", "url": "string" } ] }, "limits": { "property1": -9007199254740991, "property2": -9007199254740991 }, "variables": [ { "key": "string", "label": "string", "sample": "string", "group": "string" } ], "groups": [ { "key": "string", "label": "string", "item_label": "string" } ], "spreads": [ { "key": "string", "label": "string", "group": "string" } ], "sampleContext": { "values": { "property1": "string", "property2": "string" }, "groups": { "property1": [ { "values": { "property1": "string", "property2": "string" }, "spreads": { "property1": { "property1": "string", "property2": "string" }, "property2": { "property1": "string", "property2": "string" } } } ], "property2": [ { "values": { "property1": "string", "property2": "string" }, "spreads": { "property1": { "property1": "string", "property2": "string" }, "property2": { "property1": "string", "property2": "string" } } } ] }, "spreads": { "property1": { "property1": "string", "property2": "string" }, "property2": { "property1": "string", "property2": "string" } } }, "webhookUrl": "string"}