Create Project
curl --request POST \
--url https://api.example.com/api/v1/projects \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"name": "<string>",
"description": "<string>",
"settings": {}
}
'import requests
url = "https://api.example.com/api/v1/projects"
payload = {
"name": "<string>",
"description": "<string>",
"settings": {}
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "<content-type>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': '<content-type>'},
body: JSON.stringify({name: '<string>', description: '<string>', settings: {}})
};
fetch('https://api.example.com/api/v1/projects', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v1/projects",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'description' => '<string>',
'settings' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/projects"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"settings\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "<content-type>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/api/v1/projects")
.header("Authorization", "<authorization>")
.header("Content-Type", "<content-type>")
.body("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"settings\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/projects")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = '<content-type>'
request.body = "{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"settings\": {}\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"description": {},
"settings": {},
"active_export_id": {},
"created_at": "<string>",
"VALIDATION_ERROR": {},
"UNAUTHORIZED": {}
}Projects
Create Project
Create a new project
POST
/
api
/
v1
/
projects
Create Project
curl --request POST \
--url https://api.example.com/api/v1/projects \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"name": "<string>",
"description": "<string>",
"settings": {}
}
'import requests
url = "https://api.example.com/api/v1/projects"
payload = {
"name": "<string>",
"description": "<string>",
"settings": {}
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "<content-type>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': '<content-type>'},
body: JSON.stringify({name: '<string>', description: '<string>', settings: {}})
};
fetch('https://api.example.com/api/v1/projects', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v1/projects",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'description' => '<string>',
'settings' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/projects"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"settings\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "<content-type>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/api/v1/projects")
.header("Authorization", "<authorization>")
.header("Content-Type", "<content-type>")
.body("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"settings\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/projects")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = '<content-type>'
request.body = "{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"settings\": {}\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"description": {},
"settings": {},
"active_export_id": {},
"created_at": "<string>",
"VALIDATION_ERROR": {},
"UNAUTHORIZED": {}
}Overview
Creates a new project. A project is the container that holds chapters, prompts, and exports.Request
Headers
string
required
Bearer token with your API key
string
required
Must be
application/jsonBody
string
required
Project name (1-30 characters)
string
Optional project description (max 1000 characters)
object
Optional project settings (reserved for future use)
Response
string
Unique project identifier (format:
prj_[A-Za-z0-9]{21})string
Project name
string | null
Project description
object | null
Project settings
string | null
ID of the currently active export, if any
string
ISO 8601 timestamp when the project was created
Examples
curl -X POST https://api.babou.ai/api/v1/projects \
-H "Authorization: Bearer $BABOU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Pricing Page Refresh",
"description": "Launch campaign for the new Team tier"
}'
async function createProject(name: string, description?: string) {
const response = await fetch('https://api.babou.ai/api/v1/projects', {
method: 'POST',
headers: {
'Authorization': `Bearer ${process.env.BABOU_API_KEY}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({ name, description })
});
return await response.json();
}
const project = await createProject(
'Pricing Page Refresh',
'Launch campaign for the new Team tier'
);
console.log('Created project:', project.id);
import os
import requests
def create_project(name, description=None):
response = requests.post(
'https://api.babou.ai/api/v1/projects',
headers={
'Authorization': f'Bearer {os.environ["BABOU_API_KEY"]}',
'Content-Type': 'application/json'
},
json={'name': name, 'description': description}
)
return response.json()
project = create_project(
'Pricing Page Refresh',
'Launch campaign for the new Team tier'
)
print(f'Created project: {project["id"]}')
Response Example
{
"id": "prj_abc123xyz",
"name": "Pricing Page Refresh",
"description": "Launch campaign for the new Team tier",
"settings": null,
"active_export_id": null,
"created_at": "2025-12-02T10:00:00Z"
}
Error Responses
400
Invalid request parameters
{
"error": "Validation failed",
"code": "VALIDATION_ERROR",
"hint": "Name must be between 1 and 30 characters"
}
401
Invalid or missing API key
{
"error": "Unauthorized - Invalid API key",
"code": "UNAUTHORIZED"
}
Next Steps
Add Chapters
Add chapters to your project
List Projects
View all your projects
⌘I