Allegiance API
Build powerful integrations with the Allegiance Network. Access server data, statistics, and more through our secure REST API.
Authentication
All API requests must be authenticated using a Bearer token in the header. You can generate an API key from your dashboard settings.
curl -X GET "https://api.allegiance-network.com/v1/servers" \
-H "Authorization: Bearer YOUR_API_KEY"Keep your API keys secure. Never expose them in client-side code or public repositories.
Core Endpoints
Retrieve a paginated list of public servers ordered by rank.
Get detailed information about a specific server by ID.
Get the authenticated user's profile and settings.
Register a vote for a specific server (Rate limited).
Response Format
All responses are formatted in JSON. Successful requests will return a 200-level status code.
{
"data": {
"id": "1234-5678",
"name": "Awesome Community",
"members": 15420,
"tags": ["gaming", "social"]
},
"meta": {
"timestamp": "2024-03-21T10:00:00Z"
}
}Rate Limits
Headers are included in every response indicating your remaining quota.
Ready to Start Building?
Check out our roadmap to see what's coming next for the API and platform.
View Roadmap