aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-05-10 13:27:40 +0200
committerlain <lain@soykaf.club>2020-05-10 13:27:40 +0200
commit8cc8d960af87cdc1e2398a8470155b0930f43f5c (patch)
tree9b052ed98c4dbbd86a4c0f1d34a45ae6122d82cf
parent8d5597ff68de22ee7b126730467649ada248aaf7 (diff)
downloadpleroma-8cc8d960af87cdc1e2398a8470155b0930f43f5c.tar.gz
Documentation: Add GET /chats/:id
-rw-r--r--docs/API/chats.md9
1 files changed, 7 insertions, 2 deletions
diff --git a/docs/API/chats.md b/docs/API/chats.md
index 1f6175f77..ed160abd9 100644
--- a/docs/API/chats.md
+++ b/docs/API/chats.md
@@ -43,12 +43,17 @@ you can call:
`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
```
+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
will return the same Chat if you already have one with that user.