Overview
The Windsurf API enables enterprise customers to programmatically access detailed usage analytics and manage usage configurations for their teams.The API is available for Enterprise plans only
Base URL
All API requests should be made to:Authentication
The Windsurf API uses service keys for authentication. Service keys must be included in the request body of all API calls.Creating a Service Key
- Navigate to your team settings page
- Go to the “Service Keys” section
- Create a new service key with appropriate permissions
- Copy the generated service key for use in API requests
Required Permissions
All Analytics API endpoints require “Teams Read-only” permissions. All Usage API endpoints require “Billing Write” permissions.Using Service Keys
Include your service key in the request body of all API calls:Keep your service keys secure and never expose them in client-side code or public repositories
Rate Limits
API requests are subject to rate limiting to ensure service stability. If you exceed the rate limit, you’ll receive a429 Too Many Requests response.