POST

Mission.List

Return structured mission/task rows for the active user from

Permissions

  • User must be logged in with a valid bearer token.
  • Returned or changed records are limited by the user permissions, team access, folder access, and account settings.

Action

  • Returns Mission rows as JSON.
  • Supports the documented filters and paging fields.
  • List responses are capped at 25 rows per call.

Push Service

No push is sent because this function only reads data or returns helper information.

Automation

No automation is run for this function.

Special Instructions

  • Send the bearer token on protected calls with Authorization: Bearer YOUR TOKEN.
  • Send parameters as POST body fields exactly as documented.
  • For paging, do not request more than 25 rows.
  • For total rows, call the matching Count function with the same filters.

Required Parameters

No body parameters are required for this function.

Optional Parameters

NameTypeSampleWhat it gives
start
post
int0First row offset for paging.
length
post
int25Maximum number of missions to return. Values above 25 are capped to 25.
limit
post
int25Alternative page-size field mapped to length. Values above 25 are capped.
per_page
post
int25Alternative page-size field mapped to length. Values above 25 are capped.
type
post
stringtoday_tasksTask list type: today_tasks, priority_tasks, upcoming_tasks, done_tasks, show_all_together_tasks, or private_tasks.
include_counts
post
int1When 1, first-page response includes tab_counts and scope_counts. Send 0 to skip extra count queries for faster paging.
create_by
post
stringmy_taskTask ownership filter: my_task, created_by_me, or all_my_team_task. If omitted, the user default mission task setting is used.
create_by_users
post
array|string47,48Filter by creator user ids.
filter_mission_by_organization_user
post
array|string47Filter by assigned organization user. Checks mission member_id and sub_missions users.
branch_team_member
post
string47,48Comma-separated team member ids for branch/team filtering.
filter_mission_by_mission_step
post
array|string1,2Filter by mission step ids.
mission_stap
post
array|int1Legacy mission-step filter accepted by the old mission screen.
mission_color
post
array|stringred,yellowFilter missions by Choose Color values: transparent, yellow, red, green, blue. Alias: color.
project_column
post
stringto_doFilter by project column. Common values: to_do, queries, testing, done, plus account custom columns.
mission_name
post
stringcallFilter by mission title text.
project_name
post
stringWebsiteFilter by joined project name.
client_name
post
stringDanaFilter by joined customer/contact name.
search
post
stringcallSearch mission title, mission note, or joined customer name.
search[value]
post
stringcallDataTables search text when sent by an existing grid.
show_done_mission
post
int0Include done missions in scope/counts. Done tab forces done visibility.
show_private_mission
post
int0Include private missions that the logged-in user created/owns. Private missions from other users remain hidden.
scope_show_private_mission
post
int1Controls whether scope_counts include own private missions.
show_all_projects_missions
post
int0Include all missions from visible projects. When 0, grouped project logic returns the next/top mission per project.
merge_today_by_priority
post
int0When 1, overdue priority missions are merged into the Today tab and the Priority tab count/list is adjusted.
all_task
post
int0When 1, disables backend paging. SDK callers should normally keep 0 so the app limit cap is enforced.
date_from_due
post
date2026-07-01Due-date filter start. Send date filters and date values as UTC Y-m-d H:i:s when the route accepts date/time; date-only table columns store the Y-m-d date part.
date_to_due
post
date2026-07-31Due-date filter end. The selected day is included. Send date filters and date values as UTC Y-m-d H:i:s when the route accepts date/time; date-only table columns store the Y-m-d date part.
date_from
post
date2026-07-01Created-date filter start. Send date filters and date values as UTC Y-m-d H:i:s when the route accepts date/time; date-only table columns store the Y-m-d date part.
date_to
post
date2026-07-31Created-date filter end. The selected day is included. Send date filters and date values as UTC Y-m-d H:i:s when the route accepts date/time; date-only table columns store the Y-m-d date part.
show_task
post
int1Updates the logged-in user default mission task view. Use carefully from settings UI only.
only_create_by_counts
post
int1Return only mission creator/count data when supported.
order_by
post
stringdate_to_doColumn/key to order by when supported by the backend.
sort
post
stringdate_descSort preset when supported.
order_dir
post
stringdescOrder direction: asc or desc.

Authentication

Send the bearer token returned by Login in the request header.

Authorization: Bearer YOUR TOKEN

Sample Request

{
    "url": "\/app\/Mission.List",
    "method": "POST",
    "headers": {
        "Authorization": "Bearer YOUR TOKEN"
    },
    "body": {
        "type": "today_tasks",
        "start": "0",
        "limit": "25",
        "include_counts": "1"
    },
    "url_user": "https:\/\/{user}.bull36.com\/app\/Mission.List",
    "url_domain": "https:\/\/{domain}\/app\/Mission.List"
}

Endpoint

POST /app/Mission.List
POST https://{user}.bull36.com/app/Mission.List
POST https://{domain}/app/Mission.List

Sample Output

{
    "success": 1,
    "rows": [
        {
            "id": 500,
            "mission_id": 500,
            "mission": "Call customer",
            "project_name": "Sales",
            "customer_name": "Demo Customer",
            "private": false,
            "is_done": false
        }
    ],
    "data": [
        {
            "id": 500,
            "mission_id": 500,
            "mission": "Call customer"
        }
    ],
    "total_record": 30
}

Count Only

Use the matching count route with the same filters when the UI only needs total rows for paging.

{
    "url": "\/app\/Mission.Count",
    "url_user": "https:\/\/{user}.bull36.com\/app\/Mission.Count",
    "url_domain": "https:\/\/{domain}\/app\/Mission.Count",
    "method": "POST",
    "headers": {
        "Authorization": "Bearer YOUR TOKEN"
    },
    "body": {
        "type": "today_tasks",
        "include_counts": "1"
    },
    "sample_output": {
        "success": 1,
        "count": 123
    },
    "notes": {
        "total_record": "Total missions matching the sent filters.",
        "rows": "Current page rows; page size is capped at 25."
    }
}

Count JavaScript

const token = 'YOUR TOKEN';
const body = new URLSearchParams();
body.set('type', 'today_tasks');
body.set('include_counts', '1');

const res = await fetch('https://{domain}/app/Mission.Count', {
  method: 'POST',
  headers: { Authorization: `Bearer ${token}` },
  body
});
const data = await res.json();
console.log(data.count);

JavaScript Example

const token = 'YOUR TOKEN';
const body = new URLSearchParams({ type: 'today_tasks', start: '0', limit: '25', include_counts: '1' });

const res = await fetch('/app/Mission.List', {
  method: 'POST',
  headers: { Authorization: `Bearer ${token}` },
  body
});

const data = await res.json();
console.log(data.rows, data.tab_counts);

Error Example

{
    "success": "0",
    "error": "bearer_token_required",
    "message": "Authorization bearer token is required. Send header: Authorization: Bearer YOUR TOKEN"
}