About the API

API documentation

Every method of the customer API: parameters, answers and ready requests in cURL, PHP and Python.

Request URL

POST https://unutasks.com/api

Answer

JSON · UTF-8

Getting started

Every request is a POST with the key and the action name; the answer is JSON.

SMM panels have a separate compatible protocol: API V2.

API allows you to work with UNU programmatically and deeply integrate the service into any product. For any questions or suggestions regarding the API, please contact support.

Parameters

  • api_key string required

    Your API key

  • action string required

    The action name, e.g. get_balance

Answer

  • success bool

    True when the action is done

  • errors string

    Error text, empty on success

Examples and libraries

Go Python PHP script example

curl -X POST https://unutasks.com/api \
  -d 'api_key=YOUR_API_KEY' \
  -d 'action=get_balance'
$ch = curl_init('https://unutasks.com/api');
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POSTFIELDS => [
        'api_key' => 'YOUR_API_KEY',
        'action' => 'get_balance',
    ],
]);
$answer = json_decode(curl_exec($ch), true);
import requests

answer = requests.post('https://unutasks.com/api', data={
    'api_key': 'YOUR_API_KEY',
    'action': 'get_balance',
}).json()
Error example
{"success": false, "errors": "Неверный API-ключ"}

Balance and spending

POST get_balance #

Returns the amount of available funds.

Parameters

Only the key and the action.

Answer

  • balance float

    Available money on the balance, in roubles

  • freeze float

    Money held on active tasks, in roubles

Request

curl -X POST https://unutasks.com/api \
  -d 'api_key=YOUR_API_KEY' \
  -d 'action=get_balance'
$ch = curl_init('https://unutasks.com/api');
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POSTFIELDS => [
        'api_key' => 'YOUR_API_KEY',
        'action' => 'get_balance',
    ],
]);
$answer = json_decode(curl_exec($ch), true);
import requests

answer = requests.post('https://unutasks.com/api', data={
    'api_key': 'YOUR_API_KEY',
    'action': 'get_balance',
}).json()

Answer

Answer example
{
    "success": true,
    "errors": "",
    "balance": 12153.63,
    "freeze": 334.4
}

POST get_expenses #

Returns the amount of spent funds

Parameters

  • task_id int optional

    Task identifier for which to get expenses

  • folder_id int optional

    Folder identifier for which to get expenses

  • date_from datetime optional

    Start of period (from which date to return expenses), example 2019-11-01 13:00:00

  • date_to datetime optional

    End of period (up to which date to return expenses), example 2019-11-05 13:00:00

Answer

  • expenses_in_rub float

    Amount of expenses in rubles

  • group_by_days array

    Expenses grouped by days

    Each element:

    • date date

      Day

    • expenses_in_rub float

      Spending of the day in roubles

Request

curl -X POST https://unutasks.com/api \
  -d 'api_key=YOUR_API_KEY' \
  -d 'action=get_expenses' \
  -d 'date_from=2026-11-01 00:00:00'
$ch = curl_init('https://unutasks.com/api');
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POSTFIELDS => [
        'api_key' => 'YOUR_API_KEY',
        'action' => 'get_expenses',
        'date_from' => '2026-11-01 00:00:00',
    ],
]);
$answer = json_decode(curl_exec($ch), true);
import requests

answer = requests.post('https://unutasks.com/api', data={
    'api_key': 'YOUR_API_KEY',
    'action': 'get_expenses',
    'date_from': '2026-11-01 00:00:00',
}).json()

Answer

Answer example
{
    "success": true,
    "errors": "",
    "expenses_in_rub": 346.38,
    "group_by_days": [
        {
            "date": "2026-11-17",
            "expenses_in_rub": 8.49
        },
        {
            "date": "2026-11-16",
            "expenses_in_rub": 9.3
        }
    ]
}

Tasks

POST add_task #

Creates a new task

