Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

linkymc/Panel

Repository files navigation

Linky

The panel for Linky, a Discord x Minecraft linking plugin.

API Documentation

Linky provides some APIs for implementing Linky into your own systems. Each API endpoint requires an Authorization header, with the instances API Key as the bearer token. The production API url is https://linky.astrid.sh/api

User API

Fetch a user
```http GET /users/[discord id | minecraft uuid] ```

Example response

{
  "success": true,
  "isInGuild": false,
  "username": "UwUAroze",
  "uuid": "901b391a-dadb-4702-8094-7f3a557014c9",
  "discordId": "273524398483308549",
  "id": "clivoum7n000008kv3ule2lyg"
}
Unlink User
DELETE /users/[discord id | minecraft uuid]

Example response

{
  "success": true
}

Session API

Fetch a session
GET /sessions/[session id]

Example response

{
  "username": "jadezinnia",
  "discordId": "714383009310048267",
  "uuid": "9179f482-4c78-4e5d-a17a-462186edcff0",
  "id": "clivp0rxr000108kv1g61gljh",
  "createdAt": "1686746047",
  "status": "pending"
}

Tech