Create Task
curl --request POST \
--url https://api.example.com/v0/tasksimport requests
url = "https://api.example.com/v0/tasks"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/v0/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://api.example.com/v0/tasks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v0/tasks"
req, _ := http.NewRequest("POST", url, nil)
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/v0/tasks")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v0/tasks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyTasks
Create Task
POST /v0/tasks — File a task into your inbox or a team inbox
POST
/
v0
/
tasks
Create Task
curl --request POST \
--url https://api.example.com/v0/tasksimport requests
url = "https://api.example.com/v0/tasks"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/v0/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://api.example.com/v0/tasks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v0/tasks"
req, _ := http.NewRequest("POST", url, nil)
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/v0/tasks")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v0/tasks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyDraft — needs review
Files a task. Omitteam to file into your own personal inbox.
Auth: Authorization: Bearer tr_...
Request body
| Field | Type | Required | Description |
|---|---|---|---|
title | string | Yes | Up to 500 characters |
body | string | No | Markdown details, up to 64 000 characters |
kind | string | No | A slug a processor declares it handles, matching ^[a-z0-9][a-z0-9-_]{0,63}$. Omit for a plain human to-do |
team | string | No | Team slug or id. Omitted = personal scope |
assignee | string | No | Account id or alias to suggest this to. Must be a current member of the team. Advisory — anyone in the team may still claim it |
due | string | No | ISO-8601. Informational only; nothing sorts or filters on it |
payload | object | No | Producer-defined JSON, up to 32 KB. Ids and refs, never content bodies |
curl -X POST https://api.tokenrip.com/v0/tasks \
-H "Authorization: Bearer tr_live_AbCdEfGhIjKlMnOpQrStUvWx" \
-H "Content-Type: application/json" \
-d '{
"team": "quintel",
"title": "Process call with Acme",
"kind": "process-call",
"assignee": "alek",
"payload": { "transcriptId": "fathom-98213" }
}'
rip task add "Process call with Acme" \
--team quintel --kind process-call --assignee alek \
--payload '{"transcriptId":"fathom-98213"}'
201 with the serialized task.
Error codes
| Error | Description |
|---|---|
INVALID_FIELD | A missing or over-long title, a kind that fails the slug grammar, an over-size payload, or a bad due |
INVALID_ASSIGNEE | The assignee is not a current member of the team |
NOT_A_MEMBER | You are not a current member of the named team |
TEAM_NOT_FOUND | No such team |
Operator mirror
POST /v0/operator/tasks.