Search jobs with filters
curl --request POST \
--url http://localhost/mogl/mogl-backend/api/searchJob \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"filterByMultiParameter": "test",
"filterCategorySearchKeywords": [],
"filterByPaymentMode": null,
"filterByLocation": null,
"filterByMinPrice": 100,
"filterByMaxPrice": 10000,
"sort_order_req": "most_recent",
"job_id": 1,
"athlete_id": 123,
"ByPassJobViewPreference": "Y",
"first_job_show": "Y",
"allow_private": "Y"
}
'import requests
url = "http://localhost/mogl/mogl-backend/api/searchJob"
payload = {
"filterByMultiParameter": "test",
"filterCategorySearchKeywords": [],
"filterByPaymentMode": None,
"filterByLocation": None,
"filterByMinPrice": 100,
"filterByMaxPrice": 10000,
"sort_order_req": "most_recent",
"job_id": 1,
"athlete_id": 123,
"ByPassJobViewPreference": "Y",
"first_job_show": "Y",
"allow_private": "Y"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
filterByMultiParameter: 'test',
filterCategorySearchKeywords: [],
filterByPaymentMode: null,
filterByLocation: null,
filterByMinPrice: 100,
filterByMaxPrice: 10000,
sort_order_req: 'most_recent',
job_id: 1,
athlete_id: 123,
ByPassJobViewPreference: 'Y',
first_job_show: 'Y',
allow_private: 'Y'
})
};
fetch('http://localhost/mogl/mogl-backend/api/searchJob', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://localhost/mogl/mogl-backend/api/searchJob",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'filterByMultiParameter' => 'test',
'filterCategorySearchKeywords' => [
],
'filterByPaymentMode' => null,
'filterByLocation' => null,
'filterByMinPrice' => 100,
'filterByMaxPrice' => 10000,
'sort_order_req' => 'most_recent',
'job_id' => 1,
'athlete_id' => 123,
'ByPassJobViewPreference' => 'Y',
'first_job_show' => 'Y',
'allow_private' => 'Y'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost/mogl/mogl-backend/api/searchJob"
payload := strings.NewReader("{\n \"filterByMultiParameter\": \"test\",\n \"filterCategorySearchKeywords\": [],\n \"filterByPaymentMode\": null,\n \"filterByLocation\": null,\n \"filterByMinPrice\": 100,\n \"filterByMaxPrice\": 10000,\n \"sort_order_req\": \"most_recent\",\n \"job_id\": 1,\n \"athlete_id\": 123,\n \"ByPassJobViewPreference\": \"Y\",\n \"first_job_show\": \"Y\",\n \"allow_private\": \"Y\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost/mogl/mogl-backend/api/searchJob")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"filterByMultiParameter\": \"test\",\n \"filterCategorySearchKeywords\": [],\n \"filterByPaymentMode\": null,\n \"filterByLocation\": null,\n \"filterByMinPrice\": 100,\n \"filterByMaxPrice\": 10000,\n \"sort_order_req\": \"most_recent\",\n \"job_id\": 1,\n \"athlete_id\": 123,\n \"ByPassJobViewPreference\": \"Y\",\n \"first_job_show\": \"Y\",\n \"allow_private\": \"Y\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost/mogl/mogl-backend/api/searchJob")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"filterByMultiParameter\": \"test\",\n \"filterCategorySearchKeywords\": [],\n \"filterByPaymentMode\": null,\n \"filterByLocation\": null,\n \"filterByMinPrice\": 100,\n \"filterByMaxPrice\": 10000,\n \"sort_order_req\": \"most_recent\",\n \"job_id\": 1,\n \"athlete_id\": 123,\n \"ByPassJobViewPreference\": \"Y\",\n \"first_job_show\": \"Y\",\n \"allow_private\": \"Y\"\n}"
response = http.request(request)
puts response.read_bodySearch jobs with filters
Search jobs. Each job’s configured questions[] carry question_type + metadata (ScreeningQuestionConfig schema). Where applicant answers are returned, answers[] items follow the ScreeningAnswer schema (answer_type + answer_payload).
POST
/
searchJob
Search jobs with filters
curl --request POST \
--url http://localhost/mogl/mogl-backend/api/searchJob \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"filterByMultiParameter": "test",
"filterCategorySearchKeywords": [],
"filterByPaymentMode": null,
"filterByLocation": null,
"filterByMinPrice": 100,
"filterByMaxPrice": 10000,
"sort_order_req": "most_recent",
"job_id": 1,
"athlete_id": 123,
"ByPassJobViewPreference": "Y",
"first_job_show": "Y",
"allow_private": "Y"
}
'import requests
url = "http://localhost/mogl/mogl-backend/api/searchJob"
payload = {
"filterByMultiParameter": "test",
"filterCategorySearchKeywords": [],
"filterByPaymentMode": None,
"filterByLocation": None,
"filterByMinPrice": 100,
"filterByMaxPrice": 10000,
"sort_order_req": "most_recent",
"job_id": 1,
"athlete_id": 123,
"ByPassJobViewPreference": "Y",
"first_job_show": "Y",
"allow_private": "Y"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
filterByMultiParameter: 'test',
filterCategorySearchKeywords: [],
filterByPaymentMode: null,
filterByLocation: null,
filterByMinPrice: 100,
filterByMaxPrice: 10000,
sort_order_req: 'most_recent',
job_id: 1,
athlete_id: 123,
ByPassJobViewPreference: 'Y',
first_job_show: 'Y',
allow_private: 'Y'
})
};
fetch('http://localhost/mogl/mogl-backend/api/searchJob', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://localhost/mogl/mogl-backend/api/searchJob",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'filterByMultiParameter' => 'test',
'filterCategorySearchKeywords' => [
],
'filterByPaymentMode' => null,
'filterByLocation' => null,
'filterByMinPrice' => 100,
'filterByMaxPrice' => 10000,
'sort_order_req' => 'most_recent',
'job_id' => 1,
'athlete_id' => 123,
'ByPassJobViewPreference' => 'Y',
'first_job_show' => 'Y',
'allow_private' => 'Y'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost/mogl/mogl-backend/api/searchJob"
payload := strings.NewReader("{\n \"filterByMultiParameter\": \"test\",\n \"filterCategorySearchKeywords\": [],\n \"filterByPaymentMode\": null,\n \"filterByLocation\": null,\n \"filterByMinPrice\": 100,\n \"filterByMaxPrice\": 10000,\n \"sort_order_req\": \"most_recent\",\n \"job_id\": 1,\n \"athlete_id\": 123,\n \"ByPassJobViewPreference\": \"Y\",\n \"first_job_show\": \"Y\",\n \"allow_private\": \"Y\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost/mogl/mogl-backend/api/searchJob")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"filterByMultiParameter\": \"test\",\n \"filterCategorySearchKeywords\": [],\n \"filterByPaymentMode\": null,\n \"filterByLocation\": null,\n \"filterByMinPrice\": 100,\n \"filterByMaxPrice\": 10000,\n \"sort_order_req\": \"most_recent\",\n \"job_id\": 1,\n \"athlete_id\": 123,\n \"ByPassJobViewPreference\": \"Y\",\n \"first_job_show\": \"Y\",\n \"allow_private\": \"Y\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost/mogl/mogl-backend/api/searchJob")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"filterByMultiParameter\": \"test\",\n \"filterCategorySearchKeywords\": [],\n \"filterByPaymentMode\": null,\n \"filterByLocation\": null,\n \"filterByMinPrice\": 100,\n \"filterByMaxPrice\": 10000,\n \"sort_order_req\": \"most_recent\",\n \"job_id\": 1,\n \"athlete_id\": 123,\n \"ByPassJobViewPreference\": \"Y\",\n \"first_job_show\": \"Y\",\n \"allow_private\": \"Y\"\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
JWT Bearer token authentication. Use the /api/login endpoint to obtain a token.
Query Parameters
Page number
Example:
1
Items per page (default 10)
Example:
10
Body
application/json
Search keyword (matches job name and creator name)
Example:
"test"
Array of category IDs
Example:
[]
Filter by payment mode
Available options:
Cash, Product Example:
null
Filter by state/location
Example:
null
Minimum price filter
Example:
100
Maximum price filter
Example:
10000
Sort order
Available options:
pay_highest, name_asc, name_desc, most_recent Example:
"most_recent"
Filter by specific job ID
Example:
1
Athlete ID (for agent context)
Example:
123
Bypass job view preference filter
Available options:
Y Example:
"Y"
Show only current user's jobs
Available options:
Y Example:
"Y"
Available options:
Y Example:
"Y"
Response
200
Search results