Parameters

  • name text

    Task name

  • descr text

    Task description

  • link text optional

    URL required to complete the task

  • need_for_report text

    What the performer must provide for the task report

  • price float

    Cost of one task completion in rubles

  • tarif_id int

    Tariff identifier

  • folder_id int

    Identifier of the folder to place the task in

  • need_screen boolean optional

    If the performer needs to attach a screenshot, pass 1

  • anonym_task boolean optional

    Makes the task anonymous

  • time_for_work int optional

    How many hours to give the performer to work, from 2 to 168

  • time_for_check int optional

    How many hours you need to check the task, from 10 to 168

  • limit_per_day int optional

    Limit of completions per day

  • limit_per_hour int optional

    Limit of completions per hour

  • limit_per_user int optional

    Limit of completions for one performer

  • limit_per_user_folder int optional

    Limit from a performer per folder

  • limit_per_ip int optional

    Limit of completions from one IP

  • limit_only_for_level_id int optional

    Minimum required performer level: 1 - basic or higher, 2 - advanced or higher, 3 - high or higher, 4 - pro or higher

  • limit_date_from datetime

    Task start time

  • limit_date_to datetime

    Task stop time

  • delay_from int optional

    Delay between completions in minutes, from

  • delay_to int optional

    Delay between completions in minutes, to

  • targeting_gender int optional

    Targeting parameter: gender. 1 – female, 2 – male

  • targeting_age_from int optional

    Targeting parameter: age from

  • targeting_geo_country_id int optional

    Geo-targeting parameter: country ID

  • task_only_for_list_id int optional

    ID of the whitelist of performers who will have access to the task

  • targeting_device string optional

    Device targeting parameter: all, mobile, desktop

  • list_of_pages text optional

    Data for even distribution of information among performers

Answer

  • task_id int

    Identifier of the created task

Request

curl -X POST https://unutasks.com/api \
  -d 'api_key=YOUR_API_KEY' \
  -d 'action=add_task' \
  -d 'name=Follow the channel' \
  -d 'descr=Follow the channel by the link' \
  -d 'link=https://t.me/channel' \
  -d 'need_for_report=Telegram nick' \
  -d 'price=1.6' \
  -d 'tarif_id=3' \
  -d 'folder_id=0'
$ch = curl_init('https://unutasks.com/api');
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POSTFIELDS => [
        'api_key' => 'YOUR_API_KEY',
        'action' => 'add_task',
        'name' => 'Follow the channel',
        'descr' => 'Follow the channel by the link',
        'link' => 'https://t.me/channel',
        'need_for_report' => 'Telegram nick',
        'price' => '1.6',
        'tarif_id' => '3',
        'folder_id' => '0',
    ],
]);
$answer = json_decode(curl_exec($ch), true);
import requests

answer = requests.post('https://unutasks.com/api', data={
    'api_key': 'YOUR_API_KEY',
    'action': 'add_task',
    'name': 'Follow the channel',
    'descr': 'Follow the channel by the link',
    'link': 'https://t.me/channel',
    'need_for_report': 'Telegram nick',
    'price': '1.6',
    'tarif_id': '3',
    'folder_id': '0',
}).json()

Answer

Answer example
{
    "success": true,
    "errors": "",
    "task_id": 10427
}

POST add_task_start #

Created as a combination of add_task and task_limit_add methods.

Parameters

  • Accepts the same parameters as add_task

  • add_to_limit int

    How many times the task should be completed

Answer

  • task_id int

    Task identifier

Request

curl -X POST https://unutasks.com/api \
  -d 'api_key=YOUR_API_KEY' \
  -d 'action=add_task_start' \
  -d 'name=Follow the channel' \
  -d 'descr=Follow the channel by the link' \
  -d 'link=https://t.me/channel' \
  -d 'need_for_report=Telegram nick' \
  -d 'price=1.6' \
  -d 'tarif_id=3' \
  -d 'folder_id=0' \
  -d 'add_to_limit=500'
$ch = curl_init('https://unutasks.com/api');
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POSTFIELDS => [
        'api_key' => 'YOUR_API_KEY',
        'action' => 'add_task_start',
        'name' => 'Follow the channel',
        'descr' => 'Follow the channel by the link',
        'link' => 'https://t.me/channel',
        'need_for_report' => 'Telegram nick',
        'price' => '1.6',
        'tarif_id' => '3',
        'folder_id' => '0',
        'add_to_limit' => '500',
    ],
]);
$answer = json_decode(curl_exec($ch), true);
import requests

answer = requests.post('https://unutasks.com/api', data={
    'api_key': 'YOUR_API_KEY',
    'action': 'add_task_start',
    'name': 'Follow the channel',
    'descr': 'Follow the channel by the link',
    'link': 'https://t.me/channel',
    'need_for_report': 'Telegram nick',
    'price': '1.6',
    'tarif_id': '3',
    'folder_id': '0',
    'add_to_limit': '500',
}).json()

