mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
Add an endpoint to view your own system
This commit is contained in:
parent
cc31664f8b
commit
39152dbd27
2 changed files with 28 additions and 0 deletions
|
|
@ -50,6 +50,27 @@ The following three models (usually represented in JSON format) represent the va
|
|||
|
||||
## Endpoints
|
||||
|
||||
### `GET /s`
|
||||
**Requires authentication.**
|
||||
|
||||
Returns information about your own system.
|
||||
|
||||
#### Example request
|
||||
GET https://api.pluralkit.me/v1/s
|
||||
|
||||
#### Example response
|
||||
```json
|
||||
{
|
||||
"id": "abcde",
|
||||
"name": "My System",
|
||||
"description": "This is my system description. Yay.",
|
||||
"tag": "[MySys]",
|
||||
"avatar_url": "https://path/to/avatar/image.png",
|
||||
"tz": "Europe/Copenhagen",
|
||||
"created": "2019-01-01T14:30:00.987654Z"
|
||||
}
|
||||
```
|
||||
|
||||
### `GET /s/<id>`
|
||||
Queries a system by its 5-character ID, and returns information about it. If the system doesn't exist, returns `404 Not Found`.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue