Integrate BeginFlow into your workflow with our powerful REST API
import BeginFlow from '@beginflow/sdk';
const client = new BeginFlow({
apiKey: 'your-api-key'
});
// Create a new project
const project = await client.projects.create({
name: 'My App',
framework: 'react',
language: 'en'
});
// Generate code
const code = await client.code.generate({
projectId: project.id,
component: 'Dashboard',
features: ['charts', 'stats']
});
/api/v1/projects/create
Create a new project
{
"name": "My E-commerce App",
"framework": "react",
"language": "en",
"features": [
"authentication",
"payments",
"dashboard"
]
}
/api/v1/projects/{id}
Get project details
/api/v1/code/generate
Generate code for a component
{
"project_id": "123",
"component": "UserProfile",
"type": "page",
"features": [
"edit",
"avatar",
"settings"
]
}
/api/v1/templates
List available templates