this post was submitted on 27 Jul 2023
10 points (91.7% liked)
Lemmy Support
4731 readers
23 users here now
Support / questions about Lemmy.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Since your screen shot seems to be API documentation, FYI: [email protected] community.
auth is listed in your screenshot, that's the login session JWT token. Use the login API call to get the token before you call CreatePost.
From what I understand, a key unique to bots is only in the proposal stage. Convention seems to be to create a regular end-user account through sign-up process and hit the checkmark on the profile that it is a bot. There may be instance-specific rules.
I have no idea what a honeypot on CreatePost does.
FYI: https://en.m.wikipedia.org/wiki/Honeypot_(computing)
But there should also be a separate endpoint to get an auth token. (I don't remember it off the top of my head). Then your bot should store that somewhere and send it as the
auth
parameter in every request.I know what a honeypot is ;) It exists outside computing, such as spy vs. spy.
What I have no idea of is what Lemmy does internally with a honeypot post it creates. Auto-report comments on them?
https://github.com/LemmyNet/lemmy/blob/d909f3455ddb89d45f35c78c4ce96bd0896469b1/crates/api_common/src/utils.rs#L302
If the honeypot is set the request is simply discarded.