Answer

Answer example
{
    "success": true,
    "errors": "",
    "task_id": 10427
}

POST edit_task #

Edits an existing task

Parameters

  • task_id int

    Identifier of the task to edit

  • name text

    Task name

  • descr text

    Task description

  • need_for_report text

    What the performer must provide for the task report

  • price float

    Cost of one task completion in rubles

  • tarif_id int

    Tariff identifier

  • folder_id int

    Identifier of the folder to place the task in

  • need_screen boolean optional

    If the performer needs to attach a screenshot, pass 1

  • anonym_task boolean optional

    Makes the task anonymous

  • time_for_work int optional

    How many hours to give the performer to work, from 2 to 168

  • time_for_check int optional

    How many hours you need to check the task, from 10 to 168

  • limit_per_day int optional

    Limit of completions per day

  • limit_per_hour int optional

    Limit of completions per hour

  • limit_per_user int optional

    Limit of completions for one performer

  • limit_per_user_folder int optional

    Limit from a performer per folder

  • limit_per_ip int optional

    Limit of completions from one IP

  • limit_date_from datetime

    Task start time

  • limit_date_to datetime

    Task stop time

  • limit_only_for_level_id int

    Minimum required performer level (1 - basic or higher, 2 - advanced or higher, 3 - high or higher, 4 - pro or higher)

  • delay_from int optional

    Delay between completions in minutes, from

  • delay_to int optional

    Delay between completions in minutes, to

  • targeting_gender int optional

    Targeting parameter: gender. 1 – female, 2 – male

  • targeting_age_from int optional

    Targeting parameter: age from

  • targeting_geo_country_id int optional

    Geo-targeting parameter: country ID

  • task_only_for_list_id int optional

    ID of the whitelist of performers who will have access to the task

  • targeting_device string optional

    Device targeting parameter: all, mobile, desktop

  • list_of_pages text optional

    Data for even distribution of information among performers

Answer

Only the success flag.

Request

curl -X POST https://unutasks.com/api \
  -d 'api_key=YOUR_API_KEY' \
  -d 'action=edit_task' \
  -d 'task_id=10427' \
  -d 'name=Follow the channel' \
  -d 'price=1.8'
$ch = curl_init('https://unutasks.com/api');
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POSTFIELDS => [
        'api_key' => 'YOUR_API_KEY',
        'action' => 'edit_task',
        'task_id' => '10427',
        'name' => 'Follow the channel',
        'price' => '1.8',
    ],
]);
$answer = json_decode(curl_exec($ch), true);
import requests

answer = requests.post('https://unutasks.com/api', data={
    'api_key': 'YOUR_API_KEY',
    'action': 'edit_task',
    'task_id': '10427',
    'name': 'Follow the channel',
    'price': '1.8',
}).json()

Answer

Answer example
{
    "success": true,
    "errors": ""
}

POST get_tasks #

Returns existing tasks.

Parameters

  • folder_id int optional

    Identifier of the folder from which to show tasks

  • status int optional

    Task status, one or more statuses separated by commas (example: status=4,6)

  • task_id int optional

    Task identifier, one or more ids separated by commas

  • offset int optional

    This parameter sets the offset for the selection; by default the method returns no more than 50 thousand records

Answer

  • tasks array

    Array of tasks

    Each element:

    • id int

      Task identifier

    • name text

      Task name

    • price_rub float

      Cost of one completion in rubles

    • tarif_id int

      Task tariff ID

    • status int

      Current task status

      1
      new task, needs payment (increase limit)
      2
      limit reached
      3
      stopped
      4
      active
      5
      rejected by moderator
      6
      on moderation
    • folder_id int

      Folder identifier

    • limit_total int

      Number of ordered completions

    • done_total int

      Number of completed reports

    • check_total int

      Number of reports under review

    • moder_comment text

      The moderator's comment, only for rejected tasks (status 5)

Request

curl -X POST https://unutasks.com/api \
  -d 'api_key=YOUR_API_KEY' \
  -d 'action=get_tasks' \
  -d 'status=4,6'
