Get Task
curl --request GET \
--url https://api.contactship.ai/v1/tasks/{id} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.contactship.ai/v1/tasks/{id}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.contactship.ai/v1/tasks/{id}', 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.contactship.ai/v1/tasks/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-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"
"net/http"
"io"
)
func main() {
url := "https://api.contactship.ai/v1/tasks/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.contactship.ai/v1/tasks/{id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.contactship.ai/v1/tasks/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"statusCode": 123,
"data.id": "<string>",
"data.type": "<string>",
"data.brief": "<string>",
"data.details": "<string>",
"data.status": "<string>",
"data.priority": "<string>",
"data.assigned_to": [
"<string>"
],
"data.created_by": {},
"data.additional_data": {},
"data.created_at": "<string>",
"data.updated_at": "<string>"
}Tareas
Get Task
Retrieve a task by its ID.
GET
/
v1
/
tasks
/
{id}
Get Task
curl --request GET \
--url https://api.contactship.ai/v1/tasks/{id} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.contactship.ai/v1/tasks/{id}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.contactship.ai/v1/tasks/{id}', 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.contactship.ai/v1/tasks/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-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"
"net/http"
"io"
)
func main() {
url := "https://api.contactship.ai/v1/tasks/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.contactship.ai/v1/tasks/{id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.contactship.ai/v1/tasks/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"statusCode": 123,
"data.id": "<string>",
"data.type": "<string>",
"data.brief": "<string>",
"data.details": "<string>",
"data.status": "<string>",
"data.priority": "<string>",
"data.assigned_to": [
"<string>"
],
"data.created_by": {},
"data.additional_data": {},
"data.created_at": "<string>",
"data.updated_at": "<string>"
}Retrieve a task by its ID.
See List tasks and Create task.
Authentication
string
requerido
Organization API key. Keep it on your server or in a credential store.
Path
string
requerido
Task ID returned by creation or listing. Use an ID belonging to your organization.
Response
number
HTTP response status.
string
Task UUID.
string
custom, AI, system, or automatization.string
Short task description.
string
Detailed task text.
string
backlog, todo, in_progress, done, blocked, or canceled.string
low, medium, or high.string[]
Assigned user IDs. Creation accepts emails, but the stored response uses IDs.
object | string | null
Creator information or reference, depending on the returned record.
object
Optional custom data.
string
Creation timestamp.
string
Last update timestamp.
Example
curl 'https://api.contactship.ai/v1/tasks/TASK_ID' -H 'x-api-key: YOUR_API_KEY'
