Complete reference for the RealmKit Hub REST API. Build integrations, tools, and custom interfaces using these endpoints.
All API endpoints are relative to this base URL
https://api.realmkit.com/v1
https://api.realmkit.com/v1
https://staging-api.realmkit.com/v1
Most endpoints are public, but some require authentication
Include API key in Authorization header
Authorization: Bearer your-api-key-here
OAuth flow for user authentication
Authorization: Bearer oauth-access-token
JSON Web Token from login
Authorization: Bearer jwt-token
/api/realms
List all available realms with optional filtering
Name | Type | Location | Description |
---|---|---|---|
category | string | query | Filter by category (saas, blog, api, etc.) |
tags | string | query | Comma-separated list of tags |
limit | number | query | Maximum number of results (default: 20) |
offset | number | query | Number of results to skip (default: 0) |
search | string | query | Search term for name and description |
featured | boolean | query | Only return featured realms |
{
"realms": [
{
"id": "string",
"name": "string",
"slug": "string",
"description": "string",
"category": "string",
"tags": [
"string"
],
"downloadCount": "number",
"starCount": "number",
"author": {
"username": "string",
"name": "string",
"image": "string"
},
"createdAt": "string",
"updatedAt": "string"
}
],
"pagination": {
"total": "number",
"limit": "number",
"offset": "number",
"hasMore": "boolean"
}
}
curl -X GET \
"https://api.realmkit.com/v1/api/realms" \
-H "Content-Type: application/json"
/api/realms/{slug}
Get detailed information about a specific realm
Name | Type | Location | Description |
---|---|---|---|
slug | string | path | Unique realm identifier |
{
"id": "string",
"name": "string",
"slug": "string",
"description": "string",
"longDescription": "string",
"category": "string",
"tags": [
"string"
],
"downloadCount": "number",
"starCount": "number",
"version": "string",
"license": "string",
"author": {
"username": "string",
"name": "string",
"image": "string",
"bio": "string"
},
"features": {
"auth": "boolean",
"payments": "boolean",
"database": "boolean"
},
"requirements": {
"node": "string",
"npm": "string"
},
"repository": "string",
"demo": "string",
"createdAt": "string",
"updatedAt": "string"
}
curl -X GET \
"https://api.realmkit.com/v1/api/realms/{slug}" \
-H "Content-Type: application/json"
/api/realms/{slug}/download
Record a download and get download URL
Name | Type | Location | Description |
---|---|---|---|
slug | string | path | Realm identifier |
{
"downloadUrl": "string",
"expiresAt": "string"
}
curl -X POST \
"https://api.realmkit.com/v1/api/realms/{slug}/download" \
-H "Content-Type: application/json"
/api/realms
Create a new realm (requires authentication)
Name | Type | Location | Description |
---|---|---|---|
name required | string | query | Realm name |
description required | string | query | Short description |
category required | string | query | Primary category |
tags | array | query | Tags for discovery |
visibility | string | query | public, unlisted, or private |
license | string | query | Software license |
repository | string | query | Source code repository URL |
{
"id": "string",
"slug": "string",
"uploadUrl": "string",
"uploadToken": "string"
}
curl -X POST \
"https://api.realmkit.com/v1/api/realms" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer your-api-key"
/api/collections
Get curated collections of realms
Name | Type | Location | Description |
---|---|---|---|
featured | boolean | query | Only featured collections |
{
"collections": [
{
"id": "string",
"name": "string",
"description": "string",
"realms": [
"string"
],
"createdBy": "string",
"createdAt": "string"
}
]
}
curl -X GET \
"https://api.realmkit.com/v1/api/collections" \
-H "Content-Type: application/json"
/api/stats
Get platform statistics
{
"totalRealms": "number",
"totalDownloads": "number",
"totalUsers": "number",
"categories": {
"saas": "number",
"blog": "number",
"api": "number",
"ecommerce": "number"
}
}
curl -X GET \
"https://api.realmkit.com/v1/api/stats" \
-H "Content-Type: application/json"
Standard HTTP status codes used by the API
Request completed successfully
Resource created successfully
Invalid request parameters
Authentication required
Insufficient permissions
Resource does not exist
Too many requests
Internal server error
API usage limits and headers
X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 999
X-RateLimit-Reset: 1640995200
Official libraries and tools for API integration
Official Node.js and browser SDK
npm install @realmkit/sdk
Python library for API integration
pip install realmkit
Alternative GraphQL endpoint
Continue exploring the API documentation