$ch = curl_init('https://unutasks.com/api');
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POSTFIELDS => [
        'api_key' => 'YOUR_API_KEY',
        'action' => 'get_tasks',
        'status' => '4,6',
    ],
]);
$answer = json_decode(curl_exec($ch), true);
import requests

answer = requests.post('https://unutasks.com/api', data={
    'api_key': 'YOUR_API_KEY',
    'action': 'get_tasks',
    'status': '4,6',
}).json()

Answer

Answer example
{
    "success": true,
    "errors": "",
    "tasks": [
        {
            "id": "10427",
            "name": "Follow the channel",
            "price_rub": 1.6,
            "status": "4",
            "folder_id": "0",
            "tarif_id": "3",
            "limit_total": "500",
            "done_total": "318",
            "check_total": "12"
        }
    ]
}

POST task_limit_add #

Sets a limit (adds completions) for a specific task. After creating any task, you must set the completion limit for it.

Parameters

  • task_id int

    Task identifier

  • add_to_limit int

    How many times the task should be completed

Answer

Only the success flag.

Request

curl -X POST https://unutasks.com/api \
  -d 'api_key=YOUR_API_KEY' \
  -d 'action=task_limit_add' \
  -d 'task_id=10427' \
  -d 'add_to_limit=500'
$ch = curl_init('https://unutasks.com/api');
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POSTFIELDS => [
        'api_key' => 'YOUR_API_KEY',
        'action' => 'task_limit_add',
        'task_id' => '10427',
        'add_to_limit' => '500',
    ],
]);
$answer = json_decode(curl_exec($ch), true);
import requests

answer = requests.post('https://unutasks.com/api', data={
    'api_key': 'YOUR_API_KEY',
    'action': 'task_limit_add',
    'task_id': '10427',
    'add_to_limit': '500',
}).json()

Answer

Answer example
{
    "success": true,
    "errors": ""
}

POST task_limit_sub #

Sets a limit (removes completions) for a specific task. Changes the completion limit for the task.

Parameters

  • task_id int

    Task identifier

  • sub_to_limit int

    How many completions to remove from the task

Answer

Only the success flag.

Request

curl -X POST https://unutasks.com/api \
  -d 'api_key=YOUR_API_KEY' \
  -d 'action=task_limit_sub' \
  -d 'task_id=10427' \
  -d 'sub_to_limit=100'
$ch = curl_init('https://unutasks.com/api');
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POSTFIELDS => [
        'api_key' => 'YOUR_API_KEY',
        'action' => 'task_limit_sub',
        'task_id' => '10427',
        'sub_to_limit' => '100',
    ],
]);
$answer = json_decode(curl_exec($ch), true);
import requests

answer = requests.post('https://unutasks.com/api', data={
    'api_key': 'YOUR_API_KEY',
    'action': 'task_limit_sub',
    'task_id': '10427',
    'sub_to_limit': '100',
}).json()

Answer

Answer example
{
    "success": true,
    "errors": ""
}

POST task_pause #

Pauses task execution

Parameters

  • task_id int

    Task identifier

Answer

Only the success flag.

Request

curl -X POST https://unutasks.com/api \
  -d 'api_key=YOUR_API_KEY' \
  -d 'action=task_pause' \
  -d 'task_id=10427'
$ch = curl_init('https://unutasks.com/api');
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POSTFIELDS => [
        'api_key' => 'YOUR_API_KEY',
        'action' => 'task_pause',
        'task_id' => '10427',
    ],
]);
$answer = json_decode(curl_exec($ch), true);
import requests

answer = requests.post('https://unutasks.com/api', data={
    'api_key': 'YOUR_API_KEY',
    'action': 'task_pause',
    'task_id': '10427',
}).json()

Answer

Answer example
{
    "success": true,
    "errors": ""
}

POST task_play #

Activates task execution

Parameters

  • task_id int

    Task identifier

Answer

Only the success flag.

Request

curl -X POST https://unutasks.com/api \
  -d 'api_key=YOUR_API_KEY' \
  -d 'action=task_play' \
  -d 'task_id=10427'
$ch = curl_init('https://unutasks.com/api');
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POSTFIELDS => [
        'api_key' => 'YOUR_API_KEY',
        'action' => 'task_play',
        'task_id' => '10427',
    ],
]);
$answer = json_decode(curl_exec($ch), true);
import requests

