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

POST /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"
}
POST /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"
}
GET /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"
}
POST /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"
}
PUT /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"
}
DELETE /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

JavaScript
const 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

Python
import 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

cURL
curl -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

JavaScript/Node.js

Version v2.1.0
npm install @syntro/api
View Documentation →

Python

Version v2.1.0
pip install syntro-api
View Documentation →

Go

Version v2.1.0
go get github.com/syntro/syntro-go
View Documentation →

PHP

Version v2.1.0
composer require syntro/api
View Documentation →

Rate Limits

Understand API call limits based on your subscription plan

Free Plan

1,000/day
Daily Requests
100/minute
Burst Requests

Professional Plan

100,000/day
Daily Requests
1,000/minute
Burst Requests

Enterprise Plan

Unlimited
Daily Requests
Unlimited
Burst Requests

Ready to Get Started?

Register now to get your API key and start building intelligent applications