API Reference Documentation
Powerful AI software development API to make your applications smarter
Quick Start
Integrate BistuAI API into your application in minutes
Get API Key
Register account and get your API key
View Documentation
Learn about available API endpoints and parameters
Start Integration
Use SDK or call API directly
Authentication
Choose the authentication method that suits your needs
API Key
Authenticate using API key
Authorization: Bearer YOUR_API_KEY
OAuth 2.0
Authenticate using OAuth 2.0
Authorization: Bearer ACCESS_TOKEN
JWT Token
Authenticate using JWT token
Authorization: Bearer JWT_TOKEN
API Endpoints
Complete list of API endpoints with detailed descriptions
/api/v1/ai/generate-code
AI Code Generation
Parameters
prompt
(string) Required - Code generation prompt language
(string) Required - Programming language framework
(string) Optional - Framework selection Response
{
"code": "string",
"explanation": "string",
"suggestions": "array"
}
/api/v1/ai/analyze-code
AI Code Analysis
Parameters
code
(string) Required - Code to analyze analysis_type
(string) Required - Analysis type: quality, security, performance Response
{
"score": "number",
"issues": "array",
"recommendations": "array"
}
/api/v1/projects
Get Project List
Parameters
user_id
(string) Required - User ID status
(string) Optional - Project status filter Response
{
"projects": "array",
"total": "number",
"page": "number"
}
/api/v1/projects
Create New Project
Parameters
name
(string) Required - Project name description
(string) Optional - Project description template
(string) Optional - Project template Response
{
"project_id": "string",
"name": "string",
"created_at": "timestamp"
}
/api/v1/projects/{id}
Update Project Information
Parameters
id
(string) Required - Project ID name
(string) Optional - New project name description
(string) Optional - New project description Response
{
"success": "boolean",
"updated_at": "timestamp"
}
/api/v1/projects/{id}
Delete Project
Parameters
id
(string) Required - Project ID Response
{
"success": "boolean",
"deleted_at": "timestamp"
}
Code Examples
Integration examples in multiple programming languages
AI Code Generation Example
JavaScriptconst response = await fetch('/api/v1/ai/generate-code', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
prompt: 'Create a user login form',
language: 'javascript',
framework: 'react'
})
});
const result = await response.json();
console.log(result.code);
Project Creation Example
Pythonimport requests
response = requests.post(
'https://api.syntro.com/api/v1/projects',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
json={
'name': 'My New Project',
'description': 'This is a Web application generated using AI'
}
)
project = response.json()
print(f"Project ID: {project['project_id']}")
Code Analysis Example
cURLcurl -X POST https://api.syntro.com/api/v1/ai/analyze-code \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"code": "function hello() { console.log('Hello World'); }",
"analysis_type": "quality"
}'
SDK Libraries
Officially supported programming language SDKs to simplify API integration
Rate Limits
Understand API call limits based on your subscription plan
Free Plan
Professional Plan
Enterprise Plan
Ready to Get Started?
Register now to get your API key and start building intelligent applications