Next Task 6.0.0: a task manager for Joomla PHP2Shell: Is Your Joomla Site Safe? What to Do Today Introducing Next Boards: Kanban project and task boards for Joomla Next Exams 6.2.0: Exam Studio, six visual question types, exam embeds and six new languages Building the Future of Joomla Extensions
NextSoftware
Next Task — Documentation

Get List Members

GET /v1/nexttask/lists/{id}/members

List a list's members

Everyone who can reach the list, which is who its tasks can be assigned to.

Request

GET https://your-site.example/api/index.php/v1/nexttask/lists/{id}/members

Parameters

Name Type In Required Description
id integer path Yes The record the call is about. An id or ids in the body is ignored.

Responses

200 — The members.

{
    "success": true,
    "message": "string",
    "messages": "string",
    "data": {
        "items": [
            {
                "id": 7,
                "name": "Maria Lopez",
                "username": "maria",
                "access": "owner"
            }
        ]
    }
}

Errors

Status Code When
401 No valid API token.
404 NOT_FOUND: no such record, or not one you can reach.

Examples

curl

curl -s "https://your-site.example/api/index.php/v1/nexttask/lists/1/members" \
  -H "X-Joomla-Token: $API_TOKEN"

PHP

<?php
$ch = curl_init('https://your-site.example/api/index.php/v1/nexttask/lists/1/members');

curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER     => [
        'X-Joomla-Token: ' . getenv('API_TOKEN'),
    ],
]);

$response = json_decode(curl_exec($ch), true);
curl_close($ch);

JavaScript

const API_TOKEN = process.env.API_TOKEN;

const response = await fetch("https://your-site.example/api/index.php/v1/nexttask/lists/1/members", {
  headers: {
    "X-Joomla-Token": `${API_TOKEN}`,
  },
});
const data = await response.json();

All Extensions