Xpersona
E

EngageLab Web Push

CLAWHUB · Unverified

Call EngageLab Web Push REST APIs to send push notifications and in-app messages to web browsers (Chrome, Firefox, Safari, Edge, etc.); manage tags and alias...

62
Rank
84
Safety
1.0k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17145xn9q0rxevzd3kmwce18s83pakw:engagelab-web-push
  1. Install using `clawhub skill install s17145xn9q0rxevzd3kmwce18s83pakw:engagelab-web-push` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/devengagelab/engagelab-web-push before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-devengagelab-engagelab-web-push/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

41,347 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: engagelab-webpush
description: >
  Call EngageLab Web Push REST APIs to send push notifications and in-app messages
  to web browsers (Chrome, Firefox, Safari, Edge, etc.); manage tags and aliases;
  create scheduled tasks; batch push by registration_id or alias; group push;
  delete users; query statistics; and configure callbacks. Use this skill when the
  user wants to send web push via EngageLab, manage web device tags/aliases,
  schedule web pushes, use batch single push, group push, delete web users, query
  web push statistics, or integrate with EngageLab Web Push. Also trigger for
  "engagelab web push", "web push api", "browser push", "registration_id",
  "tag alias web", "scheduled web push", "batch web push", "web push callback", or
  "MTPush web".
---

# EngageLab Web Push API Skill

This skill enables interaction with the EngageLab Web Push REST API (MTPush Web). The service supports push notifications and in-app messages to web platforms only, with support for EngageLab channel and system channels (Chrome, Firefox, Safari, Edge, Opera).

It covers these areas:

1. **Create Push** — Send notification or message to single/multiple web devices (broadcast, tag, alias, registration_id)
2. **Batch Single Push** — Batch push by registration_id or alias (up to 500 per request)
3. **Group Push** — Push to all apps in a group
4. **Scheduled Tasks** — Create, get, update, delete scheduled web push tasks (single, periodical, intelligent)
5. **Tag & Alias** — Query/set/delete device tags and aliases; query tag count
6. **Delete User** — Delete a user (registration_id) and all associated data
7. **Statistics** — Message lifecycle stats (targets, sent, delivered, impressions, clicks by channel)
8. **Callback** — Webhook setup and signature verification

## Resources

### scripts/

- **`webpush_client.py`** — Python client class (`EngageLabWebPush`) wrapping create push, batch push (regid/alias), device get/set/delete, tag count, scheduled tasks CRUD, and message details. Handles Basic auth and typed error handling.

### references/

- **`error-codes.md`** — Web Push API error codes and descriptions
- **`http-status-code.md`** — HTTP status code specification
- **`callback-api.md`** — Callback address, validation, security (X-CALLBACK-ID, HMAC-SHA256)

Source API docs: `doc/webpush/REST API/` (REST API Overview, Create Push API, Batch Single Push API, Group Push API, Scheduled Tasks API, Tag Alias API, Delete User API, Statistics API, Callback API, HTTP Status Code).

## Authentication

All EngageLab Web Push API calls use **HTTP Basic Authentication**.

- **Base URL** (choose by data center):
  - Singapore: `https://webpushapi-sgp.engagelab.com`
  - Hong Kong: `https://webpushapi-hk.engagelab.com`
- **Header**: `Authorization: Basic base64(appKey:masterSecret)`
- **Content-Type**: `application/json`

Obtain **AppKey** and **Master Secret** from Console → Application Settings → Applica

_meta.json

{
  "ownerId": "kn75m99bcn64jm2ktahbyvjwf982p943",
  "slug": "engagelab-web-push",
  "version": "1.0.1",
  "publishedAt": 1774592591227
}

references/callback-api.md

# Callback API

Message status callbacks are sent to your business server so you can perform analytics and react to delivery/click events.

## Callback address

- There is no web UI for setting the callback URL. Contact EngageLab support to configure the callback address for your application.

## Address validity verification

When the callback URL is configured, the backend sends a **POST** request with a randomly generated 8-character string in the request body as `echostr`.

**Request body:**

```json
{
  "echostr": "12345678"
}
```

**Required response:** Return the value of `echostr` in the response **body** (plain text), e.g.:

```
12345678
```

Your server must respond with this value so the callback address is validated.

## Security (optional)

To verify that the callback is from EngageLab, configure a **callback username** and **callback secret** in the console. Then verify the `X-CALLBACK-ID` header.

**Header example:**

```
X-CALLBACK-ID: timestamp=1681991058;nonce=123123123123;username=test;signature=59682d71e2aa2747252e4e62c15f6f241ddecc8ff08999eda7e0c4451207a16b
```

- `timestamp` — Callback message timestamp.
- `nonce` — Random number.
- `username` — Callback username you configured.
- `signature` — Signature to verify.

