Getting Started

This guide helps you start using the empowsec Reseller API in a few minutes.

Prerequisites

  • An active reseller account with API access enabled.
  • An API key or OAuth2 client credentials.
  • The scopes required for the endpoints you want to call.

Step 1: Get Your API Credentials

  1. Sign in to the reseller portal.
  2. Open Settings > API Keys.
  3. Create a key, assign the required scopes, and copy it immediately.
  4. Store the key in a secret manager or environment variable.

Security Notice

Never share API keys or commit them to version control. Rotate keys regularly and remove unused credentials.

Step 2: Make Your First Request

Fetch the list of companies to confirm that authentication, networking, and permissions are working.

curl -X GET "https://api.empowsec.com/v1/reseller/companies" 
  -H "Authorization: Bearer YOUR_API_KEY" 
  -H "Accept: application/json"

Step 3: Understand the Response

List responses return a data array and pagination metadata.

{
  "data": [
    {
      "id": 1,
      "name": "Acme Corporation",
      "contact_email": "admin{'@'}example.com",
      "status": "active",
      "seat_limit": 100,
      "seat_limit_type": "hard",
      "seats_used": 45
    }
  ],
  "meta": {
    "current_page": 1,
    "last_page": 1,
    "per_page": 20,
    "total": 1
  }
}

Next Steps

Common Issues

StatusLikely Cause
401 UnauthorizedThe key is missing, incorrect, expired, or not sent with the Bearer prefix.
403 ForbiddenThe credential does not have the required scope or API access is disabled.
429 Too Many RequestsThe client exceeded the rate limit and should retry with backoff.