Re: Re: HTTP API available on clrghouz
By: slacker to deon on Sun Aug 24 2025 06:48 am
Hey Slacker,
Nice!! I'd be interested to give it a try!
Is there a new section on the page for the API and create the bearer token? I just checked and can't seem to find it.
The Bearer token is actually associated with your BBS (aka "System" in clrghouz speak), you should see it when you click on your BBS.
I need to put up a swagger UI that gives you the documentation that you need, but once you have your token you can hit:
GET: /api/whoami
GET/POST: /api/mail/new
When posting a message you need "to", "from", "subject", "date" and a base64encoded "body". Date needs to be in ISO 8601 format, eg:
2025-08-21T10:15:19.000000+10:00
If your post is successful, you should get a 200 with a msgid returned, otherwise an error message, explaining why.
I havent integrated the posting into clrghouz's response engine, so sending a message to clrghouz (eg: ping/areafix) wont respond - but I'll add that in due course.
Let me know if you have stuck or something doesnt work as expected.
...δεσ∩
--- SBBSecho 3.27-Linux
* Origin: I'm playing with ANSI+videotex - wanna play too? (21:2/116)