cURL
curl "https://api.superskope.com/api/v1/work/tasks/00000000-0000-4000-8000-000000000001" \
-H "Authorization: Bearer $SUPERSKOPE_API_KEY"
import { SuperSkope } from '@superskope/sdk';
const client = new SuperSkope({
origin: 'https://api.superskope.com',
apiKey: process.env.SUPERSKOPE_API_KEY,
});
const result = await client.workItem('task', '00000000-0000-4000-8000-000000000001');
console.log(result);
import os
import requests
response = requests.get(
"https://api.superskope.com/api/v1/work/tasks/00000000-0000-4000-8000-000000000001",
headers={"Authorization": f"Bearer {os.environ['SUPERSKOPE_API_KEY']}"},
timeout=40,
)
print(response.status_code, response.json())
{
"id": "<string>",
"kind": "ticket",
"name": "<string>",
"chatId": "<string>",
"status": "<string>",
"version": 123,
"messageId": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Work and reports
Get a task
Read a selected task. Requires work:read. Exact key-selected conversations and current phone are enforced.
cURL
curl "https://api.superskope.com/api/v1/work/tasks/00000000-0000-4000-8000-000000000001" \
-H "Authorization: Bearer $SUPERSKOPE_API_KEY"
import { SuperSkope } from '@superskope/sdk';
const client = new SuperSkope({
origin: 'https://api.superskope.com',
apiKey: process.env.SUPERSKOPE_API_KEY,
});
const result = await client.workItem('task', '00000000-0000-4000-8000-000000000001');
console.log(result);
import os
import requests
response = requests.get(
"https://api.superskope.com/api/v1/work/tasks/00000000-0000-4000-8000-000000000001",
headers={"Authorization": f"Bearer {os.environ['SUPERSKOPE_API_KEY']}"},
timeout=40,
)
print(response.status_code, response.json())
{
"id": "<string>",
"kind": "ticket",
"name": "<string>",
"chatId": "<string>",
"status": "<string>",
"version": 123,
"messageId": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}