Documentation · API reference
POST
/api/v1/channels/{id}/testSend a test message to one channel, now, and say how it went
This page as Markdown, or in an AI chatMore ways to read this page
Send a test message to one channel, now, and say how it went.
# Send a test message to one channel, now, and say how it went
> tidekeeper's API reference: https://tidekeeper.eu/docs/api/post-channels-id-test
`POST /api/v1/channels/{id}/test`
Send a test message to one channel, now, and say how it went.
## The answer
200, `TestResult`: How "Test" on a channel went (NC-08).
- `error` (string or null)
- `sent` (boolean, needed)
## Asking
```sh
curl -X POST https://tidekeeper.eu/api/v1/channels/{id}/test \
-H "Authorization: Bearer $TIDEKEEPER_TOKEN"
```
The answer
Status 200
TestResult How "Test" on a channel went (NC-08).
- error
- string or null
- sent
- booleanneeded
Asking
curl -X POST https://tidekeeper.eu/api/v1/channels/{id}/test \ -H "Authorization: Bearer $TIDEKEEPER_TOKEN"
const answer = await fetch("https://tidekeeper.eu/api/v1/channels/{id}/test", { method: "POST", headers: { Authorization: `Bearer ${process.env.TIDEKEEPER_TOKEN}`, }, }).then((r) => r.json());