API Reference
Blackwalnut provides a REST API for managing all aspects of your licensing system. The API follows REST conventions and returns JSON responses.
Base URL
Authentication
Most API endpoints require authentication via Bearer token. You can create API keys from the settings page in your Blackwalnut dashboard.
Secret Keys (sk_*)
Full read/write access. Use for server-side integrations. Never expose in client code.
Public Keys (pk_*)
Read-only access. Safe for client-side use where needed.
Authorization: Bearer sk_live_your_api_key Response Format
All responses follow a consistent JSON structure:
Success Response
{
"data": {
"id": "app_abc123",
"name": "My App",
...
}
} List Response
{
"data": [...],
"meta": {
"total": 150,
"page": 1,
"per_page": 20
}
} Error Response
{
"error": {
"code": "validation_error",
"message": "Email is invalid",
"details": {
"email": ["is invalid"]
}
}
} API Endpoints
OpenAPI Specification
The full API specification is available in OpenAPI 3.0 format. Use it to generate client libraries or explore with Swagger UI.
Rate Limiting
Public endpoints (verification) are rate limited to prevent abuse:
- Verify endpoint: 100 requests/minute per IP
- Batch verify: 20 requests/minute per IP
Authenticated endpoints have higher limits based on your plan.