Developer API

TWIXX API

Integrate TWIXX into your own applications. Manage scripts, generate keys, and verify access programmatically.

Fast & Reliable

Low-latency API responses with 99.9% uptime guarantee.

Secure

API tokens with granular permissions and optional expiry.

Easy Integration

RESTful API with JSON responses. Works with any language.

API Keys

Sign in to manage API keys

Sign In

Authentication

Include your API key in the request header:

Authorization: Bearer twx_your_api_key_here

Or use the X-API-Key header.

Base URL

https://twixxhub.com
GET/api/v1/scriptsAuth Required

List all your scripts

Response

{
  "success": true,
  "data": [
    {
      "id": "uuid",
      "script_id": "abc123",
      "script_name": "My Script",
      "description": "...",
      "is_active": true,
      "created_at": "2025-01-01T00:00:00Z"
    }
  ],
  "meta": { "count": 1 }
}
GET/api/v1/keysAuth Required

List all keys for your scripts

Query Parameters

NameTypeRequiredDescription
script_idstringNoFilter by script ID

Response

{
  "success": true,
  "data": [
    {
      "id": "uuid",
      "key": "XXXX-XXXX-XXXX-XXXX",
      "hwid": null,
      "script_id": "abc123",
      "expires_at": "2025-01-02T00:00:00Z",
      "is_active": true,
      "total_uses": 5
    }
  ]
}
POST/api/v1/keysAuth Required

Create a new key

Request Body (JSON)

NameTypeRequiredDescription
script_idstringYesThe script ID to create the key for
duration_hoursnumberNoKey duration in hours (default: 24)
hwidstringNoPre-bind to a specific HWID
notesstringNoOptional notes

Response

{
  "success": true,
  "data": {
    "id": "uuid",
    "key": "XXXX-XXXX-XXXX-XXXX",
    "script_id": "abc123",
    "expires_at": "2025-01-02T00:00:00Z"
  }
}
DELETE/api/v1/keysAuth Required

Revoke a key

Query Parameters

NameTypeRequiredDescription
idstringYesThe key ID to revoke

Response

{ "success": true }
POST/api/v1/verify

Verify a key (can be used without auth for basic verification)

Request Body (JSON)

NameTypeRequiredDescription
keystringYesThe key to verify
hwidstringNoDevice HWID for binding
script_idstringNoSpecific script ID to verify against

Response

{
  "valid": true,
  "data": {
    "key_id": "uuid",
    "script_id": "abc123",
    "expires_at": "2025-01-02T00:00:00Z",
    "hwid_locked": false
  }
}

Code Examples

cURL

curl -X GET "https://twixxhub.com/api/v1/scripts" \
  -H "Authorization: Bearer twx_your_api_key"

JavaScript

const response = await fetch("https://twixxhub.com/api/v1/scripts", {
  headers: {
    "Authorization": "Bearer twx_your_api_key"
  }
});
const data = await response.json();

Python

import requests

response = requests.get(
    "https://twixxhub.com/api/v1/scripts",
    headers={"Authorization": "Bearer twx_your_api_key"}
)
data = response.json()