Tasks
Create a task
Creates a new task. Required: title, teamId.
To create a subtask, set parentId to an existing task’s ID. The parent task must
belong to the same team.
POST
/
tasks
Create a task
curl --request POST \
--url https://slog.ai/tasks \
--header 'Content-Type: application/json' \
--header 'slog-api-key: <api-key>' \
--data '
{
"title": "Implement OAuth login",
"teamId": "team_01jqteam0001",
"status": "TODO",
"priority": "HIGH",
"projectId": "proj_01jqproj0001",
"description": "Support Google and GitHub as providers.",
"dueDate": "2026-06-15",
"assigneeId": "user_01jquser0001"
}
'import requests
url = "https://slog.ai/tasks"
payload = {
"title": "Implement OAuth login",
"teamId": "team_01jqteam0001",
"status": "TODO",
"priority": "HIGH",
"projectId": "proj_01jqproj0001",
"description": "Support Google and GitHub as providers.",
"dueDate": "2026-06-15",
"assigneeId": "user_01jquser0001"
}
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({
title: 'Implement OAuth login',
teamId: 'team_01jqteam0001',
status: 'TODO',
priority: 'HIGH',
projectId: 'proj_01jqproj0001',
description: 'Support Google and GitHub as providers.',
dueDate: '2026-06-15',
assigneeId: 'user_01jquser0001'
})
};
fetch('https://slog.ai/tasks', 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/tasks",
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' => 'Implement OAuth login',
'teamId' => 'team_01jqteam0001',
'status' => 'TODO',
'priority' => 'HIGH',
'projectId' => 'proj_01jqproj0001',
'description' => 'Support Google and GitHub as providers.',
'dueDate' => '2026-06-15',
'assigneeId' => 'user_01jquser0001'
]),
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/tasks"
payload := strings.NewReader("{\n \"title\": \"Implement OAuth login\",\n \"teamId\": \"team_01jqteam0001\",\n \"status\": \"TODO\",\n \"priority\": \"HIGH\",\n \"projectId\": \"proj_01jqproj0001\",\n \"description\": \"Support Google and GitHub as providers.\",\n \"dueDate\": \"2026-06-15\",\n \"assigneeId\": \"user_01jquser0001\"\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/tasks")
.header("slog-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"Implement OAuth login\",\n \"teamId\": \"team_01jqteam0001\",\n \"status\": \"TODO\",\n \"priority\": \"HIGH\",\n \"projectId\": \"proj_01jqproj0001\",\n \"description\": \"Support Google and GitHub as providers.\",\n \"dueDate\": \"2026-06-15\",\n \"assigneeId\": \"user_01jquser0001\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://slog.ai/tasks")
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 \"title\": \"Implement OAuth login\",\n \"teamId\": \"team_01jqteam0001\",\n \"status\": \"TODO\",\n \"priority\": \"HIGH\",\n \"projectId\": \"proj_01jqproj0001\",\n \"description\": \"Support Google and GitHub as providers.\",\n \"dueDate\": \"2026-06-15\",\n \"assigneeId\": \"user_01jquser0001\"\n}"
response = http.request(request)
puts response.read_body{
"task": {
"id": "task_01jqabcd1111",
"reference": "ENG-42",
"title": "Implement OAuth login",
"description": "Support Google and GitHub as providers.",
"dueDate": "2026-06-15",
"teamId": "team_01jqteam0001",
"team": {
"id": "team_01jqteam0001",
"name": "Engineering",
"prefix": "ENG"
},
"projectId": "proj_01jqproj0001",
"parentId": null,
"assigneeId": "user_01jquser0001",
"assignee": {
"id": "user_01jquser0001",
"name": "Alex Johnson",
"email": "[email protected]",
"avatarUrl": null,
"humanId": null
},
"labels": [
{
"id": "label_01jqlabel001",
"name": "bug",
"color": "#EF4444"
}
],
"createdAt": "2026-05-01T10:00:00.000Z",
"updatedAt": "2026-05-10T14:30:00.000Z"
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "teamId is required"
}
}{
"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
Example:
"Implement OAuth login"
ID or reference prefix of the team that will own the task.
Example:
"team_01jqteam0001"
Lifecycle status of a task.
Available options:
TODO, IN_PROGRESS, IN_REVIEW, BLOCKED, DONE, CANCELLED Priority level of a task.
Available options:
LOW, MEDIUM, HIGH, URGENT Markdown content.
Example:
"Support Google and GitHub as providers."
Example:
"2026-06-15"
Example:
"proj_01jqproj0001"
Make this a subtask of an existing task in the same team.
Example:
null
Example:
"user_01jquser0001"
Response
Task created.
Show child attributes
Show child attributes
⌘I
Create a task
curl --request POST \
--url https://slog.ai/tasks \
--header 'Content-Type: application/json' \
--header 'slog-api-key: <api-key>' \
--data '
{
"title": "Implement OAuth login",
"teamId": "team_01jqteam0001",
"status": "TODO",
"priority": "HIGH",
"projectId": "proj_01jqproj0001",
"description": "Support Google and GitHub as providers.",
"dueDate": "2026-06-15",
"assigneeId": "user_01jquser0001"
}
'import requests
url = "https://slog.ai/tasks"
payload = {
"title": "Implement OAuth login",
"teamId": "team_01jqteam0001",
"status": "TODO",
"priority": "HIGH",
"projectId": "proj_01jqproj0001",
"description": "Support Google and GitHub as providers.",
"dueDate": "2026-06-15",
"assigneeId": "user_01jquser0001"
}
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({
title: 'Implement OAuth login',
teamId: 'team_01jqteam0001',
status: 'TODO',
priority: 'HIGH',
projectId: 'proj_01jqproj0001',
description: 'Support Google and GitHub as providers.',
dueDate: '2026-06-15',
assigneeId: 'user_01jquser0001'
})
};
fetch('https://slog.ai/tasks', 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/tasks",
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' => 'Implement OAuth login',
'teamId' => 'team_01jqteam0001',
'status' => 'TODO',
'priority' => 'HIGH',
'projectId' => 'proj_01jqproj0001',
'description' => 'Support Google and GitHub as providers.',
'dueDate' => '2026-06-15',
'assigneeId' => 'user_01jquser0001'
]),
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/tasks"
payload := strings.NewReader("{\n \"title\": \"Implement OAuth login\",\n \"teamId\": \"team_01jqteam0001\",\n \"status\": \"TODO\",\n \"priority\": \"HIGH\",\n \"projectId\": \"proj_01jqproj0001\",\n \"description\": \"Support Google and GitHub as providers.\",\n \"dueDate\": \"2026-06-15\",\n \"assigneeId\": \"user_01jquser0001\"\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/tasks")
.header("slog-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"Implement OAuth login\",\n \"teamId\": \"team_01jqteam0001\",\n \"status\": \"TODO\",\n \"priority\": \"HIGH\",\n \"projectId\": \"proj_01jqproj0001\",\n \"description\": \"Support Google and GitHub as providers.\",\n \"dueDate\": \"2026-06-15\",\n \"assigneeId\": \"user_01jquser0001\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://slog.ai/tasks")
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 \"title\": \"Implement OAuth login\",\n \"teamId\": \"team_01jqteam0001\",\n \"status\": \"TODO\",\n \"priority\": \"HIGH\",\n \"projectId\": \"proj_01jqproj0001\",\n \"description\": \"Support Google and GitHub as providers.\",\n \"dueDate\": \"2026-06-15\",\n \"assigneeId\": \"user_01jquser0001\"\n}"
response = http.request(request)
puts response.read_body{
"task": {
"id": "task_01jqabcd1111",
"reference": "ENG-42",
"title": "Implement OAuth login",
"description": "Support Google and GitHub as providers.",
"dueDate": "2026-06-15",
"teamId": "team_01jqteam0001",
"team": {
"id": "team_01jqteam0001",
"name": "Engineering",
"prefix": "ENG"
},
"projectId": "proj_01jqproj0001",
"parentId": null,
"assigneeId": "user_01jquser0001",
"assignee": {
"id": "user_01jquser0001",
"name": "Alex Johnson",
"email": "[email protected]",
"avatarUrl": null,
"humanId": null
},
"labels": [
{
"id": "label_01jqlabel001",
"name": "bug",
"color": "#EF4444"
}
],
"createdAt": "2026-05-01T10:00:00.000Z",
"updatedAt": "2026-05-10T14:30:00.000Z"
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "teamId is required"
}
}{
"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"
]
}
}