answer = requests.post('https://unutasks.com/api', data={
    'api_key': 'YOUR_API_KEY',
    'action': 'task_play',
    'task_id': '10427',
}).json()

Answer

Answer example
{
    "success": true,
    "errors": ""
}

POST task_to_top #

One-time boost of the task in search (paid service)

Parameters

  • task_id int

    Task identifier

Answer

Only the success flag.

Request

curl -X POST https://unutasks.com/api \
  -d 'api_key=YOUR_API_KEY' \
  -d 'action=task_to_top' \
  -d 'task_id=10427'
$ch = curl_init('https://unutasks.com/api');
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POSTFIELDS => [
        'api_key' => 'YOUR_API_KEY',
        'action' => 'task_to_top',
        'task_id' => '10427',
    ],
]);
$answer = json_decode(curl_exec($ch), true);
import requests

answer = requests.post('https://unutasks.com/api', data={
    'api_key': 'YOUR_API_KEY',
    'action': 'task_to_top',
    'task_id': '10427',
}).json()

Answer

Answer example
{
    "success": true,
    "errors": ""
}

POST del_task #

Deletes a task

Parameters

  • task_id int

    Task identifier

Answer

Only the success flag.

Request

curl -X POST https://unutasks.com/api \
  -d 'api_key=YOUR_API_KEY' \
  -d 'action=del_task' \
  -d 'task_id=10427'
$ch = curl_init('https://unutasks.com/api');
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POSTFIELDS => [
        'api_key' => 'YOUR_API_KEY',
        'action' => 'del_task',
        'task_id' => '10427',
    ],
]);
$answer = json_decode(curl_exec($ch), true);
import requests

answer = requests.post('https://unutasks.com/api', data={
    'api_key': 'YOUR_API_KEY',
    'action': 'del_task',
    'task_id': '10427',
}).json()

Answer

Answer example
{
    "success": true,
    "errors": ""
}

Reports

POST get_reports #

Returns reports for specific tasks.

Parameters

  • task_id int required

    Task identifier for which to return reports, one or more ids separated by commas

  • offset int optional

    This parameter sets the offset for the selection; by default the method returns no more than 1000 records

Answer

  • reports array

    Array of reports

    Each element:

    • id int

      Report identifier

    • task_id int

      Task identifier

    • worker_id int

      Identifier of the user performing the work

    • is_pro string

      "1" when the worker has an active PRO account

    • price_rub float

      Cost of one completion in rubles

    • status int

      Current report status

      1
      in progress
      2
      under review
      3
      needs revision
      6
      paid
    • ip string

      Performer's IP address

    • messages array

      Array of messages for the report

      Each element:

      • from_id int

        Sender ID

      • to_id int

        Recipient ID

      • date

        Date

      • text

        Message

      • files array

        Array of file links

    • rand_str text

      The line of list_of_pages given to the worker (only for such tasks)

Request

curl -X POST https://unutasks.com/api \
  -d 'api_key=YOUR_API_KEY' \
  -d 'action=get_reports' \
  -d 'task_id=10427'
$ch = curl_init('https://unutasks.com/api');
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POSTFIELDS => [
        'api_key' => 'YOUR_API_KEY',
        'action' => 'get_reports',
        'task_id' => '10427',
    ],
]);
$answer = json_decode(curl_exec($ch), true);
import requests

answer = requests.post('https://unutasks.com/api', data={
    'api_key': 'YOUR_API_KEY',
    'action': 'get_reports',
    'task_id': '10427',
}).json()

Answer

Answer example
{
    "success": true,
    "errors": "",
    "reports": [
        {
            "id": "884213",
            "task_id": "10427",
            "is_pro": "0",
            "worker_id": "34620",
            "price_rub": 1.6,
            "status": "2",
            "messages": [
                {
                    "from_id": "34620",
                    "to_id": "34619",
                    "date": "2026-11-19 11:20:19",
                    "text": "Followed, nick @worker",
                    "files": [
                        "https://unu.im/uploads/reports/a1b2c3.jpg"
                    ]
                }
            ],
            "ip": "10.0.89.86"
        }
    ]
}

POST approve_report #

Accepts (pays for) a report for a task.

Parameters

  • report_id int

    Identifier of the report to approve

Answer

Only the success flag.

Request

curl -X POST https://unutasks.com/api \
  -d 'api_key=YOUR_API_KEY' \
  -d 'action=approve_report' \
  -d 'report_id=884213'
