Skip to main content

Account Quota API

This API allows you to retrieve account quota details for a given company’s account.

Endpoint

  • URL: /api/account/quota
  • Method: GET

Request

  • Headers:
    • x-api-key (string, required): The API key for authentication.

Response

  • 200 OK:
    • Description: Quota details retrieved successfully.
    • Body:
      {
        "success": true,
        "result": {
          "total_quota": 1000,
          "quota_used": 500,
          "quota_remaining": 500,
          "plan_name": "basic"
        }
      }
      
  • 400 Bad Request:
    • Description: Invalid API key.
    • Body:
      {
        "success": false,
        "message": "Invalid API key"
      }
      
  • 500 Internal Server Error:
    • Description: Internal server error.
    • Body:
      {
        "success": false,
        "message": "Internal server error"
      }
      

Capture Screenshot Route

This endpoint allows you to capture a screenshot.

Endpoint

  • URL: /api/capture-screenshot
  • Method: POST

Request

  • Headers:
    • x-api-key (string, required): The API key for authentication.
  • Body:
    • Params (object, required): Parameters for capturing the screenshot.

Response

  • 200 OK:
    • Description: Screenshot captured successfully.
    • Body:
      {
        "pageResourceSizeinKB": 1000,
        "screenshotUrl": "https://example.com/screenshot.png",
        "statusCode": 200,
        "success": true,
        "taskDurationSec": 1.5
      }
      
  • 400 Bad Request:
    • Description: Invalid request.
    • Body:
      {
        "error": 400,
        "message": "Bad request"
      }
      
  • 401 Unauthorized:
    • Description: Unauthorized.
    • Body:
      {
        "error": 401,
        "message": "Unauthorized"
      }
      
  • 403 Forbidden:
    • Description: Forbidden.
    • Body:
      {
        "error": 403,
        "message": "Forbidden"
      }
      
  • 500 Internal Server Error:
    • Description: Internal server error.
    • Body:
      {
        "error": 500,
        "message": "Internal server error"
      }