Docs

API Reference

All /api/v1/developer/* endpoints with request and response examples.

Base URL: https://ai.wordai.pro·All endpoints require Authorization: Bearer <firebase_id_token>
GET/api/v1/developer/apps

List all apps registered under your developer account.

Response

[
  {
    "id": "your-app-id",
    "name": "My App",
    "status": "published",
    "price_vnd": 99000,
    "installs": 142,
    "created_at": "2026-04-01T00:00:00Z"
  }
]
GET/api/v1/developer/apps/:id

Get details of a specific app including revenue stats.

Response

{
  "id": "your-app-id",
  "name": "My App",
  "description": "...",
  "status": "published",
  "price_vnd": 99000,
  "installs": 142,
  "revenue_total_vnd": 11246400,
  "revenue_pending_vnd": 2376000
}
GET/api/v1/apps/:id/access

Check whether the authenticated user has access to a given app.

Response

{
  "has_access": true,
  "purchase_status": "purchased",
  "purchased_at": "2026-04-15T08:32:00Z"
}
GET/api/v1/developer/revenue

Get paginated revenue transactions for your apps.

Response

{
  "total": 3,
  "items": [
    {
      "purchase_id": "APP-1714380000-uid12345",
      "app_id": "your-app-id",
      "user_id": "firebase_uid_abc123",
      "amount_vnd": 99000,
      "developer_share_vnd": 79200,
      "status": "paid",
      "created_at": "2026-04-30T10:00:00Z"
    }
  ]
}
POST/api/v1/developer/apps/:id/webhooks

Register or update the webhook URL for an app.

Request body

{
  "url": "https://yourapp.com/webhooks/wynai",
  "events": ["app.purchased", "app.installed", "app.uninstalled", "app.refunded"]
}

Response

{
  "ok": true,
  "webhook_id": "wh_abc123"
}