$ch = curl_init('https://unutasks.com/api');
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POSTFIELDS => [
        'api_key' => 'YOUR_API_KEY',
        'action' => 'approve_report',
        'report_id' => '884213',
    ],
]);
$answer = json_decode(curl_exec($ch), true);
import requests

answer = requests.post('https://unutasks.com/api', data={
    'api_key': 'YOUR_API_KEY',
    'action': 'approve_report',
    'report_id': '884213',
}).json()

Answer

Answer example
{
    "success": true,
    "errors": ""
}

POST approve_reports #

Accepts (pays for) several reports at once, up to 500 per request.

Reports that are already checked, not yours or not found are skipped: the rest are accepted anyway. Repeating the call with the same IDs is safe, a report is never paid twice.

Parameters

  • report_ids text

    Report identifiers separated by commas (e.g. 884213,884214) or an array report_ids[]

Answer

  • approved array

    Identifiers of the accepted reports

  • not_found array

    Identifiers of the reports that were not waiting for the check and were skipped

Request

curl -X POST https://unutasks.com/api \
  -d 'api_key=YOUR_API_KEY' \
  -d 'action=approve_reports' \
  -d 'report_ids=884213,884214,884215'
$ch = curl_init('https://unutasks.com/api');
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POSTFIELDS => [
        'api_key' => 'YOUR_API_KEY',
        'action' => 'approve_reports',
        'report_ids' => '884213,884214,884215',
    ],
]);
$answer = json_decode(curl_exec($ch), true);
import requests

answer = requests.post('https://unutasks.com/api', data={
    'api_key': 'YOUR_API_KEY',
    'action': 'approve_reports',
    'report_ids': '884213,884214,884215',
}).json()

Answer

Answer example
{
    "success": true,
    "errors": "",
    "approved": [
        884213,
        884214
    ],
    "not_found": [
        884215
    ]
}

POST reject_report #

Rejects a report for a task.

Parameters

  • report_id int

    Identifier of the report to reject

  • comment text

    Reason for rejection

  • reject_type int

    Which action to perform

    1
    send for revision
    2
    reject

Answer

Only the success flag.

Request

curl -X POST https://unutasks.com/api \
  -d 'api_key=YOUR_API_KEY' \
  -d 'action=reject_report' \
  -d 'report_id=884213' \
  -d 'comment=No screenshot' \
  -d 'reject_type=1'
$ch = curl_init('https://unutasks.com/api');
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POSTFIELDS => [
        'api_key' => 'YOUR_API_KEY',
        'action' => 'reject_report',
        'report_id' => '884213',
        'comment' => 'No screenshot',
        'reject_type' => '1',
    ],
]);
$answer = json_decode(curl_exec($ch), true);
import requests

answer = requests.post('https://unutasks.com/api', data={
    'api_key': 'YOUR_API_KEY',
    'action': 'reject_report',
    'report_id': '884213',
    'comment': 'No screenshot',
    'reject_type': '1',
}).json()

Answer

Answer example
{
    "success": true,
    "errors": ""
}

Folders

POST get_folders #

Returns all created task folders.

Parameters

Only the key and the action.

Answer

  • folders array

    Array of folders

    Each element:

    • id int

      Unique folder identifier

    • name text

      Folder name

Request

curl -X POST https://unutasks.com/api \
  -d 'api_key=YOUR_API_KEY' \
  -d 'action=get_folders'
$ch = curl_init('https://unutasks.com/api');
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POSTFIELDS => [
        'api_key' => 'YOUR_API_KEY',
        'action' => 'get_folders',
    ],
]);
$answer = json_decode(curl_exec($ch), true);
import requests

answer = requests.post('https://unutasks.com/api', data={
    'api_key': 'YOUR_API_KEY',
    'action': 'get_folders',
}).json()

Answer

Answer example
{
    "success": true,
    "errors": "",
    "folders": [
        {
            "id": 0,
            "name": "My tasks"
        },
        {
            "id": "512",
            "name": "Telegram"
        }
    ]
}

POST create_folder #

Creates a new folder.

Parameters

  • name text

    Folder name

Answer

  • folder_id int

    Unique identifier of the created folder

Request

curl -X POST https://unutasks.com/api \
  -d 'api_key=YOUR_API_KEY' \
  -d 'action=create_folder' \
  -d 'name=Telegram'
