Leader
v1.0.0 Core API Reference

Integrating 'Leader'

Connect your native platforms, mobile codebases, or web frameworks directly to leader.io-serv.com.

Score Ingestion Endpoint

POSThttps://leader.io-serv.com/api/scores/submit

Client Implementation Frameworks

# Godot 4.x High Score Submission Example
extends Node

const API_URL = "https://leader.io-serv.com/api/scores/submit"
const BOARD_UUID = "YOUR_SECRET_BOARD_UUID"

func submit_score(player_name: String, score: int) -> void:
    var http_client = HTTPRequest.new()
    add_child(http_client)
    
    var payload = JSON.stringify({
        "uuid": BOARD_UUID,
        "playerName": player_name,
        "score": score
    })
    
    var headers = ["Content-Type: application/json"]
    http_client.request(API_URL, headers, HTTPClient.METHOD_POST, payload)