Skip to main content

API Tokens Management

Generate and manage API tokens for customers.

Generate Token

Endpoint

POST /api/v3/reseller/tokens

Request

{
"customer_id": 123,
"name": "Production API Key",
"type": "live"
}

Response

{
"token": "sk_live_abc123...",
"customer_id": 123,
"name": "Production API Key",
"type": "live",
"created_at": "2025-01-17T10:00:00Z"
}

Examples

Generate Token

response = requests.post(
'https://api.scriptix.io/api/v3/reseller/tokens',
headers={'Authorization': 'Bearer YOUR_API_KEY'},
json={
'customer_id': 123,
'name': 'Production API Key',
'type': 'live'
}
)

token = response.json()
print(f"API Key: {token['token']}")