DenithizGDG API

Developer Documentation

Everything you need to start integrating with the DenithizGDG API. This documentation includes endpoint definitions, authentication methods, and usage examples.

Key Concepts

Authentication

  • • Bearer token authentication required for all endpoints
  • • Tokens expire after configurable periods (default 24h)
  • • Rate limited by IP (100 requests/hour free tier)

Supported Endpoints

  • GET /user - Retrieve user info
  • POST /data - Create new data
  • DELETE /cache - Clear cache

Getting Started

Install SDK

npm install @denithizgdg/api-client
                        

Initialize with your API key from the dashboard. All requests can be made locally in sandbox mode before deployment.

Basic Usage

const client = new APIClient({
  apiKey: 'your_api_key',
  environment: 'sandbox' // or 'production'
});

const data = await client.getData({ query: 'test' });
                        

Endpoint Reference

GET /user

Retrieve user information and rate limit stats

// Request Authorization: Bearer APIKEY // Response { "status": "active", "remaining_calls": 95, "reset_time": "2025-09-21T06:00:00Z" }

POST /data

Create and store custom data payloads

// Request Authorization: Bearer APIKEY Content-Type: application/json { "content": "test payload", "tags": ["example"] } // Response { "receipt_id": "5f7b2e1c7d6f7", "timestamp": "2025-09-20T12:34:56Z" }

DELETE /cache

Clear cached data and session information

// Request Authorization: Bearer APIKEY // Response { "cleared_objects": 14, "timestamp": "2025-09-20T12:40:12Z" }

Developer Tips

Sandbox Mode

Use sandbox mode for testing to avoid rate limits on production endpoints

Error Handling

All errors return standardized JSON with error code, message, and request_id for support

Rate Limiting

Monitor remaining calls using the /user endpoint and implement exponential backoff