Projects
Create a project
Required: name, teamId.
POST
/
projects
Create a project
curl --request POST \
--url https://slog.ai/projects \
--header 'Content-Type: application/json' \
--header 'slog-api-key: <api-key>' \
--data '
{
"name": "Platform v2",
"teamId": "team_01jqteam0001",
"status": "PLANNING",
"description": "Full rewrite of the platform backend."
}
'import requests
url = "https://slog.ai/projects"
payload = {
"name": "Platform v2",
"teamId": "team_01jqteam0001",
"status": "PLANNING",
"description": "Full rewrite of the platform backend."
}
headers = {
"slog-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'slog-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Platform v2',
teamId: 'team_01jqteam0001',
status: 'PLANNING',
description: 'Full rewrite of the platform backend.'
})
};
fetch('https://slog.ai/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://slog.ai/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' => 'Platform v2',
'teamId' => 'team_01jqteam0001',
'status' => 'PLANNING',
'description' => 'Full rewrite of the platform backend.'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"slog-api-key: <api-key>"
],
]);
$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://slog.ai/projects"
payload := strings.NewReader("{\n \"name\": \"Platform v2\",\n \"teamId\": \"team_01jqteam0001\",\n \"status\": \"PLANNING\",\n \"description\": \"Full rewrite of the platform backend.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("slog-api-key", "<api-key>")
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("https://slog.ai/projects")
.header("slog-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Platform v2\",\n \"teamId\": \"team_01jqteam0001\",\n \"status\": \"PLANNING\",\n \"description\": \"Full rewrite of the platform backend.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://slog.ai/projects")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["slog-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Platform v2\",\n \"teamId\": \"team_01jqteam0001\",\n \"status\": \"PLANNING\",\n \"description\": \"Full rewrite of the platform backend.\"\n}"
response = http.request(request)
puts response.read_body{
"project": {
"id": "proj_01jqproj0001",
"reference": "ENG-P1",
"name": "Platform v2",
"description": "Full rewrite of the platform backend.",
"teamId": "team_01jqteam0001",
"team": {
"id": "team_01jqteam0001",
"name": "Engineering",
"prefix": "ENG"
},
"labels": [
{
"id": "label_01jqlabel001",
"name": "bug",
"color": "#EF4444"
}
],
"createdAt": "2026-04-01T08:00:00.000Z",
"updatedAt": "2026-05-01T12:00:00.000Z"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Authentication required"
}
}{
"error": {
"code": "FORBIDDEN",
"message": "Requires ADMIN or OWNER role"
}
}{
"errors": {
"email": [
"The email field must be a valid email address"
],
"code": [
"The code field must be exactly 6 characters long"
]
}
}Authorizations
ApiKeyBearerToken
API key obtained from the Slog dashboard or returned by the signup/invite-redeem
flows. Pass as the slog-api-key header.
Body
application/json
Response
Project created.
Show child attributes
Show child attributes
⌘I
Create a project
curl --request POST \
--url https://slog.ai/projects \
--header 'Content-Type: application/json' \
--header 'slog-api-key: <api-key>' \
--data '
{
"name": "Platform v2",
"teamId": "team_01jqteam0001",
"status": "PLANNING",
"description": "Full rewrite of the platform backend."
}
'import requests
url = "https://slog.ai/projects"
payload = {
"name": "Platform v2",
"teamId": "team_01jqteam0001",
"status": "PLANNING",
"description": "Full rewrite of the platform backend."
}
headers = {
"slog-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'slog-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Platform v2',
teamId: 'team_01jqteam0001',
status: 'PLANNING',
description: 'Full rewrite of the platform backend.'
})
};
fetch('https://slog.ai/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://slog.ai/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' => 'Platform v2',
'teamId' => 'team_01jqteam0001',
'status' => 'PLANNING',
'description' => 'Full rewrite of the platform backend.'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"slog-api-key: <api-key>"
],
]);
$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://slog.ai/projects"
payload := strings.NewReader("{\n \"name\": \"Platform v2\",\n \"teamId\": \"team_01jqteam0001\",\n \"status\": \"PLANNING\",\n \"description\": \"Full rewrite of the platform backend.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("slog-api-key", "<api-key>")
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("https://slog.ai/projects")
.header("slog-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Platform v2\",\n \"teamId\": \"team_01jqteam0001\",\n \"status\": \"PLANNING\",\n \"description\": \"Full rewrite of the platform backend.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://slog.ai/projects")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["slog-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Platform v2\",\n \"teamId\": \"team_01jqteam0001\",\n \"status\": \"PLANNING\",\n \"description\": \"Full rewrite of the platform backend.\"\n}"
response = http.request(request)
puts response.read_body{
"project": {
"id": "proj_01jqproj0001",
"reference": "ENG-P1",
"name": "Platform v2",
"description": "Full rewrite of the platform backend.",
"teamId": "team_01jqteam0001",
"team": {
"id": "team_01jqteam0001",
"name": "Engineering",
"prefix": "ENG"
},
"labels": [
{
"id": "label_01jqlabel001",
"name": "bug",
"color": "#EF4444"
}
],
"createdAt": "2026-04-01T08:00:00.000Z",
"updatedAt": "2026-05-01T12:00:00.000Z"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Authentication required"
}
}{
"error": {
"code": "FORBIDDEN",
"message": "Requires ADMIN or OWNER role"
}
}{
"errors": {
"email": [
"The email field must be a valid email address"
],
"code": [
"The code field must be exactly 6 characters long"
]
}
}