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.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

Where can I get the auth key or is this just the password of the registered bot? Also what is honeypot good for?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 2 years ago* (last edited 2 years ago) (4 children)

Since your screen shot seems to be API documentation, FYI: [email protected] community.

Where can I get the auth key or is this just the password

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.

[–] marsara9 3 points 2 years ago (2 children)

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.

[–] [email protected] 2 points 2 years ago (1 children)

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?

load more comments (1 replies)