Back

API Documentation

CDK Activator Public API

Base URL

https://cdkactivator.online/api

All endpoints accept both application/json and application/x-www-form-urlencoded.

Authentication

All endpoints require an API key passed via the X-API-Key header.

X-API-Key: cdk_xxxxxxxxxxxxxxxx
POST/check

Check the status of a CDK code before activation.

Parameters

uniqueCodestringrequiredYour unique CDK code

Request Example

curl -X POST https://cdkactivator.online/api/check \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{"uniqueCode": "YOUR_CDK_CODE"}'

Response

{
  "status": "available",
  "uniqueCode": "YOUR_CDK_CODE"
}
POST/submit

Submit a ChatGPT Plus activation order for processing.

Parameters

uniqueCodestringrequiredYour unique CDK code
sessionDatastringrequiredChatGPT session JSON (must contain accessToken)
notesstringYour reference/order ID (max 100 chars)
webhookUrlstringHTTPS URL for order status notifications

Request Example

curl -X POST https://cdkactivator.online/api/submit \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
    "uniqueCode": "YOUR_CDK_CODE",
    "sessionData": "{\"accessToken\":\"ey...\"}"
  }'

Response

{
  "status": "processing",
  "uniqueCode": "YOUR_CDK_CODE",
  "message": "Order submitted successfully"
}

Status Values

availableCode not used yet
pendingOrder submitted, not yet assigned to worker
processingOrder being processed
completedOrder successfully completed
failedOrder failed (see error field)

Error Codes

AUTH_ERRORInvalid or missing API key
MISSING_CODEuniqueCode not provided
MISSING_SESSIONsessionData not provided
INVALID_SESSIONInvalid session JSON format
INVALID_WEBHOOKInvalid webhook URL (must be HTTPS)
INVALID_CODECDK code not found
CODE_USEDCDK already used
DATABASE_ERRORDatabase operation failed
WORKFLOW_ERRORFailed to start processing