diff options
author | Alex Gleason <alex@alexgleason.me> | 2022-02-03 14:37:29 -0600 |
---|---|---|
committer | Alex Gleason <alex@alexgleason.me> | 2022-02-03 14:37:29 -0600 |
commit | 9cea98b7e4170f4b194142391b9c4a069c3a5945 (patch) | |
tree | 916f75f19e53c8f4d29e5c6315a6e0fb9499e55b /docs/development | |
parent | fed5c2871d3fb59f703265aec8675a671c3d5971 (diff) | |
parent | 60deddb7e5b8bb10037cca6e6f11a5bbef298d39 (diff) | |
download | pleroma-9cea98b7e4170f4b194142391b9c4a069c3a5945.tar.gz |
Merge remote-tracking branch 'origin/develop' into operation-warpsneed
Diffstat (limited to 'docs/development')
-rw-r--r-- | docs/development/API/pleroma_api.md | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/docs/development/API/pleroma_api.md b/docs/development/API/pleroma_api.md index 2304291e5..0d15384b9 100644 --- a/docs/development/API/pleroma_api.md +++ b/docs/development/API/pleroma_api.md @@ -660,3 +660,38 @@ Emoji reactions work a lot like favourites do. They make it possible to react to "url": "https://example.com/media/backups/archive-foobar-20200910T161803-QUhx6VYDRQ2wfV0SdA2Pfj_2CLM_ATUlw-D5l5TJf4Q.zip" }] ``` + +## `GET /api/oauth_tokens` +### Retrieve a list of active sessions for the user +* Method: `GET` +* Authentication: required +* Params: none +* Response: JSON +* Example response: + +```json +[ + { + "app_name": "Pleroma FE", + "id": 9275, + "valid_until": "2121-11-24T15:51:08.234234" + }, + { + "app_name": "Patron", + "id": 8805, + "valid_until": "2121-10-26T18:09:59.857150" + }, + { + "app_name": "Soapbox FE", + "id": 9727, + "valid_until": "2121-12-25T16:52:39.692877" + } +] +``` + +## `DELETE /api/oauth_tokens/:id` +### Revoke a user session by its ID +* Method: `DELETE` +* Authentication: required +* Params: none +* Response: HTTP 200 on success, 500 on error |