$ch = curl_init('https://unutasks.com/api');
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POSTFIELDS => [
        'api_key' => 'YOUR_API_KEY',
        'action' => 'create_folder',
        'name' => 'Telegram',
    ],
]);
$answer = json_decode(curl_exec($ch), true);
import requests

answer = requests.post('https://unutasks.com/api', data={
    'api_key': 'YOUR_API_KEY',
    'action': 'create_folder',
    'name': 'Telegram',
}).json()

Answer

Answer example
{
    "success": true,
    "errors": "",
    "folder_id": 512
}

POST del_folder #

Deletes a folder.

Parameters

  • folder_id int

    Identifier of the folder to delete

Answer

Only the success flag.

Request

curl -X POST https://unutasks.com/api \
  -d 'api_key=YOUR_API_KEY' \
  -d 'action=del_folder' \
  -d 'folder_id=512'
$ch = curl_init('https://unutasks.com/api');
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POSTFIELDS => [
        'api_key' => 'YOUR_API_KEY',
        'action' => 'del_folder',
        'folder_id' => '512',
    ],
]);
$answer = json_decode(curl_exec($ch), true);
import requests

answer = requests.post('https://unutasks.com/api', data={
    'api_key': 'YOUR_API_KEY',
    'action': 'del_folder',
    'folder_id': '512',
}).json()

Answer

Answer example
{
    "success": true,
    "errors": ""
}

POST move_task #

Moves a task to the specified folder.

Parameters

  • task_id int

    Task identifier

  • folder_id int

    Identifier of the folder to move the task to

Answer

Only the success flag.

Request

curl -X POST https://unutasks.com/api \
  -d 'api_key=YOUR_API_KEY' \
  -d 'action=move_task' \
  -d 'task_id=10427' \
  -d 'folder_id=512'
$ch = curl_init('https://unutasks.com/api');
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POSTFIELDS => [
        'api_key' => 'YOUR_API_KEY',
        'action' => 'move_task',
        'task_id' => '10427',
        'folder_id' => '512',
    ],
]);
$answer = json_decode(curl_exec($ch), true);
import requests

answer = requests.post('https://unutasks.com/api', data={
    'api_key': 'YOUR_API_KEY',
    'action': 'move_task',
    'task_id': '10427',
    'folder_id': '512',
}).json()

Answer

Answer example
{
    "success": true,
    "errors": ""
}

Reference

POST get_tariffs #

Returns all available tariffs.

Parameters

Only the key and the action.

Answer

  • tariffs array

    Array of tariffs

    Each element:

    • id int

      Unique tariff identifier

    • name text

      Tariff name

    • min_price_rub float

      Minimum cost in rubles

    • group_id int

      Tariff group identifier

Request

curl -X POST https://unutasks.com/api \
  -d 'api_key=YOUR_API_KEY' \
  -d 'action=get_tariffs'
$ch = curl_init('https://unutasks.com/api');
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POSTFIELDS => [
        'api_key' => 'YOUR_API_KEY',
        'action' => 'get_tariffs',
    ],
]);
$answer = json_decode(curl_exec($ch), true);
import requests

answer = requests.post('https://unutasks.com/api', data={
    'api_key': 'YOUR_API_KEY',
    'action': 'get_tariffs',
}).json()

Answer

Answer example
{
    "success": true,
    "errors": "",
    "tariffs": [
        {
            "id": "1",
            "name": "Like",
            "min_price_rub": "1",
            "group_id": "1"
        },
        {
            "id": "3",
            "name": "Follow",
            "min_price_rub": "1",
            "group_id": "1"
        }
    ]
}

POST get_countries #

Returns a list of countries for targeting.

In the GEO-targeting settings of a task, you can select the "CIS and near abroad" parameter (ID 236). It includes the following countries: Russia, Azerbaijan, Armenia, Belarus, Kazakhstan, Kyrgyzstan, Moldova, Tajikistan, Uzbekistan, Ukraine, and Turkmenistan.

Parameters

Only the key and the action.

Answer

  • countries array

    Array of countries

    Each element:

    • id int

      Unique country identifier

    • name text

      Country name

Request

curl -X POST https://unutasks.com/api \
  -d 'api_key=YOUR_API_KEY' \
  -d 'action=get_countries'
