Xpersona
E

EngageLab App Push

CLAWHUB · Unverified

Call EngageLab App Push REST APIs to send push notifications and in-app messages to Android, iOS, and HarmonyOS devices; manage tags and aliases; create sche...

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.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-app-push
  1. Install using `clawhub skill install s17145xn9q0rxevzd3kmwce18s83pakw:engagelab-app-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-app-push before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-devengagelab-engagelab-app-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

47,511 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: engagelab-apppush
description: >
  Call EngageLab App Push REST APIs to send push notifications and in-app messages
  to Android, iOS, and HarmonyOS devices; manage tags and aliases; create scheduled
  tasks and push plans; batch push; recall messages; query statistics; and
  configure callbacks. Use this skill when the user wants to send push notifications
  via EngageLab, manage device tags/aliases, schedule pushes, use batch single push,
  group push, message recall, delete users, query push statistics, validate push
  requests, upload images for OPPO, use push-to-speech, or integrate with EngageLab
  App Push. Also trigger for "engagelab push", "app push api", "push notification",
  "registration_id", "tag alias", "scheduled push", "push plan", "batch push",
  "message recall", "push statistics", "push callback", or "MTPush".
---

# EngageLab App Push API Skill

This skill enables interaction with the EngageLab App Push REST API (MTPush). The service supports push notifications and in-app messages to Android, iOS, and HarmonyOS, with multi-vendor channel support (FCM, Huawei, Xiaomi, OPPO, vivo, Meizu, Honor, etc.).

It covers these areas:

1. **Create Push** — Send notification or message to single/multiple devices (broadcast, tag, alias, registration_id, segment)
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. **Push Plan** — Create/update/list push plans and query msg_ids by plan
5. **Scheduled Tasks** — Create, get, update, delete scheduled push tasks (single, periodical, intelligent)
6. **Tag & Alias** — Query/set/delete device tags and aliases; query tag count
7. **Message Recall** — Recall a pushed message (within one day)
8. **Delete User** — Delete a user (registration_id) and all associated data
9. **Statistics** — Message lifecycle stats, report APIs
10. **Callback** — Webhook setup and signature verification
11. **Test Push** — Validate push request without sending
12. **Image API** — OPPO big/small picture upload
13. **Push-to-Speech** — Create/update voice broadcast files

## Resources

### scripts/

- **`push_client.py`** — Python client class (`EngageLabPush`) wrapping create push, batch push (regid/alias), device get/set/delete, tag count, message recall, validate push, push plan create/list, scheduled tasks CRUD, and message detail stats. Handles Basic auth and typed error handling. Use as a helper or import into the user's project.

### references/

- **`error-codes.md`** — 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/apppush/REST API/` (Create Push API, Batch Single Push API, Group Push API, Push Plan API, Scheduled Tasks API, Tag Alias API, Message Recall, Delete User API, Statistics API, Callback API, Test

_meta.json

{
  "ownerId": "kn75m99bcn64jm2ktahbyvjwf982p943",
  "slug": "engagelab-app-push",
  "version": "1.0.1",
  "publishedAt": 1774592621697
}

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. msg_id, event type, delivery/click status). For full field definitions and event types, see `doc/apppush/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

# App Push API Error Codes

Error codes returned in the response body when the Push API (and related APIs) fail. The HTTP status is often 400 or 401.

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

| Code | Description | HTTP | Notes |
|------|-------------|------|--------|
| 20101 | Invalid push parameters | 400 | Registration ID invalid or does not belong to current AppKey. |
| 21001 | Only supports HTTP Post method | 405 | Use POST, not GET. |
| 21002 | Required parameter 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 | Message body too large | 400 | Notification/Message length limit 4000 bytes. |
| 21008 | Invalid app_key parameter | 400 | Check AppKey (e.g. extra spaces). |
| 21009 | Internal system error | 400 | Contact support. |
| 21011 | No suitable push target found | 400 | Check the `to` field. |
| 21015 | Request parameter validation failed | 400 | Unexpected parameters. |
| 21016 | Request parameter validation failed | 400 | Parameter type or length error. |
| 21030 | Internal service timeout | 503 | Retry later. |
| 21038 | Push permission error | 401 | VIP expired or not activated. |
| 21050 | Incorrect live_activity event parameter | 400 | Event must be "start", "update", or "end". |
| 21051 | Incorrect live_activity audience parameter | 400 | For creation, target can only be broadcast or registration_id. |
| 21052 | Incorrect live_activity attributes-type | 400 | When event=start, attributes-type cannot be empty. |
| 21053 | Incorrect live_activity content-state | 400 | content-state cannot be empty. |
| 21054 | live_activity parameter error | 400 | notification, message, live_activity cannot coexist. |
| 21055 | live_activity ios non-p8 certificate | 400 | Live activity only supports P8 certificate. |
| 21056 | live_activity only supports ios platform | 400 | platform must be ios. |
| 21057 | voip not allowed with other message types | 400 | voip cannot coexist with notification/message/live_activity. |
| 21058 | voip only supports ios platform | 400 | platform must be ios. |
| 21059 | This message type does not support big_push_duration | 401 | — |
| 21306 | Notification and custom message cannot be pushed simultaneously | 401 | — |
| 23006 | Parameter error | 400 | e.g. big_push_duration exceeds 1440. |
| 23008 | Interface rate limited | 400 | QPS limit (500) reached. |
| 23009 | Push permission error | 400 | Current IP not in application IP whitelist. |
| 27000 | Internal 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. |
| 27303 | Empty plan id | — | Push Plan API. |
| 27002 | Unknown error | — | e.g. 

references/http-status-code.md

# HTTP Status Code

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

## Status code definition

| Code | Description | Explanation |
|------|-------------|-------------|
| 200 | OK | Success. |
| 400 | Bad 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 | Not found | The resource does not exist, or the requested format is not supported. |
| 405 | Method not allowed | The interface does not support the request method. |
| 410 | Gone | The requested resource is no longer available. |
| 429 | Too many requests | Rate limit exceeded. The response will explain. |
| 500 | Internal server error | An internal error occurred. Contact support. |
| 502 | Bad gateway | The service server is offline or being upgraded. Try again later. |
| 503 | Service unavailable | The server could not respond. Try again later. |
| 504 | Gateway timeout | The server did not respond in time. Try again later. |

## Specifications

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

Sponsored

Ads related to EngageLab App Push and adjacent AI workflows.