cURL Examples
This section provides practical examples of how to interact with the Clipron AI API usingcURL. These examples demonstrate common API operations and can be easily adapted for your specific needs.
Authentication
Get JWT Token (Example)
Assuming you have an authentication endpoint that returns a JWT.Users Endpoint
Get Current User Profile
Update User Profile
Analysis Endpoint
Start a New Code Analysis
Get Analysis Status
Get Analysis Report
Credits Endpoint
Get Current Credit Balance
Get Credit History
Payments Endpoint
Purchase Credits
General Tips for cURL
- Replace Placeholders: Always replace
YOUR_JWT_TOKEN,your_username,your_password,project_id_xyz,analysis_id_xyz, etc., with your actual values. - Error Handling: Check the HTTP status code and response body for error messages.
- JSON Formatting: Use tools like
jq(curl ... | jq .) to pretty-print JSON responses for better readability. - HTTPS: Always use
https://for secure communication.