Overview
API endpoints manage the namespaces that contain your keys, providing CRUD operations for API management and key listing.Key Changes in v2:
- Response format: Direct responses →
{meta, data}
envelope - HTTP methods: Some GET → POST changes for consistency
- Enhanced responses: Request IDs for debugging and pagination metadata
- Consistent structure: All responses follow same envelope pattern
Migration Impact:
- Existing in v1: Full API CRUD operations and key listing functionality
- Enhanced in v2: Improved response format, better pagination, and enhanced filtering
- Maintained in v2: All core API management functionality with consistent request patterns
POST /v1/apis.createApi → POST /v2/apis.createApi
Key Changes:- Response format: Direct response →
{meta, data}
envelope
- Request Format
- Response Changes
- cURL Examples
Create API Request
GET /v1/apis.getApi → POST /v2/apis.getApi
Key Changes:- HTTP method: GET → POST
- Request body format required instead of query parameters
- Response format: Direct response →
{meta, data}
envelope
- Method Change
- Response Changes
- Complete Examples
HTTP Method & Parameter Change
GET /v1/apis.listKeys → POST /v2/apis.listKeys
Key Changes:- HTTP method: GET → POST
- Request body format required instead of query parameters
- Enhanced filtering and pagination options
- Response format: Direct response →
{meta, data}
envelope
- Request Changes
- Response Changes
- Filtering Examples
- cURL Examples
List Keys Request Diff
POST /v1/apis.deleteApi → POST /v2/apis.deleteApi
Key Changes:- Response format: Direct response →
{meta, data}
envelope
- Request Format
- Response Changes
- cURL Examples
Delete API Request
POST /v1/apis.deleteKeys → Removed in v2
Purpose: Delete all keys within an API namespace. Migration Path: Use individualPOST /v2/keys.deleteKey
calls for each key or delete the entire API with POST /v2/apis.deleteApi
.
- v1 Usage
- v2 Migration Options
- v2 Implementation
v1: Delete all keys in API