Create Task
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/tasks \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"title": "<string>",
"description": "<string>",
"status": "<string>",
"priority": "<string>",
"deadline": "2023-12-25",
"owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"links": [
{
"target_type": "conversation",
"target_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/tasks"
payload = {
"title": "<string>",
"description": "<string>",
"status": "<string>",
"priority": "<string>",
"deadline": "2023-12-25",
"owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"links": [
{
"target_type": "conversation",
"target_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
description: '<string>',
status: '<string>',
priority: '<string>',
deadline: '2023-12-25',
owner_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
label_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
links: [
{target_type: 'conversation', target_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'}
]
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"title": "<string>",
"status": {
"key": "<string>",
"label": "<string>",
"category": "<string>",
"role": "<string>"
},
"priority": "<string>",
"labels": [
{
"id": "<string>",
"name": "<string>",
"color": "<string>"
}
],
"links": [
{
"id": "<string>",
"target_type": "<string>",
"target_id": "<string>",
"context": {
"conversation_id": "<string>",
"message_id": "<string>"
},
"deleted": true,
"admin_url": "<string>"
}
],
"source": "<string>",
"revision": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"admin_url": "<string>",
"identifier": "<string>",
"description": "",
"deadline": "2023-12-25",
"owner": {
"id": "<string>",
"name": "<string>",
"email": "<string>"
},
"created_by": {
"id": "<string>",
"name": "<string>",
"email": "<string>"
},
"finished_at": "2023-11-07T05:31:56Z",
"archived_at": "2023-11-07T05:31:56Z"
}Tasks
Create Task
Create a task. Retrying with the same Idempotency-Key returns the first response.
POST
/
api
/
v1
/
tasks
Create Task
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/tasks \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"title": "<string>",
"description": "<string>",
"status": "<string>",
"priority": "<string>",
"deadline": "2023-12-25",
"owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"links": [
{
"target_type": "conversation",
"target_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/tasks"
payload = {
"title": "<string>",
"description": "<string>",
"status": "<string>",
"priority": "<string>",
"deadline": "2023-12-25",
"owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"links": [
{
"target_type": "conversation",
"target_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
description: '<string>',
status: '<string>',
priority: '<string>',
deadline: '2023-12-25',
owner_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
label_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
links: [
{target_type: 'conversation', target_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'}
]
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"title": "<string>",
"status": {
"key": "<string>",
"label": "<string>",
"category": "<string>",
"role": "<string>"
},
"priority": "<string>",
"labels": [
{
"id": "<string>",
"name": "<string>",
"color": "<string>"
}
],
"links": [
{
"id": "<string>",
"target_type": "<string>",
"target_id": "<string>",
"context": {
"conversation_id": "<string>",
"message_id": "<string>"
},
"deleted": true,
"admin_url": "<string>"
}
],
"source": "<string>",
"revision": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"admin_url": "<string>",
"identifier": "<string>",
"description": "",
"deadline": "2023-12-25",
"owner": {
"id": "<string>",
"name": "<string>",
"email": "<string>"
},
"created_by": {
"id": "<string>",
"name": "<string>",
"email": "<string>"
},
"finished_at": "2023-11-07T05:31:56Z",
"archived_at": "2023-11-07T05:31:56Z"
}Authorizations
Headers
Body
application/json
Maximum string length:
200Maximum string length:
5000Status key or id. Defaults to the first to-do status.
none, low, normal, high, or urgent
An active staff member. Omit to leave unowned.
Maximum array length:
10Show child attributes
Show child attributes
Response
201 - application/json
Created
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Short handle such as TASK-12, accepted wherever a task id is.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
