crux.land

A free open-source registry for permanently hosting small scripts

Api
All endpoints are under the /api endpoint
GET /get/:id
returns the file associated with the id, optionally takes a file extension
GET /get/:alias@:tag
returns the file associated with the alias and tag, optionally takes a file extension
POST /add
Content-Type: application/json
NAMETYPEDESCRIPTION
namestringThe name of the script including extension
contentstringThe file content base64-encoded
upload a script.
POST /alias/request
Content-Type: application/json
NAMETYPEDESCRIPTION
aliasstringThe name of the alias
usernumberThe id of the user creating the alias
secretstringThe secret of the user creating the alias
Create an alias
POST /alias/release
Content-Type: application/json
NAMETYPEDESCRIPTION
aliasstringThe name of the alias to release with
usernumberThe id of the user creating the alias
secretstringThe secret of the user creating the alias
tagstringThe tag to release the alias with
scriptstringThe id of the script to release
Release an alias
POST /alias/list
Content-Type: application/json
NAMETYPEDESCRIPTION
usernumberThe id of the user
List all aliases belonging to a specific user
The following endpoints require admin privileges
POST /alias/requests
Content-Type: application/json
NAMETYPEDESCRIPTION
usernumberThe id of the admin user
secretstringThe secret of the admin user
Get a list of currently open alias requests
Content-Type: application/json
NAMETYPEDESCRIPTION
POST /alias/approve
Content-Type: application/json
NAMETYPEDESCRIPTION
usernumberThe id of the admin user
secretstringThe secret of the admin user
aliasstringThe name of the alias to approve
ownernumberThe id of the user that owns the alias
Approve a pending alias
POST /alias/deny
Content-Type: application/json
NAMETYPEDESCRIPTION
usernumberThe id of the admin user
secretstringThe secret of the admin user
aliasstringThe name of the alias to approve
ownernumberThe id of the user that owns the alias
Deny a pending alias
© 2020-2021 Denosaurs
GitHubDiscordTwitter