mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-17 18:49:15 +00:00
Documentation: Add GET /chats/:id
This commit is contained in:
parent
8d5597ff68
commit
8cc8d960af
|
@ -43,12 +43,17 @@ you can call:
|
||||||
|
|
||||||
`POST /api/v1/pleroma/chats/by-account-id/{account_id}`
|
`POST /api/v1/pleroma/chats/by-account-id/{account_id}`
|
||||||
|
|
||||||
The account id is the normal FlakeId of the usre
|
The account id is the normal FlakeId of the user
|
||||||
|
|
||||||
```
|
```
|
||||||
POST /api/v1/pleroma/chats/by-account-id/someflakeid
|
POST /api/v1/pleroma/chats/by-account-id/someflakeid
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If you already have the id of a chat, you can also use
|
||||||
|
|
||||||
|
```
|
||||||
|
GET /api/v1/pleroma/chats/:id
|
||||||
|
```
|
||||||
|
|
||||||
There will only ever be ONE Chat for you and a given recipient, so this call
|
There will only ever be ONE Chat for you and a given recipient, so this call
|
||||||
will return the same Chat if you already have one with that user.
|
will return the same Chat if you already have one with that user.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue