Quick Start

Good to know: A quick start guide can be good to help folks get up and running with your API in a few steps. Some people prefer diving in with the basics rather than meticulously reading every page of documentation!

Obtaining an API key

On your discord server, use command sl.api to generate API key. You should be owner of guild to perform this command. Be sure you coppy it, before deleting ephermal message, since you will be unable to regenerate it in the future

Make your first request

To make your first request, send an authenticated request to the pets endpoint. This will retrieve premium subscription status

Get premium status

POST https://slt.skylineeu.xyz/getPremium

Retrieve premium subscription status

1704826395

Take a look at how you might call this method using our official libraries, or via curl:

HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
        .uri(URI.create("https://api.skylineeu.xyz/getPremium"))
        .header("Authorization", "YOUR_API_KEY")
        .POST(HttpRequest.BodyPublishers.noBody())
        .build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());

Last updated