egr3osb

API Reference

Technical documentation for all available endpoints and SDK methods

Authentication

GET

/auth/token

Obtain an access token using client credentials

Authentication

Client ID: $CLIENT_ID
Client Secret: $CLIENT_SECRET
                    

Example Response

{
  "access_token": "abc123xyz",
  "token_type": "bearer",
  "expires_in": 3600
}
                    

Data Management

POST /data

Create a new data record

Request Body

{
  "type": "resource",
  "attributes": {
    "name": "string",
    "description": "text"
  }
}
                    

Example Response

{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "type": "resource",
  "_links": {
    "self": "https://egr3osb.io/data/550e8400-e29b-41d4-a716-446655440000"
  }
}
                    

Analytics

GET

/analytics/stats

Retrieve key performance metrics and usage stats

Query Parameters

  • start_date - Required. Format: YYYY-MM-DD
  • end_date - Required. Format: YYYY-MM-DD
  • granularity - Optional. Values: daily, weekly, monthly

Example Response

{
  "total_requests": 165432,
  "average_response_time": 245,
  "error_rate": 0.23,
  "peak_usage": "2025-09-21T14:30:00Z"
}