Getting Started

To use the Stealthbyte API, you'll need to authenticate your requests using an API key or OAuth2.

# Base URL
https://stealthbyte.cc/api

# Example request
curl -H "Authorization: Bearer YOUR_API_KEY" \
     https://stealthbyte.cc/api/user

Authentication

API Keys

Generate API keys from your developer dashboard.

# Using API Key in header
Authorization: Bearer sk_live_xxxxxxxxxxxxx

OAuth2

For user-based access, use our OAuth2 implementation.

# Authorization URL
https://stealthbyte.cc/oauth/authorize?
    client_id=YOUR_CLIENT_ID&
    redirect_uri=YOUR_REDIRECT_URI&
    response_type=code&
    scope=read

API Endpoints

GET /api/user

Get current user information

Response:
{
    "id": 1,
    "username": "john",
    "email": "john@example.com"
}

GET /api/projects

List all active projects

GET /api/projects/:id

Get project details by ID

Rate Limits

  • API Keys: 1000 requests per minute
  • OAuth: 500 requests per minute

Error Handling

Error Response:
{
    "error": "invalid_token",
    "error_description": "Token has expired"
}

Status Codes:
- 400: Bad Request
- 401: Unauthorized
- 403: Forbidden
- 404: Not Found
- 429: Rate Limited
- 500: Server Error