Appearance
Submit Feedback
Collect bug reports, feature requests, and general feedback from your product users.
POST /public/v1/feedbackRequest
json
{
"public_key": "pk_your_public_key",
"type": "bug",
"message": "Export button doesn't work on mobile",
"email": "user@example.com",
"metadata": {
"browser": "Safari",
"version": "1.2.0"
}
}| Field | Type | Required | Description |
|---|---|---|---|
public_key | string | Yes | Your product's public key |
type | string | Yes | bug, feature, or general |
message | string | Yes | Feedback content |
email | string | No | User's email for follow-up |
metadata | object | No | Additional context (browser, version, etc.) |
Response
json
{
"success": true,
"id": "fb_abc123"
}SDK Examples
JS SDK
javascript
packedge.init('pk_your_key');
await packedge.submitFeedback({
type: 'bug',
message: 'Export button broken on mobile',
email: 'user@example.com',
metadata: {
browser: navigator.userAgent,
version: '1.2.0'
}
});PHP SDK
bash
composer require packedge-sdk/analyticsphp
use PackEdge\Analytics;
$analytics = Analytics::init('pk_your_key', __FILE__);
$analytics->feedback('feature', 'Add dark mode support', $user_email);REST API
php
wp_remote_post('https://api.packedge.dev/public/v1/feedback', [
'body' => json_encode([
'public_key' => 'pk_your_key',
'type' => 'bug',
'message' => $message,
'email' => $user_email,
]),
'headers' => ['Content-Type' => 'application/json'],
]);Viewing Feedback
Feedback is viewable in the PackEdge Console under Feedback.
You can also set up webhooks to receive real-time notifications:
feedback.submitted— Triggered when new feedback is submitted
See Webhook Events for details.