**Signature algorithm:**

```
signature = HMAC-SHA256(secret, timestamp + nonce + username)
```

Use your configured **callback secret** as the HMAC key, and the string `timestamp + nonce + username` (concatenated) as the message. Compare the computed signature with the `signature` in the header.

## Response requirements

Your server must respond **within 3 seconds**:

- **Success:** HTTP status **200** or **204**. Response body can be empty.
- **Failure:** HTTP status **4xx** or **5xx**. You may return a JSON body, e.g.:

```json
{
  "code": 2002,
  "message": "error"
}
```

If you do not return 200/204 in time, EngageLab may retry; ensure your endpoint is idempotent.

## Callback payload (message body)

The callback POST body contains message status data (e.g. total, rows with message_id, from, to, server, channel, custom_args, itime, status). For full field definitions and status values, see `doc/webpush/REST API/Callback API.md`.

## Summary

1. Provide EngageLab with your callback URL.
2. Implement the echostr validation (return `echostr` in body).
3. Optionally verify `X-CALLBACK-ID` with HMAC-SHA256(secret, timestamp+nonce+username).
4. Respond with 200 or 204 within 3 seconds for success.

references/error-codes.md

# Web Push API Error Codes

Error codes returned in the response body when the Web Push API (and related APIs) fail.

## Create Push / Batch / Group Push — Common codes

| Code | Description | HTTP | Notes |
|------|-------------|------|--------|
| 20101 | The push parameter is invalid | 400 | Registration ID invalid or does not belong to current AppKey. |
| 21001 | Only HTTP Post methods are supported | 405 | Use POST, not GET. |
| 21002 | Required parameters are missing | 400 | Correct the request body. |
| 21003 | Invalid parameter value | 400 | Correct value or format. |
| 21004 | Verification failed | 401 | Check AppKey and Master Secret. |
| 21005 | The message body is too large | 400 | Notification length limit 2048 bytes (total message 4000 bytes). |
| 21008 | The app_key parameter is invalid | 400 | Check AppKey (e.g. extra spaces). |
| 21009 | Internal system error | 400 | Contact support. |
| 21011 | There are no push targets that meet the conditions | 400 | Check the `to` field. |
| 21015 | Request parameter verification failed | 400 | Unexpected parameters. |
| 21016 | Request parameter verification failed | 400 | Parameter type or length error. |
| 21030 | Internal service timeout | 503 | Retry later. |
| 23006 | Parameter error | 400 | e.g. big_push_duration exceeds 1440. |
| 23008 | Interface speed limit | 400 | QPS limit (500) reached. |
| 27000 | System memory error | 500 | Retry. |
| 27001 | Parameter error | 401 | Verification information empty. |
| 27008 | Parameter error | 401 | third_party_channel distribution set but notification alert empty. |
| 27009 | Parameter error | 401 | Invalid or empty distribution in third_party_channel. |
| 27002 | Unknown error | — | e.g. Delete User API. |
| 1003 | Invalid message override | — | override_msg_id not valid (e.g. not within 1 day). |

## Delete User

| Code | HTTP | Description |
|------|------|-------------|
| 27002 | — | unknown error. |

## Response format

Failed responses typically look like:

```json
{
  "error": {
    "code": 21003,
    "message": "Invalid parameter value"
  }
}
```

Or directly:

```json
{
  "code": 21003,
  "message": "Invalid parameter value"
}
```

Use the `code` and `message` fields for error handling in code.

references/http-status-code.md

# HTTP Status Code

HTTP return code specification for the EngageLab Web Push (MTPush) REST API.

## Status code definition

| Code | Description | Explanation |
|------|-------------|-------------|
| 200 | OK | Success. |
| 400 | Incorrect request | The request is invalid. The response body will explain the reason. |
| 401 | Not verified | No verification information or verification failed. |
| 403 | Rejected | The request was understood but not accepted. The response will explain. |
| 404 | Unable to find | The resource does not exist, or the requested format is not supported. |
| 405 | Request method not suitable | The operation does not support the request method. |
| 410 | Offline | The requested resource is offline. |
| 429 | Excessive requests | Rate limit exceeded. The response will explain. |
| 500 | Internal service error | An internal error occurred. Contact support. |
| 502 | Invalid proxy | The service server is offline or being upgraded. Try again later. |
| 503 | Service temporarily invalid | The server could not respond. Try again later. |
| 504 | Agent timeout | The server did not respond in time. Try again later. |

## Compliance

- Use 200 only for success. Do not use 200 for error responses.
- For business logic errors, use 4xx or 400.
- For server internal errors, use 5xx or 500.
- When a business error occurs, the response body must be JSON with error information (e.g. `code`, `message`).

Sponsored

Ads related to EngageLab Web Push and adjacent AI workflows.