DocsAPI referenceAll pages

POST /channels/5a2c9e14-7f3b-4d86-a1e5-3b8d6c0f2a79/test

Request examples and the documented response.

Back to this endpoint in the API reference

curl

Request

curl -X POST "https://api.pagehum.com/v1/channels/5a2c9e14-7f3b-4d86-a1e5-3b8d6c0f2a79/test" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY"

JavaScript

Request

const response = await fetch("https://api.pagehum.com/v1/channels/5a2c9e14-7f3b-4d86-a1e5-3b8d6c0f2a79/test", {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.PAGEHUM_API_KEY}` },
});
const { ok, data, error } = await response.json();
if (!ok) throw new Error(error);

Response

Response

{
  "ok": true,
  "data": {
    "delivered": true,
    "httpStatus": 200,
    "error": null
  }
}