Materialize a project with cheap links and optional canonical workflows
curl --request POST \
--url http://localhost:3000/api/v1/projects/init \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"hypothesis": "<string>",
"lastSignalAt": "<string>",
"nextStep": "<string>",
"ownerAgent": "<string>",
"resource": [
"<string>"
],
"session": "<string>",
"slug": "<string>",
"status": "<string>",
"summary": "<string>",
"workflowRun": [
"<string>"
],
"workflowTemplate": [
"<string>"
]
}
'import requests
url = "http://localhost:3000/api/v1/projects/init"
payload = {
"title": "<string>",
"hypothesis": "<string>",
"lastSignalAt": "<string>",
"nextStep": "<string>",
"ownerAgent": "<string>",
"resource": ["<string>"],
"session": "<string>",
"slug": "<string>",
"status": "<string>",
"summary": "<string>",
"workflowRun": ["<string>"],
"workflowTemplate": ["<string>"]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
hypothesis: '<string>',
lastSignalAt: '<string>',
nextStep: '<string>',
ownerAgent: '<string>',
resource: ['<string>'],
session: '<string>',
slug: '<string>',
status: '<string>',
summary: '<string>',
workflowRun: ['<string>'],
workflowTemplate: ['<string>']
})
};
fetch('http://localhost:3000/api/v1/projects/init', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/api/v1/projects/init",
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([
'title' => '<string>',
'hypothesis' => '<string>',
'lastSignalAt' => '<string>',
'nextStep' => '<string>',
'ownerAgent' => '<string>',
'resource' => [
'<string>'
],
'session' => '<string>',
'slug' => '<string>',
'status' => '<string>',
'summary' => '<string>',
'workflowRun' => [
'<string>'
],
'workflowTemplate' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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 := "http://localhost:3000/api/v1/projects/init"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"hypothesis\": \"<string>\",\n \"lastSignalAt\": \"<string>\",\n \"nextStep\": \"<string>\",\n \"ownerAgent\": \"<string>\",\n \"resource\": [\n \"<string>\"\n ],\n \"session\": \"<string>\",\n \"slug\": \"<string>\",\n \"status\": \"<string>\",\n \"summary\": \"<string>\",\n \"workflowRun\": [\n \"<string>\"\n ],\n \"workflowTemplate\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost:3000/api/v1/projects/init")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"hypothesis\": \"<string>\",\n \"lastSignalAt\": \"<string>\",\n \"nextStep\": \"<string>\",\n \"ownerAgent\": \"<string>\",\n \"resource\": [\n \"<string>\"\n ],\n \"session\": \"<string>\",\n \"slug\": \"<string>\",\n \"status\": \"<string>\",\n \"summary\": \"<string>\",\n \"workflowRun\": [\n \"<string>\"\n ],\n \"workflowTemplate\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/api/v1/projects/init")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"<string>\",\n \"hypothesis\": \"<string>\",\n \"lastSignalAt\": \"<string>\",\n \"nextStep\": \"<string>\",\n \"ownerAgent\": \"<string>\",\n \"resource\": [\n \"<string>\"\n ],\n \"session\": \"<string>\",\n \"slug\": \"<string>\",\n \"status\": \"<string>\",\n \"summary\": \"<string>\",\n \"workflowRun\": [\n \"<string>\"\n ],\n \"workflowTemplate\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{}projects
Materialize a project with cheap links and optional canonical workflows
POST
/
api
/
v1
/
projects
/
init
Materialize a project with cheap links and optional canonical workflows
curl --request POST \
--url http://localhost:3000/api/v1/projects/init \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"hypothesis": "<string>",
"lastSignalAt": "<string>",
"nextStep": "<string>",
"ownerAgent": "<string>",
"resource": [
"<string>"
],
"session": "<string>",
"slug": "<string>",
"status": "<string>",
"summary": "<string>",
"workflowRun": [
"<string>"
],
"workflowTemplate": [
"<string>"
]
}
'import requests
url = "http://localhost:3000/api/v1/projects/init"
payload = {
"title": "<string>",
"hypothesis": "<string>",
"lastSignalAt": "<string>",
"nextStep": "<string>",
"ownerAgent": "<string>",
"resource": ["<string>"],
"session": "<string>",
"slug": "<string>",
"status": "<string>",
"summary": "<string>",
"workflowRun": ["<string>"],
"workflowTemplate": ["<string>"]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
hypothesis: '<string>',
lastSignalAt: '<string>',
nextStep: '<string>',
ownerAgent: '<string>',
resource: ['<string>'],
session: '<string>',
slug: '<string>',
status: '<string>',
summary: '<string>',
workflowRun: ['<string>'],
workflowTemplate: ['<string>']
})
};
fetch('http://localhost:3000/api/v1/projects/init', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/api/v1/projects/init",
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([
'title' => '<string>',
'hypothesis' => '<string>',
'lastSignalAt' => '<string>',
'nextStep' => '<string>',
'ownerAgent' => '<string>',
'resource' => [
'<string>'
],
'session' => '<string>',
'slug' => '<string>',
'status' => '<string>',
'summary' => '<string>',
'workflowRun' => [
'<string>'
],
'workflowTemplate' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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 := "http://localhost:3000/api/v1/projects/init"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"hypothesis\": \"<string>\",\n \"lastSignalAt\": \"<string>\",\n \"nextStep\": \"<string>\",\n \"ownerAgent\": \"<string>\",\n \"resource\": [\n \"<string>\"\n ],\n \"session\": \"<string>\",\n \"slug\": \"<string>\",\n \"status\": \"<string>\",\n \"summary\": \"<string>\",\n \"workflowRun\": [\n \"<string>\"\n ],\n \"workflowTemplate\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost:3000/api/v1/projects/init")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"hypothesis\": \"<string>\",\n \"lastSignalAt\": \"<string>\",\n \"nextStep\": \"<string>\",\n \"ownerAgent\": \"<string>\",\n \"resource\": [\n \"<string>\"\n ],\n \"session\": \"<string>\",\n \"slug\": \"<string>\",\n \"status\": \"<string>\",\n \"summary\": \"<string>\",\n \"workflowRun\": [\n \"<string>\"\n ],\n \"workflowTemplate\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/api/v1/projects/init")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"<string>\",\n \"hypothesis\": \"<string>\",\n \"lastSignalAt\": \"<string>\",\n \"nextStep\": \"<string>\",\n \"ownerAgent\": \"<string>\",\n \"resource\": [\n \"<string>\"\n ],\n \"session\": \"<string>\",\n \"slug\": \"<string>\",\n \"status\": \"<string>\",\n \"summary\": \"<string>\",\n \"workflowRun\": [\n \"<string>\"\n ],\n \"workflowTemplate\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{}Body
application/json
Project title
Current working hypothesis
now, epoch ms, or ISO-8601
Next human step
Owning agent id or 'none' (defaults to current actor agent)
Resource links to attach: repo|worktree|notion_page|notion_database|file|url|group|contact
Operator session name; links existing or creates one for the owner agent
Stable project slug
active|paused|blocked|done|archived
Human summary for the workstream
Attach existing workflow run ids
Instantiate canonical workflow templates: technical-change|gated-release|operational-response
Response
Success — no @Returns schema declared; payload shape is loose.
The response is of type object.