POST
Mission.StepsList
List mission steps for the logged-in account (Create Mission modal Step dropdown). Reads active rows from missions_steps for the account owner, ordered by status_order. Use the returned id as missions_steps_id on Mission.Add / Mission.Create. Alias: MissionSteps.List.
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
- Runs the Mission.StepsList function and returns JSON.
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.
Required Parameters
No body parameters are required for this function.
Optional Parameters
| Name | Type | Sample | What it gives |
|---|---|---|---|
searchpost | string | Analyze | Search name_en and name_he. Aliases: filter_data, search[value], name. |
startpost | int | 0 | First row offset for paging. Alias: offset. |
limitpost | int | 25 | Maximum rows to return. Values above 25 are capped. Aliases: length, per_page. |
Authentication
Send the bearer token returned by Login in the request header.
Authorization: Bearer YOUR TOKEN
Sample Request
{
"url": "\/app\/Mission.StepsList",
"method": "POST",
"headers": {
"Authorization": "Bearer YOUR TOKEN"
},
"body": {
"limit": "25"
},
"url_user": "https:\/\/{user}.bull36.com\/app\/Mission.StepsList",
"url_domain": "https:\/\/{domain}\/app\/Mission.StepsList"
}Endpoint
POST /app/Mission.StepsList
POST https://{user}.bull36.com/app/Mission.StepsList
POST https://{domain}/app/Mission.StepsListSample Output
{
"success": 1,
"count": 4,
"recordsTotal": 4,
"recordsFiltered": 4,
"total_record": 4,
"start": 0,
"limit": 25,
"data": [
{
"id": 12,
"missions_steps_id": 12,
"data_id": 12,
"name_en": "Analyze Response Quality",
"name_he": "Analyze Response Quality",
"name": "Analyze Response Quality",
"color": "#ffffff",
"status": 1,
"status_order": 1
}
]
}Count Only
Use the matching count route with the same filters when the UI only needs total rows for paging.
{
"url": "\/app\/Mission.StepsList",
"url_user": "https:\/\/{user}.bull36.com\/app\/Mission.StepsList",
"url_domain": "https:\/\/{domain}\/app\/Mission.StepsList",
"method": "POST",
"headers": {
"Authorization": "Bearer YOUR TOKEN"
},
"body": [],
"sample_output": {
"success": 1,
"count": 123
},
"notes": {
"route": "Mission.StepsCount",
"count": "Total matching mission steps for the same filters.",
"max_limit": 25
}
}Count JavaScript
const token = 'YOUR TOKEN';
const body = new URLSearchParams();
const res = await fetch('https://{domain}/app/Mission.StepsList', {
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({ limit: '25' });
const res = await fetch('/app/Mission.StepsList', {
method: 'POST',
headers: { Authorization: 'Bearer ' + token },
body
});
const data = await res.json();
console.log(data.count, data.data);
// Use data.data[i].id as missions_steps_id on Mission.AddError Example
{
"success": "0",
"error": "bearer_token_required",
"message": "Authorization bearer token is required. Send header: Authorization: Bearer YOUR TOKEN"
}