$ch = curl_init('https://unutasks.com/api');
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POSTFIELDS => [
        'api_key' => 'YOUR_API_KEY',
        'action' => 'get_countries',
    ],
]);
$answer = json_decode(curl_exec($ch), true);
import requests

answer = requests.post('https://unutasks.com/api', data={
    'api_key': 'YOUR_API_KEY',
    'action': 'get_countries',
}).json()

Answer

Answer example
{
    "success": true,
    "errors": "",
    "countries": [
        {
            "id": 236,
            "name": "CIS"
        },
        {
            "id": "1",
            "name": "Russia"
        }
    ]
}

Worker lists

POST add_blacklist #

Adds a user to the Blacklist

Parameters

  • add_blacklist_id int

    User ID in the system

Answer

  • user_id int

    ID of the added user

Request

curl -X POST https://unutasks.com/api \
  -d 'api_key=YOUR_API_KEY' \
  -d 'action=add_blacklist' \
  -d 'add_blacklist_id=34620'
$ch = curl_init('https://unutasks.com/api');
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POSTFIELDS => [
        'api_key' => 'YOUR_API_KEY',
        'action' => 'add_blacklist',
        'add_blacklist_id' => '34620',
    ],
]);
$answer = json_decode(curl_exec($ch), true);
import requests

answer = requests.post('https://unutasks.com/api', data={
    'api_key': 'YOUR_API_KEY',
    'action': 'add_blacklist',
    'add_blacklist_id': '34620',
}).json()

Answer

Answer example
{
    "success": true,
    "errors": "",
    "user_id": 34620
}

POST get_blacklist #

Returns user IDs from the Blacklist

Parameters

Only the key and the action.

Answer

  • users array

    Array of user IDs in the Blacklist

Request

curl -X POST https://unutasks.com/api \
  -d 'api_key=YOUR_API_KEY' \
  -d 'action=get_blacklist'
$ch = curl_init('https://unutasks.com/api');
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POSTFIELDS => [
        'api_key' => 'YOUR_API_KEY',
        'action' => 'get_blacklist',
    ],
]);
$answer = json_decode(curl_exec($ch), true);
import requests

answer = requests.post('https://unutasks.com/api', data={
    'api_key': 'YOUR_API_KEY',
    'action': 'get_blacklist',
}).json()

Answer

Answer example
{
    "success": true,
    "errors": "",
    "users": [
        "34620",
        "34647"
    ]
}

POST del_blacklist #

Removes a user from the Blacklist.

Parameters

  • id_user_blacklist int

    Identifier of the user in the Blacklist

Answer

Only the success flag.

Request

curl -X POST https://unutasks.com/api \
  -d 'api_key=YOUR_API_KEY' \
  -d 'action=del_blacklist' \
  -d 'id_user_blacklist=34620'
$ch = curl_init('https://unutasks.com/api');
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POSTFIELDS => [
        'api_key' => 'YOUR_API_KEY',
        'action' => 'del_blacklist',
        'id_user_blacklist' => '34620',
    ],
]);
$answer = json_decode(curl_exec($ch), true);
import requests

answer = requests.post('https://unutasks.com/api', data={
    'api_key': 'YOUR_API_KEY',
    'action': 'del_blacklist',
    'id_user_blacklist': '34620',
}).json()

Answer

Answer example
{
    "success": true,
    "errors": ""
}

POST add_whitelist #

Adds a user to the Whitelist

Parameters

  • add_whitelist_id int

    User ID in the system

Answer

  • user_id int

    ID of the added user

Request

curl -X POST https://unutasks.com/api \
  -d 'api_key=YOUR_API_KEY' \
  -d 'action=add_whitelist' \
  -d 'add_whitelist_id=34620'
$ch = curl_init('https://unutasks.com/api');
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POSTFIELDS => [
        'api_key' => 'YOUR_API_KEY',
        'action' => 'add_whitelist',
        'add_whitelist_id' => '34620',
    ],
]);
$answer = json_decode(curl_exec($ch), true);
import requests

answer = requests.post('https://unutasks.com/api', data={
    'api_key': 'YOUR_API_KEY',
    'action': 'add_whitelist',
    'add_whitelist_id': '34620',
}).json()

Answer

Answer example
{
    "success": true,
    "errors": "",
    "user_id": 34620
}