API Reference

Complete reference for all ShambaRecords API endpoints

Base URL

All API requests should be made to:

https://api.shambarecords.com

Common Headers

HeaderRequiredDescription
X-API-KeyYesYour API key (public or secret)
Content-TypePOST/PUTapplication/json
X-SignatureSecret KeyHMAC signature (required for secret key requests)
X-Signature-TimestampSecret KeyUnix timestamp (required for secret key requests)

Response Format

All API responses follow a consistent JSON structure:

Success Response

{
  "data": {
    // Response data here
  },
  "meta": {
    "page": 1,
    "page_size": 20,
    "total": 100,
    "total_pages": 5
  }
}

Response Fields:

  • data - The requested data or resource
  • meta - Metadata about the response (pagination info, etc.)

Error Response

{
  "error": "bad_request",
  "message": "Invalid product UUID format",
  "code": "INVALID_UUID",
  "details": {
    "field": "product_uuid",
    "received": "invalid-uuid"
  }
}

Error Fields:

  • error - Error category (bad_request, unauthorized, etc.)
  • message - Human-readable error message
  • code - Machine-readable error code
  • details - Additional context about the error (optional)

Pagination

List endpoints support pagination using query parameters:

ParameterDefaultDescription
page1Page number to retrieve
page_size20Number of items per page (max: 100)

The meta object in the response contains pagination information:

  • page - Current page number
  • page_size - Items per page
  • total - Total number of items
  • total_pages - Total number of pages

HTTP Status Codes

Status CodeMeaning
200 OKRequest succeeded
201 CreatedResource created successfully
400 Bad RequestInvalid request parameters or body
401 UnauthorizedAuthentication failed or missing credentials
403 ForbiddenInsufficient permissions for requested resource
404 Not FoundRequested resource does not exist
429 Too Many RequestsRate limit exceeded
500 Internal Server ErrorServer error occurred
503 Service UnavailableService temporarily unavailable

API Endpoints

Explore detailed documentation for each API resource: