MENU navbar-image

Introduction

LaraClassifier API specification and documentation.

This documentation aims to provide all the information you need to work with our API.

Important: By default the API uses an access token set in the /.env file with the variable APP_API_TOKEN, whose its value need to be added in the header of all the API requests with X-AppApiToken as key. On the other hand, the key X-AppType must not be added to the header... This key is only useful for the included web client and for API documentation.

Also, by default the default app's country will be selected if the countryCode query parameter is not filled during API calls. If a default country is not set for the app, the most populated country will be selected. Same for the language, which the default app language will be selected if the languageCode query parameter is not filled.

Authenticating requests

To authenticate requests, include an Authorization header with the value "Bearer {YOUR_AUTH_KEY}".

All authenticated endpoints are marked with a requires authentication badge in the documentation below.

You can retrieve your token by visiting your dashboard and clicking Generate API token.

Authentication

Log in

Example request:
curl --request POST \
    "https://demo.laraclassifier.local/api/auth/login" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --data "{
    \"email\": \"user@demosite.com\",
    \"password\": \"123456\",
    \"auth_field\": \"email\",
    \"phone\": null,
    \"phone_country\": null,
    \"captcha_key\": \"voluptatum\"
}"
const url = new URL(
    "https://demo.laraclassifier.local/api/auth/login"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

let body = {
    "email": "user@demosite.com",
    "password": "123456",
    "auth_field": "email",
    "phone": null,
    "phone_country": null,
    "captcha_key": "voluptatum"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/auth/login';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'json' => [
            'email' => 'user@demosite.com',
            'password' => '123456',
            'auth_field' => 'email',
            'phone' => null,
            'phone_country' => null,
            'captcha_key' => 'voluptatum',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/auth/login

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

Body Parameters

email   string  optional  

The user's email address or username (Required when 'auth_field' value is 'email'). Example: user@demosite.com

password   string   

The user's password. Example: 123456

auth_field   string   

The user's auth field ('email' or 'phone'). Example: email

phone   string  optional  

The user's mobile phone number (Required when 'auth_field' value is 'phone').

phone_country   string   

The user's phone number's country code (Required when the 'phone' field is filled).

captcha_key   string  optional  

Key generated by the CAPTCHA endpoint calling (Required when the CAPTCHA verification is enabled from the Admin panel). Example: voluptatum

Log out

requires authentication

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/auth/logout/6" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/auth/logout/6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/auth/logout/6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": "You have been logged out. See you soon.",
    "result": null
}
 

Request      

GET api/auth/logout/{userId}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

userId   integer  optional  

The ID of the user to logout. Example: 6

Forgot password

Example request:
curl --request POST \
    "https://demo.laraclassifier.local/api/auth/password/email" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --data "{
    \"email\": \"user@demosite.com\",
    \"auth_field\": \"email\",
    \"phone\": null,
    \"phone_country\": null,
    \"captcha_key\": \"architecto\"
}"
const url = new URL(
    "https://demo.laraclassifier.local/api/auth/password/email"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

let body = {
    "email": "user@demosite.com",
    "auth_field": "email",
    "phone": null,
    "phone_country": null,
    "captcha_key": "architecto"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/auth/password/email';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'json' => [
            'email' => 'user@demosite.com',
            'auth_field' => 'email',
            'phone' => null,
            'phone_country' => null,
            'captcha_key' => 'architecto',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/auth/password/email

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

Body Parameters

email   string  optional  

The user's email address or username (Required when 'auth_field' value is 'email'). Example: user@demosite.com

auth_field   string   

The user's auth field ('email' or 'phone'). Example: email

phone   string  optional  

The user's mobile phone number (Required when 'auth_field' value is 'phone').

phone_country   string   

The user's phone number's country code (Required when the 'phone' field is filled).

captcha_key   string  optional  

Key generated by the CAPTCHA endpoint calling (Required when the CAPTCHA verification is enabled from the Admin panel). Example: architecto

Reset password token

Reset password token verification

Example request:
curl --request POST \
    "https://demo.laraclassifier.local/api/auth/password/token" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --data "{
    \"code\": null
}"
const url = new URL(
    "https://demo.laraclassifier.local/api/auth/password/token"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

let body = {
    "code": null
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/auth/password/token';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'json' => [
            'code' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/auth/password/token

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

Body Parameters

code   string   

Verification code (received by SMS).

Reset password

Example request:
curl --request POST \
    "https://demo.laraclassifier.local/api/auth/password/reset" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --data "{
    \"email\": \"john.doe@domain.tld\",
    \"token\": \"qui\",
    \"phone_country\": null,
    \"password\": \"js!X07$z61hLA\",
    \"auth_field\": \"email\",
    \"phone\": null,
    \"password_confirmation\": \"js!X07$z61hLA\",
    \"captcha_key\": \"ut\"
}"
const url = new URL(
    "https://demo.laraclassifier.local/api/auth/password/reset"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

let body = {
    "email": "john.doe@domain.tld",
    "token": "qui",
    "phone_country": null,
    "password": "js!X07$z61hLA",
    "auth_field": "email",
    "phone": null,
    "password_confirmation": "js!X07$z61hLA",
    "captcha_key": "ut"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/auth/password/reset';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'json' => [
            'email' => 'john.doe@domain.tld',
            'token' => 'qui',
            'phone_country' => null,
            'password' => 'js!X07$z61hLA',
            'auth_field' => 'email',
            'phone' => null,
            'password_confirmation' => 'js!X07$z61hLA',
            'captcha_key' => 'ut',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/auth/password/reset

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

Body Parameters

email   string  optional  

The user's email address or username (Required when 'auth_field' value is 'email'). Example: john.doe@domain.tld

token   string   

Example: qui

phone_country   string   

The user's phone number's country code (Required when the 'phone' field is filled).

password   string   

The user's password. Example: js!X07$z61hLA

auth_field   string   

The user's auth field ('email' or 'phone'). Example: email

phone   string  optional  

The user's mobile phone number (Required when 'auth_field' value is 'phone').

password_confirmation   string   

The confirmation of the user's password. Example: js!X07$z61hLA

captcha_key   string  optional  

Key generated by the CAPTCHA endpoint calling (Required when the CAPTCHA verification is enabled from the Admin panel). Example: ut

Email: Re-send link

Re-send email verification link to the user

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/password/35/verify/resend/email?entitySlug=users" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/password/35/verify/resend/email"
);

const params = {
    "entitySlug": "users",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/password/35/verify/resend/email';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'entitySlug' => 'users',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": false,
    "message": "Your Email Address is already verified.",
    "result": null,
    "extra": {
        "emailVerificationSent": false
    }
}
 

Request      

GET api/password/{id}/verify/resend/email

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

id   string   

The ID of the password. Example: 35

entityId   integer  optional  

The entity/model identifier (ID).

Query Parameters

entitySlug   string  optional  

The slug of the entity to verify ('users' or 'posts'). Example: users

SMS: Re-send code

Re-send mobile phone verification token by SMS

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/password/558550035/verify/resend/sms?entitySlug=users" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/password/558550035/verify/resend/sms"
);

const params = {
    "entitySlug": "users",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/password/558550035/verify/resend/sms';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'entitySlug' => 'users',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": false,
    "message": "Entity ID not found.",
    "result": null
}
 

Request      

GET api/password/{id}/verify/resend/sms

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

id   string   

The ID of the password. Example: 558550035

entityId   integer  optional  

The entity/model identifier (ID).

Query Parameters

entitySlug   string  optional  

The slug of the entity to verify ('users' or 'posts'). Example: users

Verification

Verify the user's email address or mobile phone number

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/password/verify/email/?entitySlug=users" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/password/verify/email/"
);

const params = {
    "entitySlug": "users",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/password/verify/email/';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'entitySlug' => 'users',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (400):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": false,
    "message": "The token or code to verify is empty.",
    "result": null
}
 

Request      

GET api/password/verify/{field}/{token?}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

field   string   

The field to verify. Example: email

token   string  optional  

The verification token.

Query Parameters

entitySlug   string  optional  

The slug of the entity to verify ('users' or 'posts'). Example: users

Captcha

Get CAPTCHA

Calling this endpoint is mandatory if the captcha is enabled in the Admin panel. Return JSON data with an 'img' item that contains the captcha image to show and a 'key' item that contains the generated key to send for validation.

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/captcha" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/captcha"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/captcha';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "sensitive": false,
        "key": "eyJpdiI6IkFxUVNlSzhNSUV1WG1BVk5XU2QwMEE9PSIsInZhbHVlIjoic2VoMUhGVlVMM2dHOXY2MlFkSnc0bXBFb1B2dnp5d0o5R2g2K1dVMTBhQm5ad1p6Wkw0WmZoUXFTYmdlRndlcEFTeGNTWWRSYVRVTURLK1FRbjZxZHNUZFBjTno5T1E5aEtkejRZNjgzdEk9IiwibWFjIjoiMmY5YTE5ZWE5MGYwNTdkZWFkNzc2ZWY1ZWE5YjRjMzdhNWRhOGUyNGE0NjJiMzQ5OWUyMTJhNTdhMDNjMzdiZSIsInRhZyI6IiJ9",
        "img": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAAyCAYAAADbYdBlAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAABgAAAAYADwa0LPAAAQpUlEQVR42u2d2XNb133HP+fcDRsBkAAJkpJMyZZsybbk3ZZteamX2OmMm8R9SNM0D22mM01nkvYf6ExfOnnoW97aTjN5sdukHbvNTF3XzSSxLS+xFVm1Zde7qZ0UQYIg9rudPoAEcQGIIgAukKvvDGd07nLOPfd+8T2/8/v9zpH48XP/obiKAEpln88/raHpAsMQ6DoMD+skk9p2PxrHjpV5/bVio3zoljAPPzy0IXW/WLvApAwzpUdJCGNL+qNvSStXGE6fsvnVrwqBY488OkQyGd7uRyMSloFytbIx+pHzbX5dm22Ub9ITfCeyZ9P7I/uv4suHmRmn7VhmfGsU4XKQLSLsq40h4LRXCpRT0tqa/mxJK1cYZlsIqOuCVGowBotczmt7to3AqRYC7tajW9KfwXirAwTXU2SzbuDYWEZHbsx37gs1W/H+ycrqAQHpcY2K8qjhUVU+FeVSVC4F32VJOSz6Ngu+TdavUVZux3pv0OPkVfBHN6VdJeC2YO6ii+8Hj41vwfCrAA+Fq3xsfKrKo6I8Sstkyrk2702XKDxk48U9vEhdCX8GUOinZcj6NRb8WqOclhZRsTXUuErAFszOttt/3RJQAX4TmWrKb5CpqFyWfIdFZZPzbeZ9O/Dx18TOzenzfEv7u7dI/eAqAdswM9M+TI1mdGx8bOVTUx5V5VFSXn2oUw55f5VMWb+Gz5Xt2ZraIvsP/p8RUAEKhYvCUXVCVfCo+B5F5VBQLu+OLlGedPCGPNy4izIUP1TnYWm7n37rsFX2H1yCgEvK4aSTJy4NdsowSWlu9zvpCB+1bDepvozwAPZtd682D6aQpKXFiLQYFgYJaRITOv9aOYNL3fCNCJ1RGdqyZ+pIwPNehZ9XzwLwsJXhSWuicS6vHE67JQrKAQQRoZHRQmRkCElvU8X0S8+B61BLDlNJDJO7/mYqmggY4Stkyqk6mZZ8p6e2viyQCNLSIiVNhqVJQpoMCYOY0IkKjZDQsISGKSQaAono+HXOeuUG+QCmtEiPX7E3dCRgvunjVlV9tvW5V+Sl6oU2h+UKokLnkJHkEStDTBjdGeGHrw1WVvloC1/BYGBkhUzC5Mz7HpWLICsSWZNotuTBw3FuviGMLuQlydQLWv1/U3psS/t9ySF4BVXl8ao9xwvVc2ua1iXl8oad5Q07u6UdGETEpUFaWgwLk6Q0iQuDIakTFTrhZXUykejL6tRMpg/er3L2tSUiTcceezzOjfs3Z1hsFZQ9LfafAmzlowuBtgnaqAN85hYbRnjetznp5hsXnHBynHBym9L5KwFhNBKeSdw3SQiDlGmSCtVtp7DQCQmJhdb4QL2aISv48MNqoHzgQIgbb9w8m+yUu0pAU0h2aRFKyuWd5e9+wavgLUtPXBjs1CLsN+LcqCeIbYCvUAf4h/Knm9bBQYLuA7kyWqGGVqwhSzay4iArLo8cPsJrv5AIRyC8+l+z5BeX/84BluUwuUOwZ4/G3r06odDGRTRbozA3HNg88uV8OzDa7dfjvOss8lz1DLby265fUg4fuHk+cPP8nLPcYaZ4zBpnqA8iXrFumFYjPHPuLDvee4dEpcpQrYYc28nSV/8gYIR7nsePfvLjjvUdff4FdPEU6wmP12qKLz6v8cXnNV55ucjBQ2HuuSeKafY/RDlO0NCJRjYvXN86/E67Jd51Ftd1r4viN3aW951Fvh3ZzR6tN9txYAiY9iU7zp9jtFAiXSxjTl6L3HeoYTdZQjbsplYjXDg217z4j2jllRcqOPvV77QNEbqm8e0//AbPPPt8x2fw1YdIcWNXz+26ineOl/niixpf+3qSRLy/nEHTFFSaUqw8r4/KLoPWCciKGqakxUPWGHu1IWJSR6l6tOSsX+akk+djd9UpWlQuPyl/zvei1zPeg/tGh3rsL7vecFAXuF4fYpcWXZcRLlyX3f/1zwi3PgRV5qtcOHBkXe0k3nm9iXxQuuFm7MyOjtdmxtLcfdetvPX2ibZzPp8gmESQRErYtcsEUSeBbfsUlnwqFb9jvYs5j3/5aY5vfmuYoVjvJIxGZaCNUsljLZ2o1nxKRZ9wWBLpUi07eTQOGkm+GZ5Cb/6JC5jUwkxqYe42UpzxyjxTmWbRtwGoKZ9/q5zhz6LdO1F1qDP+UgS0hEZGhhiRwRldJyO8qjz+pvB+495HrPF1xxWVrlOd3E34dN0eDZ0/Bb7XngDXAuHYJN56uemAYOH+J9a85/Dh2zsSEMBTL6OLpxgbs/ja15Nt54tFn+npGu/+T6XNXiuXfX75i0LH+9aLWEySbXIknDvn4HlQLHoUi3WyFYsexVL9365bV8sHH4xx622RdbdTVR6zXiVwbJcW4VvhqctOpHZpEb4buY4flT7CWbYVp70S570Kk1p3Sbs6wB9HVv1wX3hF/q60Oin5fvR60utMTswpO1AOie6UoDK1t0FA4ThYM2epTU6teU/i+GtoldVfcuHG23FSY2t3eh1DcWb8jo7nYjHJzTeHuenmMCeOlzl6tEhzTuipUzbnzjns2NFbBk20RT2P/7a8rvuKJX9d163gtFcOuNUE8HR417pn8aPS4lZjmLft+dW+e6WuCdim2c0RBolgpIswXGt0It7luoLK1N5AOXzmszWvF06NxNur6qekRu7+x9fV1spQ3Ak+nxAOrx38FcBtt0e45ZZ21fnooyq9IhbrbdJRKnZHwFb773o9zoTsjjyto9uCb3d1P3QgYHNi4pDUu/JrNU/pdSSRLhWwNr4T31o1ZENnPl/z+rr6rSpE4dDduImRdbd3+PDtlzx39PUXcNcxA7j9znYCzlzoPUx4OQIKUbcTMxmDa6+zOHRLmPvui3GgS1/htFcMlA+bqa6f1Wr5vr34ANqs22YV61bBmkN4CdnDECQk1Z3XEvnsAwBC56bB90G2f5S6+r3SKCtdJ3fvo911/jJD8ZtvHufI/XetWUcsKkkkNfKLq2QtdqlGzRge1tm1yyQak8RiklhMIxqt/zsa1YhEZd/Z2T6KM97qD1dHslfvfmVdpSW5I9yl4NTbbkGzinVLouZ7uyVvo1NTexsElLaNNXuO2sSutusSx18PqN/SbffhxeJdtzecTCHFPnz1Sdu5t94+wb59e8iMpdesIxyS5FkloG33TsDJSYNvPJ3s+f714IJXCTia9+hRjB6WB816QVNjTOveDbOmDdgtiQL39qKAtNuBnYbhVvXzTYvcPb/TU3uzsw6S/Zc8/8yzz192KPb9oPPYMAZgAckaaHW/XNujE/m0F5wg9eIHbCdgs4p1mQe4EQpop8fxoqsvJHy2nYCJ428EZr75Ox/AD/eWRDk74wISTTx0yWvefPP4mnVUqkECbmRobjMw3ZYB0/27c1GcayJgTOjdL+X0vbVtwG5Xx/dtAy6jcs1eYv97AgDr/KnAOeHYJI6tznz9UIT8nQ/23NbKGmBBEsk+fLobil1PUSwEFXIQdlBYC80JCBqCXdr6/YcrOOuVG0kK0JRFrRTCc5G2jaxVkOUSemkJfWkRY3EeIzeHmZ1FK9a9DAEClpSL21RpN8Oooh6Wadzbx9YOzQTUKmWMXBZnuP7x4yfeCEQ9Fu95ODBz7hbNi5Ck2N/RFoT6UPyD7/8JuhYk18K8R+va8JGRgYlwtqE1AWFSC6/P/vM9pOMg7SqyUsbNn+GR3FlGCyUm8gUO5MsMZ+e6fp7Am1pSvfvxCsoJLMbp1QaEdjvQmjmDM5xGuC7JJtvPiw6Rv/3+ntspFD1KAQeuZM/U43xx6r87Xt9pVjw31+5yGR0bXAI2D79SKfYqC61cRFYraJUSWnEJfSmHsbiAsXCxrlblYls9G7VAL/Cm8i2O5G6G0X6d0M1wEyO4iRH0/AIA1sw5igduY+jk22il1UWwuXsfRem9tzPbYQXc7t1jjI51jhV3Goo7raLLZLZzGw+F8HyEayNrdbXSywW0Qh4jn+Ng9jT3zM+xM5fvv6kNwCUVcCVhYL1oU88+FBDqKjj07lsAmNkLoBSJY6vq58aHWTp0T19tzHbaAyZjMJa5dKy4dShurcOyBMnhTbABlY9wXaRdQ9YqaOW6WhlLOfTFecyFOcy5GWR17dBdcuOfrC8ECLhLi/CENUFeOV17tZvVMyr0YDZFD2gmoLEwR/TT9zFyq3HH3P2Pgdbfh27dhEhKGBvT0TWxLge14yjm54MKmMkYXfRcITwPsWxbaZUSWqmAXsijLy5g5LKY87MYC93bVoMOZZjYo+NBAk7IMBNWb1uQlZonIH2qH9QnIivQC0skf/PrRtkZHqVw0x091Nr0AhRcvBgkTyqlNzb7WStta2Uodp1E2wQkM26A7y/PBGvIahmtXEIv5uszwdz8sm01g6z1HjMeVDjJFE46gz08ipscwR1K4EWH8MJRfCuEMkyU1OoxRTYwIfUxa5wHzDGWlBNY5tcrvEgMOz2OmZ0B5WNdON04t3DkKyD687XNL7ht2cetW3A0p20JQENh4hNWPkef+SfuPXAfR/x5UirPqFpgXM2TProIRzfqrQ4GfCuEnR7HGRnDGU7x72aZU2GDpbBFybL4i5FDhPRQx5Dp5bCh0zVLSEbFxu0rV5naWydgE+yxCUr7D/Vd94rtJvExcLGUzd5oldDpi8tqlcPIzfPDZAlrbgaz04/qvZ9u5OvbclRG0vipcZzhdLtamSGUYaA0jeY0g5Jy+c/CyUZ5TIYImd37EVcwuP4C6gRM/DYoJwtHnuSyeRdqxbaqO0MbttXSIkZ+AWMhy+jZCzxlLwbve4UrHn4ogj06jj0yiptM4cSH8WJx3EiUv3WmWTQkjqYRkjp/NXSwa0t9o/cRHGgCKi34eNXJKcrXHWiUw6c+RSvW3Qv6YhZz/iLm3AzCW8cWHFcY7FQGJ53BGU7jJIbxhhK4kSH8cKRuW+kmSpOs9eP8c5XmtFfilFdC0Vv61LTbEsbrcx+ZgSbgyNGXAuXcA8FU+4mf/f12P2JfqNu5mbptlRzBXVYrLxzFD4XxDROl633buyuwhGSfPsS+HlKvVtCmgF9WAkY/PhmYeFSm9gZmxoMMe3QCOzVWt60SI7ixBF40VlcrM4RvGJdd6zKI2JAEhBYMJgF9n5FXXwwcWnjgyW19JC8Wp5Ya49iZLFlhsIDOktApi3upijSOMPnu98bRjcHOhOkHWb+GFIIV39NGbOM2kARMHHsVY+Fio1zcfwu1iWvarrNHJzDnLvTekJTURica7oVmtfJCEZRl4etBtTIuZvnls89j6NejvBtYyWhLp/QvNfmgnu/310MHueBVmfaKG7KT/sARMHzq04D6KcNk4aHf7XitnRrrSEB3KLlsW43WSRVP4kbj+JEo3oozVNMbztBukBlL85c/+FM+/rjKzIzD7IxLNusOzH/jsNmQCHZoYXZ0ufrtUhDb8T8lGdlZvNgQfmjVfyRcl/g7rzPy6ouBWezcE79Poc+Y72bD8xSOowY+EXUQsS0KOHL0RaKffICbSOLERxC+hzl3HmkHl/UVDt498OQD0DSBpg12Gv6gYlsIqC8tAgo9n0PPd976rXDwLuaeeHobX81VbAW2hYBuMoWZnUF0WOzjJFPkjnyF4oHbtvvdXMUWYFsIOPt7f4RwbMy5C5gLcwi7im+F6yGksR39N3AVVwy2bRasDJPa5NRl9365ii83rk7brmJbcZWAV7Gt+D8wcz25LE1jJAAAAABJRU5ErkJggg=="
    }
}
 

Request      

GET api/captcha

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

Categories

List categories

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/categories?parentId=0&nestedIncluded=0&embed=&sort=-lft&perPage=2&page=1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/categories"
);

const params = {
    "parentId": "0",
    "nestedIncluded": "0",
    "embed": "",
    "sort": "-lft",
    "perPage": "2",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/categories';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'parentId' => '0',
            'nestedIncluded' => '0',
            'embed' => '',
            'sort' => '-lft',
            'perPage' => '2',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "data": [
            {
                "id": 1,
                "parent_id": null,
                "name": "Automobiles",
                "slug": "automobiles",
                "description": "",
                "hide_description": null,
                "image_path": "app/default/categories/fa-folder-default.png",
                "icon_class": "fa-solid fa-car",
                "seo_title": "",
                "seo_description": "",
                "seo_keywords": "",
                "lft": 1,
                "rgt": 10,
                "depth": 0,
                "type": "classified",
                "is_for_permanent": 0,
                "active": 1,
                "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png",
                "parentClosure": null
            },
            {
                "id": 9,
                "parent_id": null,
                "name": "Phones & Tablets",
                "slug": "phones-and-tablets",
                "description": "",
                "hide_description": null,
                "image_path": "app/default/categories/fa-folder-default.png",
                "icon_class": "fa-solid fa-mobile-screen-button",
                "seo_title": "",
                "seo_description": "",
                "seo_keywords": "",
                "lft": 11,
                "rgt": 17,
                "depth": 0,
                "type": "classified",
                "is_for_permanent": 0,
                "active": 1,
                "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png",
                "parentClosure": null
            }
        ],
        "links": {
            "first": "https://demo.laraclassifier.local/api/categories?page=1",
            "last": "https://demo.laraclassifier.local/api/categories?page=6",
            "prev": null,
            "next": "https://demo.laraclassifier.local/api/categories?page=2"
        },
        "meta": {
            "current_page": 1,
            "from": 1,
            "last_page": 6,
            "links": [
                {
                    "url": null,
                    "label": "« Previous",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/categories?page=1",
                    "label": "1",
                    "active": true
                },
                {
                    "url": "https://demo.laraclassifier.local/api/categories?page=2",
                    "label": "2",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/categories?page=3",
                    "label": "3",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/categories?page=4",
                    "label": "4",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/categories?page=5",
                    "label": "5",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/categories?page=6",
                    "label": "6",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/categories?page=2",
                    "label": "Next »",
                    "active": false
                }
            ],
            "path": "https://demo.laraclassifier.local/api/categories",
            "per_page": 2,
            "to": 2,
            "total": 12
        }
    }
}
 

Request      

GET api/categories

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

Query Parameters

parentId   integer  optional  

The ID of the parent category of the sub categories to retrieve. Example: 0

nestedIncluded   integer  optional  

If parent ID is not provided, are nested entries will be included? - Possible values: 0,1. Example: 0

embed   string  optional  

The Comma-separated list of the category relationships for Eager Loading - Possible values: parent,children.

sort   string  optional  

The sorting parameter (Order by DESC with the given column. Use "-" as prefix to order by ASC). Possible values: lft. Example: -lft

perPage   integer  optional  

Items per page. Can be defined globally from the admin settings. Cannot be exceeded 100. Example: 2

page   integer  optional  

Items page number. From 1 to ("total items" divided by "items per page value - perPage"). Example: 1

Get category

Get category by its unique slug or ID.

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/categories/cars?parentCatSlug=automobiles" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/categories/cars"
);

const params = {
    "parentCatSlug": "automobiles",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/categories/cars';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'parentCatSlug' => 'automobiles',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "id": 2,
        "parent_id": 1,
        "name": "Cars",
        "slug": "cars",
        "description": "",
        "hide_description": null,
        "image_path": "app/default/categories/fa-folder-default.png",
        "icon_class": "fa-solid fa-folder",
        "seo_title": "",
        "seo_description": "",
        "seo_keywords": "",
        "lft": 2,
        "rgt": 3,
        "depth": 1,
        "type": "classified",
        "is_for_permanent": 0,
        "active": 1,
        "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png"
    }
}
 

Request      

GET api/categories/{slugOrId}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

slugOrId   string   

The slug or ID of the category. Example: cars

Query Parameters

parentCatSlug   string  optional  

The slug of the parent category to retrieve used when category's slug provided instead of ID. Example: automobiles

List category's fields

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/categories/1/fields" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --data "{
    \"language_code\": \"en\",
    \"post_id\": 1
}"
const url = new URL(
    "https://demo.laraclassifier.local/api/categories/1/fields"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

let body = {
    "language_code": "en",
    "post_id": 1
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/categories/1/fields';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'json' => [
            'language_code' => 'en',
            'post_id' => 1,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": [
        {
            "id": 1,
            "belongs_to": "post",
            "name": "Car Brand",
            "type": "select",
            "max": null,
            "default_value": "",
            "required": 1,
            "use_as_filter": 1,
            "help": "",
            "active": 1,
            "options": [
                {
                    "id": 1,
                    "field_id": 1,
                    "value": "Toyota",
                    "parent_id": null,
                    "lft": 1,
                    "rgt": 2,
                    "depth": null
                },
                {
                    "id": 2,
                    "field_id": 1,
                    "value": "BMW",
                    "parent_id": null,
                    "lft": 3,
                    "rgt": 4,
                    "depth": null
                },
                {
                    "id": 3,
                    "field_id": 1,
                    "value": "Mercedes-Benz",
                    "parent_id": null,
                    "lft": 5,
                    "rgt": 6,
                    "depth": null
                },
                {
                    "id": 4,
                    "field_id": 1,
                    "value": "Chevrolet",
                    "parent_id": null,
                    "lft": 7,
                    "rgt": 8,
                    "depth": null
                },
                {
                    "id": 5,
                    "field_id": 1,
                    "value": "Cadillac",
                    "parent_id": null,
                    "lft": 9,
                    "rgt": 10,
                    "depth": null
                },
                {
                    "id": 6,
                    "field_id": 1,
                    "value": "Buick",
                    "parent_id": null,
                    "lft": 11,
                    "rgt": 12,
                    "depth": null
                },
                {
                    "id": 7,
                    "field_id": 1,
                    "value": "GMC",
                    "parent_id": null,
                    "lft": 13,
                    "rgt": 14,
                    "depth": null
                },
                {
                    "id": 8,
                    "field_id": 1,
                    "value": "Ford",
                    "parent_id": null,
                    "lft": 15,
                    "rgt": 16,
                    "depth": null
                },
                {
                    "id": 9,
                    "field_id": 1,
                    "value": "Chrysler",
                    "parent_id": null,
                    "lft": 17,
                    "rgt": 18,
                    "depth": null
                },
                {
                    "id": 10,
                    "field_id": 1,
                    "value": "Dodge",
                    "parent_id": null,
                    "lft": 19,
                    "rgt": 20,
                    "depth": null
                },
                {
                    "id": 11,
                    "field_id": 1,
                    "value": "Jeep",
                    "parent_id": null,
                    "lft": 21,
                    "rgt": 22,
                    "depth": null
                },
                {
                    "id": 12,
                    "field_id": 1,
                    "value": "Tesla",
                    "parent_id": null,
                    "lft": 23,
                    "rgt": 24,
                    "depth": null
                },
                {
                    "id": 13,
                    "field_id": 1,
                    "value": "Lexus",
                    "parent_id": null,
                    "lft": 25,
                    "rgt": 26,
                    "depth": null
                },
                {
                    "id": 14,
                    "field_id": 1,
                    "value": "Suzuki",
                    "parent_id": null,
                    "lft": 27,
                    "rgt": 28,
                    "depth": null
                },
                {
                    "id": 15,
                    "field_id": 1,
                    "value": "Mazda",
                    "parent_id": null,
                    "lft": 29,
                    "rgt": 30,
                    "depth": null
                },
                {
                    "id": 16,
                    "field_id": 1,
                    "value": "Honda",
                    "parent_id": null,
                    "lft": 31,
                    "rgt": 32,
                    "depth": null
                },
                {
                    "id": 17,
                    "field_id": 1,
                    "value": "Acura",
                    "parent_id": null,
                    "lft": 33,
                    "rgt": 34,
                    "depth": null
                },
                {
                    "id": 18,
                    "field_id": 1,
                    "value": "Mitsubishi",
                    "parent_id": null,
                    "lft": 35,
                    "rgt": 36,
                    "depth": null
                },
                {
                    "id": 19,
                    "field_id": 1,
                    "value": "Nissan",
                    "parent_id": null,
                    "lft": 37,
                    "rgt": 38,
                    "depth": null
                },
                {
                    "id": 20,
                    "field_id": 1,
                    "value": "Infiniti",
                    "parent_id": null,
                    "lft": 39,
                    "rgt": 40,
                    "depth": null
                },
                {
                    "id": 21,
                    "field_id": 1,
                    "value": "Audi",
                    "parent_id": null,
                    "lft": 41,
                    "rgt": 42,
                    "depth": null
                },
                {
                    "id": 22,
                    "field_id": 1,
                    "value": "Volkswagen",
                    "parent_id": null,
                    "lft": 43,
                    "rgt": 44,
                    "depth": null
                },
                {
                    "id": 23,
                    "field_id": 1,
                    "value": "Porsche",
                    "parent_id": null,
                    "lft": 45,
                    "rgt": 46,
                    "depth": null
                },
                {
                    "id": 24,
                    "field_id": 1,
                    "value": "Opel",
                    "parent_id": null,
                    "lft": 47,
                    "rgt": 48,
                    "depth": null
                },
                {
                    "id": 25,
                    "field_id": 1,
                    "value": "Jaguar",
                    "parent_id": null,
                    "lft": 49,
                    "rgt": 50,
                    "depth": null
                },
                {
                    "id": 26,
                    "field_id": 1,
                    "value": "Land Rover",
                    "parent_id": null,
                    "lft": 51,
                    "rgt": 52,
                    "depth": null
                },
                {
                    "id": 27,
                    "field_id": 1,
                    "value": "MINI",
                    "parent_id": null,
                    "lft": 53,
                    "rgt": 54,
                    "depth": null
                },
                {
                    "id": 28,
                    "field_id": 1,
                    "value": "Aston Martin",
                    "parent_id": null,
                    "lft": 55,
                    "rgt": 56,
                    "depth": null
                },
                {
                    "id": 29,
                    "field_id": 1,
                    "value": "Bentley",
                    "parent_id": null,
                    "lft": 57,
                    "rgt": 58,
                    "depth": null
                },
                {
                    "id": 30,
                    "field_id": 1,
                    "value": "Rolls-Royce",
                    "parent_id": null,
                    "lft": 59,
                    "rgt": 60,
                    "depth": null
                },
                {
                    "id": 31,
                    "field_id": 1,
                    "value": "McLaren",
                    "parent_id": null,
                    "lft": 61,
                    "rgt": 62,
                    "depth": null
                },
                {
                    "id": 32,
                    "field_id": 1,
                    "value": "Fiat",
                    "parent_id": null,
                    "lft": 63,
                    "rgt": 64,
                    "depth": null
                },
                {
                    "id": 33,
                    "field_id": 1,
                    "value": "Alfa Romeo",
                    "parent_id": null,
                    "lft": 65,
                    "rgt": 66,
                    "depth": null
                },
                {
                    "id": 34,
                    "field_id": 1,
                    "value": "Maserati",
                    "parent_id": null,
                    "lft": 67,
                    "rgt": 68,
                    "depth": null
                },
                {
                    "id": 35,
                    "field_id": 1,
                    "value": "Ferrari",
                    "parent_id": null,
                    "lft": 69,
                    "rgt": 70,
                    "depth": null
                },
                {
                    "id": 36,
                    "field_id": 1,
                    "value": "Lamborghini",
                    "parent_id": null,
                    "lft": 71,
                    "rgt": 72,
                    "depth": null
                },
                {
                    "id": 37,
                    "field_id": 1,
                    "value": "Pagani",
                    "parent_id": null,
                    "lft": 73,
                    "rgt": 74,
                    "depth": null
                },
                {
                    "id": 38,
                    "field_id": 1,
                    "value": "Lancia",
                    "parent_id": null,
                    "lft": 75,
                    "rgt": 76,
                    "depth": null
                },
                {
                    "id": 39,
                    "field_id": 1,
                    "value": "Renault",
                    "parent_id": null,
                    "lft": 77,
                    "rgt": 78,
                    "depth": null
                },
                {
                    "id": 40,
                    "field_id": 1,
                    "value": "Peugeot",
                    "parent_id": null,
                    "lft": 79,
                    "rgt": 80,
                    "depth": null
                },
                {
                    "id": 41,
                    "field_id": 1,
                    "value": "Citroen",
                    "parent_id": null,
                    "lft": 81,
                    "rgt": 82,
                    "depth": null
                },
                {
                    "id": 42,
                    "field_id": 1,
                    "value": "Bugatti",
                    "parent_id": null,
                    "lft": 83,
                    "rgt": 84,
                    "depth": null
                },
                {
                    "id": 43,
                    "field_id": 1,
                    "value": "Tata",
                    "parent_id": null,
                    "lft": 85,
                    "rgt": 86,
                    "depth": null
                },
                {
                    "id": 44,
                    "field_id": 1,
                    "value": "Hyundai",
                    "parent_id": null,
                    "lft": 87,
                    "rgt": 88,
                    "depth": null
                },
                {
                    "id": 45,
                    "field_id": 1,
                    "value": "Kia",
                    "parent_id": null,
                    "lft": 89,
                    "rgt": 90,
                    "depth": null
                },
                {
                    "id": 46,
                    "field_id": 1,
                    "value": "Daewoo",
                    "parent_id": null,
                    "lft": 91,
                    "rgt": 92,
                    "depth": null
                },
                {
                    "id": 47,
                    "field_id": 1,
                    "value": "Volvo",
                    "parent_id": null,
                    "lft": 93,
                    "rgt": 94,
                    "depth": null
                },
                {
                    "id": 48,
                    "field_id": 1,
                    "value": "Saab",
                    "parent_id": null,
                    "lft": 95,
                    "rgt": 96,
                    "depth": null
                },
                {
                    "id": 49,
                    "field_id": 1,
                    "value": "Lada",
                    "parent_id": null,
                    "lft": 97,
                    "rgt": 98,
                    "depth": null
                },
                {
                    "id": 50,
                    "field_id": 1,
                    "value": "Volga",
                    "parent_id": null,
                    "lft": 99,
                    "rgt": 100,
                    "depth": null
                },
                {
                    "id": 51,
                    "field_id": 1,
                    "value": "Zil",
                    "parent_id": null,
                    "lft": 101,
                    "rgt": 102,
                    "depth": null
                },
                {
                    "id": 52,
                    "field_id": 1,
                    "value": "GAZ",
                    "parent_id": null,
                    "lft": 103,
                    "rgt": 104,
                    "depth": null
                },
                {
                    "id": 53,
                    "field_id": 1,
                    "value": "Geely",
                    "parent_id": null,
                    "lft": 105,
                    "rgt": 106,
                    "depth": null
                },
                {
                    "id": 54,
                    "field_id": 1,
                    "value": "Chery",
                    "parent_id": null,
                    "lft": 107,
                    "rgt": 108,
                    "depth": null
                },
                {
                    "id": 55,
                    "field_id": 1,
                    "value": "Hongqi",
                    "parent_id": null,
                    "lft": 109,
                    "rgt": 110,
                    "depth": null
                },
                {
                    "id": 56,
                    "field_id": 1,
                    "value": "Dacia",
                    "parent_id": null,
                    "lft": 111,
                    "rgt": 112,
                    "depth": null
                },
                {
                    "id": 57,
                    "field_id": 1,
                    "value": "Daihatsu",
                    "parent_id": null,
                    "lft": 113,
                    "rgt": 114,
                    "depth": null
                },
                {
                    "id": 58,
                    "field_id": 1,
                    "value": "FIAT",
                    "parent_id": null,
                    "lft": 115,
                    "rgt": 116,
                    "depth": null
                },
                {
                    "id": 59,
                    "field_id": 1,
                    "value": "Genesis",
                    "parent_id": null,
                    "lft": 117,
                    "rgt": 118,
                    "depth": null
                },
                {
                    "id": 60,
                    "field_id": 1,
                    "value": "Isuzu",
                    "parent_id": null,
                    "lft": 119,
                    "rgt": 120,
                    "depth": null
                },
                {
                    "id": 61,
                    "field_id": 1,
                    "value": "Lincoln",
                    "parent_id": null,
                    "lft": 121,
                    "rgt": 122,
                    "depth": null
                },
                {
                    "id": 62,
                    "field_id": 1,
                    "value": "Lotus",
                    "parent_id": null,
                    "lft": 123,
                    "rgt": 124,
                    "depth": null
                },
                {
                    "id": 63,
                    "field_id": 1,
                    "value": "Ram",
                    "parent_id": null,
                    "lft": 125,
                    "rgt": 126,
                    "depth": null
                },
                {
                    "id": 64,
                    "field_id": 1,
                    "value": "Ram",
                    "parent_id": null,
                    "lft": 127,
                    "rgt": 128,
                    "depth": null
                },
                {
                    "id": 65,
                    "field_id": 1,
                    "value": "SEAT",
                    "parent_id": null,
                    "lft": 129,
                    "rgt": 130,
                    "depth": null
                },
                {
                    "id": 66,
                    "field_id": 1,
                    "value": "Skoda",
                    "parent_id": null,
                    "lft": 131,
                    "rgt": 132,
                    "depth": null
                },
                {
                    "id": 67,
                    "field_id": 1,
                    "value": "Smart",
                    "parent_id": null,
                    "lft": 133,
                    "rgt": 134,
                    "depth": null
                },
                {
                    "id": 68,
                    "field_id": 1,
                    "value": "Subaru",
                    "parent_id": null,
                    "lft": 135,
                    "rgt": 136,
                    "depth": null
                },
                {
                    "id": 69,
                    "field_id": 1,
                    "value": "Other",
                    "parent_id": null,
                    "lft": 137,
                    "rgt": 138,
                    "depth": null
                }
            ]
        },
        {
            "id": 2,
            "belongs_to": "post",
            "name": "Car Model",
            "type": "text",
            "max": null,
            "default_value": "",
            "required": 0,
            "use_as_filter": 0,
            "help": "",
            "active": 1,
            "options": []
        },
        {
            "id": 3,
            "belongs_to": "post",
            "name": "Year of registration",
            "type": "number",
            "max": null,
            "default_value": "",
            "required": 0,
            "use_as_filter": 0,
            "help": "",
            "active": 1,
            "options": []
        },
        {
            "id": 5,
            "belongs_to": "post",
            "name": "Fuel Type",
            "type": "select",
            "max": null,
            "default_value": "",
            "required": 0,
            "use_as_filter": 1,
            "help": "",
            "active": 1,
            "options": [
                {
                    "id": 70,
                    "field_id": 5,
                    "value": "Essence",
                    "parent_id": null,
                    "lft": 139,
                    "rgt": 140,
                    "depth": null
                },
                {
                    "id": 71,
                    "field_id": 5,
                    "value": "Diesel",
                    "parent_id": null,
                    "lft": 141,
                    "rgt": 142,
                    "depth": null
                }
            ]
        },
        {
            "id": 7,
            "belongs_to": "post",
            "name": "Transmission",
            "type": "radio",
            "max": null,
            "default_value": "",
            "required": 0,
            "use_as_filter": 1,
            "help": "",
            "active": 1,
            "options": [
                {
                    "id": 76,
                    "field_id": 7,
                    "value": "Automatic",
                    "parent_id": null,
                    "lft": 151,
                    "rgt": 152,
                    "depth": null
                },
                {
                    "id": 77,
                    "field_id": 7,
                    "value": "Manual",
                    "parent_id": null,
                    "lft": 153,
                    "rgt": 154,
                    "depth": null
                }
            ]
        },
        {
            "id": 8,
            "belongs_to": "post",
            "name": "Condition",
            "type": "select",
            "max": null,
            "default_value": "78",
            "required": 0,
            "use_as_filter": 1,
            "help": "",
            "active": 1,
            "options": [
                {
                    "id": 78,
                    "field_id": 8,
                    "value": "New",
                    "parent_id": null,
                    "lft": 155,
                    "rgt": 156,
                    "depth": null
                },
                {
                    "id": 79,
                    "field_id": 8,
                    "value": "Used",
                    "parent_id": null,
                    "lft": 157,
                    "rgt": 158,
                    "depth": null
                }
            ]
        },
        {
            "id": 4,
            "belongs_to": "post",
            "name": "Mileage",
            "type": "text",
            "max": null,
            "default_value": "",
            "required": 0,
            "use_as_filter": 0,
            "help": "",
            "active": 1,
            "options": []
        },
        {
            "id": 6,
            "belongs_to": "post",
            "name": "Features",
            "type": "checkbox_multiple",
            "max": null,
            "default_value": "",
            "required": 0,
            "use_as_filter": 1,
            "help": "",
            "active": 1,
            "options": [
                {
                    "id": 72,
                    "field_id": 6,
                    "value": "Air Conditioner",
                    "parent_id": null,
                    "lft": 143,
                    "rgt": 144,
                    "depth": null
                },
                {
                    "id": 73,
                    "field_id": 6,
                    "value": "GPS",
                    "parent_id": null,
                    "lft": 145,
                    "rgt": 146,
                    "depth": null
                },
                {
                    "id": 74,
                    "field_id": 6,
                    "value": "Security System",
                    "parent_id": null,
                    "lft": 147,
                    "rgt": 148,
                    "depth": null
                },
                {
                    "id": 75,
                    "field_id": 6,
                    "value": "Spare Tire",
                    "parent_id": null,
                    "lft": 149,
                    "rgt": 150,
                    "depth": null
                }
            ]
        }
    ],
    "extra": {
        "errors": [],
        "oldInput": null
    }
}
 

Request      

GET api/categories/{id}/fields

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

id   integer   

The ID of the category. Example: 1

Body Parameters

language_code   string  optional  

The code of the user's spoken language. Example: en

post_id   integer   

The unique ID of the post. Example: 1

List category's fields

Example request:
curl --request POST \
    "https://demo.laraclassifier.local/api/categories/1/fields" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --data "{
    \"language_code\": \"en\",
    \"post_id\": 1
}"
const url = new URL(
    "https://demo.laraclassifier.local/api/categories/1/fields"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

let body = {
    "language_code": "en",
    "post_id": 1
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/categories/1/fields';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'json' => [
            'language_code' => 'en',
            'post_id' => 1,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/categories/{id}/fields

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

id   integer   

The ID of the category. Example: 1

Body Parameters

language_code   string  optional  

The code of the user's spoken language. Example: en

post_id   integer   

The unique ID of the post. Example: 1

Contact

Send Form

Send a message to the site owner.

Example request:
curl --request POST \
    "https://demo.laraclassifier.local/api/contact" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --data "{
    \"first_name\": \"John\",
    \"last_name\": \"Doe\",
    \"email\": \"john.doe@domain.tld\",
    \"message\": \"Nesciunt porro possimus maiores voluptatibus accusamus velit qui aspernatur.\",
    \"country_code\": \"US\",
    \"country_name\": \"United Sates\",
    \"captcha_key\": \"perferendis\"
}"
const url = new URL(
    "https://demo.laraclassifier.local/api/contact"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

let body = {
    "first_name": "John",
    "last_name": "Doe",
    "email": "john.doe@domain.tld",
    "message": "Nesciunt porro possimus maiores voluptatibus accusamus velit qui aspernatur.",
    "country_code": "US",
    "country_name": "United Sates",
    "captcha_key": "perferendis"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/contact';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'json' => [
            'first_name' => 'John',
            'last_name' => 'Doe',
            'email' => 'john.doe@domain.tld',
            'message' => 'Nesciunt porro possimus maiores voluptatibus accusamus velit qui aspernatur.',
            'country_code' => 'US',
            'country_name' => 'United Sates',
            'captcha_key' => 'perferendis',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/contact

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

Body Parameters

first_name   string   

The user's first name. Example: John

last_name   string   

The user's last name. Example: Doe

email   string   

The user's email address. Example: john.doe@domain.tld

message   string   

The message to send. Example: Nesciunt porro possimus maiores voluptatibus accusamus velit qui aspernatur.

country_code   string   

The user's country code. Example: US

country_name   string   

The user's country name. Example: United Sates

captcha_key   string  optional  

Key generated by the CAPTCHA endpoint calling (Required when the CAPTCHA verification is enabled from the Admin panel). Example: perferendis

Report post

Report abuse or issues

Example request:
curl --request POST \
    "https://demo.laraclassifier.local/api/posts/19/report" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --data "{
    \"report_type_id\": 2,
    \"email\": \"john.doe@domain.tld\",
    \"message\": \"Et sunt voluptatibus ducimus id assumenda sint.\",
    \"captcha_key\": \"ea\"
}"
const url = new URL(
    "https://demo.laraclassifier.local/api/posts/19/report"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

let body = {
    "report_type_id": 2,
    "email": "john.doe@domain.tld",
    "message": "Et sunt voluptatibus ducimus id assumenda sint.",
    "captcha_key": "ea"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/posts/19/report';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'json' => [
            'report_type_id' => 2,
            'email' => 'john.doe@domain.tld',
            'message' => 'Et sunt voluptatibus ducimus id assumenda sint.',
            'captcha_key' => 'ea',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/posts/{id}/report

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

id   integer   

The post ID. Example: 19

Body Parameters

report_type_id   integer   

The report type ID. Example: 2

email   string   

The user's email address. Example: john.doe@domain.tld

message   string   

The message to send. Example: Et sunt voluptatibus ducimus id assumenda sint.

captcha_key   string  optional  

Key generated by the CAPTCHA endpoint calling (Required when the CAPTCHA verification is enabled from the Admin panel). Example: ea

Countries

List countries

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/countries?embed=&includeNonActive=&iti=&countryCode=&sort=-name&perPage=2" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: {local-code}" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/countries"
);

const params = {
    "embed": "",
    "includeNonActive": "0",
    "iti": "0",
    "countryCode": "",
    "sort": "-name",
    "perPage": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "{local-code}",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/countries';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => '{local-code}',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed' => '',
            'includeNonActive' => '0',
            'iti' => '0',
            'countryCode' => '',
            'sort' => '-name',
            'perPage' => '2',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "data": [
            {
                "code": "AF",
                "name": "Afghanistan",
                "capital": "Kabul",
                "continent_code": "AS",
                "tld": ".af",
                "currency_code": "AFN",
                "phone": "93",
                "languages": "fa,ps,uz,tk",
                "time_zone": null,
                "date_format": null,
                "datetime_format": null,
                "background_image_path": "app/logo/header-66f83947ea6e7.jpg",
                "admin_type": "0",
                "active": 1,
                "icode": "af",
                "flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/af.png",
                "flag16_url": "https://demo.laraclassifier.local/images/flags/circle/16/af.png",
                "flag24_url": "https://demo.laraclassifier.local/images/flags/circle/24/af.png",
                "flag32_url": "https://demo.laraclassifier.local/images/flags/circle/32/af.png",
                "flag48_url": "https://demo.laraclassifier.local/images/flags/circle/48/af.png",
                "flag64_url": "https://demo.laraclassifier.local/images/flags/circle/64/af.png",
                "background_image_url": null
            },
            {
                "code": "AL",
                "name": "Albania",
                "capital": "Tirana",
                "continent_code": "EU",
                "tld": ".al",
                "currency_code": "ALL",
                "phone": "355",
                "languages": "sq,el",
                "time_zone": null,
                "date_format": null,
                "datetime_format": null,
                "background_image_path": "app/logo/header-66f83947edb56.jpg",
                "admin_type": "0",
                "active": 1,
                "icode": "al",
                "flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/al.png",
                "flag16_url": "https://demo.laraclassifier.local/images/flags/circle/16/al.png",
                "flag24_url": "https://demo.laraclassifier.local/images/flags/circle/24/al.png",
                "flag32_url": "https://demo.laraclassifier.local/images/flags/circle/32/al.png",
                "flag48_url": "https://demo.laraclassifier.local/images/flags/circle/48/al.png",
                "flag64_url": "https://demo.laraclassifier.local/images/flags/circle/64/al.png",
                "background_image_url": null
            }
        ],
        "links": {
            "first": "https://demo.laraclassifier.local/api/countries?page=1",
            "last": "https://demo.laraclassifier.local/api/countries?page=122",
            "prev": null,
            "next": "https://demo.laraclassifier.local/api/countries?page=2"
        },
        "meta": {
            "current_page": 1,
            "from": 1,
            "last_page": 122,
            "links": [
                {
                    "url": null,
                    "label": "« Previous",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries?page=1",
                    "label": "1",
                    "active": true
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries?page=2",
                    "label": "2",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries?page=3",
                    "label": "3",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries?page=4",
                    "label": "4",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries?page=5",
                    "label": "5",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries?page=6",
                    "label": "6",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries?page=7",
                    "label": "7",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries?page=8",
                    "label": "8",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries?page=9",
                    "label": "9",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries?page=10",
                    "label": "10",
                    "active": false
                },
                {
                    "url": null,
                    "label": "...",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries?page=121",
                    "label": "121",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries?page=122",
                    "label": "122",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries?page=2",
                    "label": "Next »",
                    "active": false
                }
            ],
            "path": "https://demo.laraclassifier.local/api/countries",
            "per_page": 2,
            "to": 2,
            "total": 244
        }
    }
}
 

Request      

GET api/countries

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: {local-code}

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

Query Parameters

embed   string  optional  

Comma-separated list of the country relationships for Eager Loading - Possible values: currency,continent.

includeNonActive   boolean  optional  

Allow including the non-activated countries in the list. Example: false

iti   boolean  optional  

Allow getting the country list for the phone number input (No other parameters need except 'countryCode'). Possible value: 0 or 1. Example: false

countryCode   string  optional  

The code of the current country (Only when the 'iti' parameter is filled to true).

sort   string  optional  

The sorting parameter (Order by DESC with the given column. Use "-" as prefix to order by ASC). Possible values: name. Example: -name

perPage   integer  optional  

Items per page. Can be defined globally from the admin settings. Cannot be exceeded 100. Example: 2

Get country

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/countries/DE?embed=currency" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/countries/DE"
);

const params = {
    "embed": "currency",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/countries/DE';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed' => 'currency',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "code": "DE",
        "name": "Germany",
        "capital": "Berlin",
        "continent_code": "EU",
        "tld": ".de",
        "currency_code": "EUR",
        "phone": "49",
        "languages": "de",
        "time_zone": null,
        "date_format": null,
        "datetime_format": null,
        "background_image_path": "app/logo/header-66f83948319db.jpg",
        "admin_type": "1",
        "active": 1,
        "icode": "de",
        "flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/de.png",
        "flag16_url": "https://demo.laraclassifier.local/images/flags/circle/16/de.png",
        "flag24_url": "https://demo.laraclassifier.local/images/flags/circle/24/de.png",
        "flag32_url": "https://demo.laraclassifier.local/images/flags/circle/32/de.png",
        "flag48_url": "https://demo.laraclassifier.local/images/flags/circle/48/de.png",
        "flag64_url": "https://demo.laraclassifier.local/images/flags/circle/64/de.png",
        "background_image_url": null,
        "currency": {
            "code": "EUR",
            "name": "Euro Member Countries",
            "symbol": "€",
            "html_entities": "€",
            "in_left": 0,
            "decimal_places": 2,
            "decimal_separator": ",",
            "thousand_separator": " "
        }
    }
}
 

Request      

GET api/countries/{code}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

code   string   

The country's ISO 3166-1 code. Example: DE

Query Parameters

embed   string  optional  

Comma-separated list of the country relationships for Eager Loading - Possible values: currency. Example: currency

List admin. divisions (1)

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/countries/US/subAdmins1?embed=&q=&sort=-name&perPage=2&page=1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/countries/US/subAdmins1"
);

const params = {
    "embed": "",
    "q": "",
    "sort": "-name",
    "perPage": "2",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/countries/US/subAdmins1';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed' => '',
            'q' => '',
            'sort' => '-name',
            'perPage' => '2',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "data": [
            {
                "code": "US.AL",
                "country_code": "US",
                "name": "Alabama",
                "active": 1
            },
            {
                "code": "US.AK",
                "country_code": "US",
                "name": "Alaska",
                "active": 1
            }
        ],
        "links": {
            "first": "https://demo.laraclassifier.local/api/countries/US/subAdmins1?page=1",
            "last": "https://demo.laraclassifier.local/api/countries/US/subAdmins1?page=26",
            "prev": null,
            "next": "https://demo.laraclassifier.local/api/countries/US/subAdmins1?page=2"
        },
        "meta": {
            "current_page": 1,
            "from": 1,
            "last_page": 26,
            "links": [
                {
                    "url": null,
                    "label": "« Previous",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins1?page=1",
                    "label": "1",
                    "active": true
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins1?page=2",
                    "label": "2",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins1?page=3",
                    "label": "3",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins1?page=4",
                    "label": "4",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins1?page=5",
                    "label": "5",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins1?page=6",
                    "label": "6",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins1?page=7",
                    "label": "7",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins1?page=8",
                    "label": "8",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins1?page=9",
                    "label": "9",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins1?page=10",
                    "label": "10",
                    "active": false
                },
                {
                    "url": null,
                    "label": "...",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins1?page=25",
                    "label": "25",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins1?page=26",
                    "label": "26",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins1?page=2",
                    "label": "Next »",
                    "active": false
                }
            ],
            "path": "https://demo.laraclassifier.local/api/countries/US/subAdmins1",
            "per_page": 2,
            "to": 2,
            "total": 51
        }
    }
}
 

Request      

GET api/countries/{countryCode}/subAdmins1

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

countryCode   string  optional  

The country code of the country of the cities to retrieve. Example: US

Query Parameters

embed   string  optional  

Comma-separated list of the administrative division (1) relationships for Eager Loading - Possible values: country.

q   string  optional  

Get the administrative division list related to the entered keyword.

sort   string  optional  

The sorting parameter (Order by DESC with the given column. Use "-" as prefix to order by ASC). Possible values: name. Example: -name

perPage   integer  optional  

Items per page. Can be defined globally from the admin settings. Cannot be exceeded 100. Example: 2

page   integer  optional  

Items page number. From 1 to ("total items" divided by "items per page value - perPage"). Example: 1

List admin. divisions (2)

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/countries/US/subAdmins2?embed=&admin1Code=&q=&sort=-name&perPage=2&page=1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/countries/US/subAdmins2"
);

const params = {
    "embed": "",
    "admin1Code": "",
    "q": "",
    "sort": "-name",
    "perPage": "2",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/countries/US/subAdmins2';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed' => '',
            'admin1Code' => '',
            'q' => '',
            'sort' => '-name',
            'perPage' => '2',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "data": [
            {
                "code": "US.SC.001",
                "country_code": "US",
                "subadmin1_code": "US.SC",
                "name": "Abbeville County",
                "active": 1
            },
            {
                "code": "US.LA.001",
                "country_code": "US",
                "subadmin1_code": "US.LA",
                "name": "Acadia Parish",
                "active": 1
            }
        ],
        "links": {
            "first": "https://demo.laraclassifier.local/api/countries/US/subAdmins2?page=1",
            "last": "https://demo.laraclassifier.local/api/countries/US/subAdmins2?page=1572",
            "prev": null,
            "next": "https://demo.laraclassifier.local/api/countries/US/subAdmins2?page=2"
        },
        "meta": {
            "current_page": 1,
            "from": 1,
            "last_page": 1572,
            "links": [
                {
                    "url": null,
                    "label": "« Previous",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins2?page=1",
                    "label": "1",
                    "active": true
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins2?page=2",
                    "label": "2",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins2?page=3",
                    "label": "3",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins2?page=4",
                    "label": "4",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins2?page=5",
                    "label": "5",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins2?page=6",
                    "label": "6",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins2?page=7",
                    "label": "7",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins2?page=8",
                    "label": "8",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins2?page=9",
                    "label": "9",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins2?page=10",
                    "label": "10",
                    "active": false
                },
                {
                    "url": null,
                    "label": "...",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins2?page=1571",
                    "label": "1571",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins2?page=1572",
                    "label": "1572",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/subAdmins2?page=2",
                    "label": "Next »",
                    "active": false
                }
            ],
            "path": "https://demo.laraclassifier.local/api/countries/US/subAdmins2",
            "per_page": 2,
            "to": 2,
            "total": 3143
        }
    }
}
 

Request      

GET api/countries/{countryCode}/subAdmins2

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

countryCode   string  optional  

The country code of the country of the cities to retrieve. Example: US

Query Parameters

embed   string  optional  

Comma-separated list of the administrative division (2) relationships for Eager Loading - Possible values: country,subAdmin1.

admin1Code   string  optional  

Get the administrative division 2 list related to the administrative division 1 code.

q   string  optional  

Get the administrative division 2 list related to the entered keyword.

sort   string  optional  

The sorting parameter (Order by DESC with the given column. Use "-" as prefix to order by ASC). Possible values: name. Example: -name

perPage   integer  optional  

Items per page. Can be defined globally from the admin settings. Cannot be exceeded 100. Example: 2

page   integer  optional  

Items page number. From 1 to ("total items" divided by "items per page value - perPage"). Example: 1

List cities

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/countries/US/cities?embed=&admin1Code=&admin2Code=&q=&autocomplete=&sort=-name&perPage=2&page=1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/countries/US/cities"
);

const params = {
    "embed": "",
    "admin1Code": "",
    "admin2Code": "",
    "q": "",
    "autocomplete": "0",
    "sort": "-name",
    "perPage": "2",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/countries/US/cities';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed' => '',
            'admin1Code' => '',
            'admin2Code' => '',
            'q' => '',
            'autocomplete' => '0',
            'sort' => '-name',
            'perPage' => '2',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "data": [
            {
                "id": 45650,
                "country_code": "US",
                "name": "Abbeville",
                "latitude": 34.18,
                "longitude": -82.38,
                "subadmin1_code": "US.SC",
                "subadmin2_code": "US.SC.001",
                "population": 5191,
                "time_zone": "America/New_York",
                "active": 1,
                "posts_count": 0
            },
            {
                "id": 44696,
                "country_code": "US",
                "name": "Abbeville",
                "latitude": 29.97,
                "longitude": -92.13,
                "subadmin1_code": "US.LA",
                "subadmin2_code": "US.LA.113",
                "population": 12434,
                "time_zone": "America/Chicago",
                "active": 1,
                "posts_count": 0
            }
        ],
        "links": {
            "first": "https://demo.laraclassifier.local/api/countries/US/cities?page=1",
            "last": "https://demo.laraclassifier.local/api/countries/US/cities?page=3600",
            "prev": null,
            "next": "https://demo.laraclassifier.local/api/countries/US/cities?page=2"
        },
        "meta": {
            "current_page": 1,
            "from": 1,
            "last_page": 3600,
            "links": [
                {
                    "url": null,
                    "label": "« Previous",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/cities?page=1",
                    "label": "1",
                    "active": true
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/cities?page=2",
                    "label": "2",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/cities?page=3",
                    "label": "3",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/cities?page=4",
                    "label": "4",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/cities?page=5",
                    "label": "5",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/cities?page=6",
                    "label": "6",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/cities?page=7",
                    "label": "7",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/cities?page=8",
                    "label": "8",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/cities?page=9",
                    "label": "9",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/cities?page=10",
                    "label": "10",
                    "active": false
                },
                {
                    "url": null,
                    "label": "...",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/cities?page=3599",
                    "label": "3599",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/cities?page=3600",
                    "label": "3600",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/countries/US/cities?page=2",
                    "label": "Next »",
                    "active": false
                }
            ],
            "path": "https://demo.laraclassifier.local/api/countries/US/cities",
            "per_page": 2,
            "to": 2,
            "total": 7200
        }
    }
}
 

Request      

GET api/countries/{countryCode}/cities

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

countryCode   string  optional  

The country code of the country of the cities to retrieve. Example: US

Query Parameters

embed   string  optional  

Comma-separated list of the city relationships for Eager Loading - Possible values: country,subAdmin1,subAdmin2.

admin1Code   string  optional  

Get the city list related to the administrative division 1 code.

admin2Code   string  optional  

Get the city list related to the administrative division 2 code.

q   string  optional  

Get the city list related to the entered keyword.

autocomplete   boolean  optional  

Allow getting the city list in the autocomplete data format. Possible value: 0 or 1. Example: false

sort   string  optional  

string|array The sorting parameter (Order by DESC with the given column. Use "-" as prefix to order by ASC). Possible values: name,population. Example: -name

perPage   integer  optional  

Items per page. Can be defined globally from the admin settings. Cannot be exceeded 100. Example: 2

page   integer  optional  

Items page number. From 1 to ("total items" divided by "items per page value - perPage"). Example: 1

Get admin. division (1)

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/subAdmins1/CH.VD?embed=" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/subAdmins1/CH.VD"
);

const params = {
    "embed": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/subAdmins1/CH.VD';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed' => '',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "code": "CH.VD",
        "country_code": "CH",
        "name": "Vaud",
        "active": 1
    }
}
 

Request      

GET api/subAdmins1/{code}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

code   string   

The administrative division (1)'s code. Example: CH.VD

Query Parameters

embed   string  optional  

Comma-separated list of the administrative division (1) relationships for Eager Loading - Possible values: country.

Get admin. division (2)

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/subAdmins2/CH.VD.2225?embed=" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/subAdmins2/CH.VD.2225"
);

const params = {
    "embed": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/subAdmins2/CH.VD.2225';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed' => '',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "code": "CH.VD.2225",
        "country_code": "CH",
        "subadmin1_code": "CH.VD",
        "name": "Lausanne District",
        "active": 1
    }
}
 

Request      

GET api/subAdmins2/{code}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

code   string   

The administrative division (2)'s code. Example: CH.VD.2225

Query Parameters

embed   string  optional  

Comma-separated list of the administrative division (2) relationships for Eager Loading - Possible values: country,subAdmin1.

Get city

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/cities/12544?embed=country" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/cities/12544"
);

const params = {
    "embed": "country",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/cities/12544';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed' => 'country',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "id": 12544,
        "country_code": "DE",
        "name": "Berlin",
        "latitude": 52.52,
        "longitude": 13.41,
        "subadmin1_code": "DE.16",
        "subadmin2_code": "DE.16.00",
        "population": 3426354,
        "time_zone": "Europe/Berlin",
        "active": 1,
        "posts_count": 0,
        "country": {
            "code": "DE",
            "name": "Germany",
            "capital": "Berlin",
            "continent_code": "EU",
            "tld": ".de",
            "currency_code": "EUR",
            "phone": "49",
            "languages": "de",
            "time_zone": null,
            "date_format": null,
            "datetime_format": null,
            "background_image_path": "app/logo/header-66f83948319db.jpg",
            "admin_type": "1",
            "active": 1,
            "icode": "de",
            "flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/de.png",
            "flag16_url": "https://demo.laraclassifier.local/images/flags/circle/16/de.png",
            "flag24_url": "https://demo.laraclassifier.local/images/flags/circle/24/de.png",
            "flag32_url": "https://demo.laraclassifier.local/images/flags/circle/32/de.png",
            "flag48_url": "https://demo.laraclassifier.local/images/flags/circle/48/de.png",
            "flag64_url": "https://demo.laraclassifier.local/images/flags/circle/64/de.png",
            "background_image_url": null
        }
    }
}
 

Request      

GET api/cities/{id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

id   integer   

The city's ID. Example: 12544

Query Parameters

embed   string  optional  

Comma-separated list of the city relationships for Eager Loading - Possible values: country,subAdmin1,subAdmin2. Example: country

Home

List sections

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/sections" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/sections"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/sections';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "data": {
            "search_form": {
                "belongs_to": "home",
                "key": "search_form",
                "data": [],
                "options": {
                    "enable_form_area_customization": "1",
                    "background_color": null,
                    "background_image": "app/logo/header-66f83947e60e0.jpg",
                    "background_image_darken": "0.1",
                    "height": null,
                    "parallax": "0",
                    "hide_form": "0",
                    "form_border_color": null,
                    "form_border_width": null,
                    "form_btn_background_color": null,
                    "form_btn_text_color": null,
                    "hide_titles": "0",
                    "title_en": "Sell and Buy near you",
                    "sub_title_en": "Simple, fast and efficient",
                    "title_fr": "Vendre et acheter près de chez vous",
                    "sub_title_fr": "Simple, rapide et efficace",
                    "title_es": "Vender y comprar cerca de usted",
                    "sub_title_es": "Simple, rápido y eficiente",
                    "title_ar": "بيع وشراء بالقرب منك",
                    "sub_title_ar": "بسيطة وسريعة وفعالة",
                    "title_pt": "Vender e comprar perto de si",
                    "sub_title_pt": "Simples, Rápido e Eficiente",
                    "title_ru": "Продавайте и покупайте рядом с вами",
                    "sub_title_ru": "Просто, быстро и эффективно",
                    "title_tr": "Size yakın satıp satın alın",
                    "sub_title_tr": "Basit, hızlı ve verimli",
                    "title_th": "ขายและซื้อใกล้บ้านคุณ",
                    "sub_title_th": "ง่ายรวดเร็วและมีประสิทธิภาพ",
                    "title_ka": "გაყიდვა და შეძენა ახლოს თქვენ",
                    "sub_title_ka": "მარტივი, სწრაფი და ეფექტური",
                    "title_zh": "在您附近买卖",
                    "sub_title_zh": "简单,快速,高效",
                    "title_ja": "お近くの売買",
                    "sub_title_ja": "シンプル、迅速かつ効率的",
                    "title_it": "Vendi e compra vicino a te",
                    "sub_title_it": "Semplice, veloce ed efficiente",
                    "big_title_color": null,
                    "sub_title_color": null,
                    "hide_on_mobile": "0",
                    "active": "1",
                    "enable_extended_form_area": "1",
                    "background_image_path": null,
                    "title_de": "Verkaufen und Kaufen in Ihrer Nähe",
                    "sub_title_de": "Einfach, schnell und effizient",
                    "title_hi": "अपने पास बेचें और खरीदें",
                    "sub_title_hi": "सरल, तेज और कुशल",
                    "title_bn": "আপনার কাছাকাছি বিক্রি করুন এবং কিনুন",
                    "sub_title_bn": "সহজ, দ্রুত এবং দক্ষ",
                    "title_he": "למכור ולקנות בקרבתך",
                    "sub_title_he": "פשוט, מהיר ויעיל",
                    "title_ro": "Vinde și Cumpără inteligent",
                    "sub_title_ro": "Simplu, rapid și eficient!",
                    "background_image_url": "https://demo.laraclassifier.local/storage/app/logo/thumbnails/2000x1000-header-66f83947e60e0.jpg"
                },
                "lft": 0
            },
            "categories": {
                "belongs_to": "home",
                "key": "categories",
                "data": {
                    "categories": {
                        "1": {
                            "id": 1,
                            "parent_id": null,
                            "name": "Automobiles",
                            "slug": "automobiles",
                            "description": "",
                            "hide_description": null,
                            "image_path": "app/default/categories/fa-folder-default.png",
                            "icon_class": "fa-solid fa-car",
                            "seo_title": "",
                            "seo_description": "",
                            "seo_keywords": "",
                            "lft": 1,
                            "rgt": 10,
                            "depth": 0,
                            "type": "classified",
                            "is_for_permanent": 0,
                            "active": 1,
                            "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png"
                        },
                        "9": {
                            "id": 9,
                            "parent_id": null,
                            "name": "Phones & Tablets",
                            "slug": "phones-and-tablets",
                            "description": "",
                            "hide_description": null,
                            "image_path": "app/default/categories/fa-folder-default.png",
                            "icon_class": "fa-solid fa-mobile-screen-button",
                            "seo_title": "",
                            "seo_description": "",
                            "seo_keywords": "",
                            "lft": 11,
                            "rgt": 17,
                            "depth": 0,
                            "type": "classified",
                            "is_for_permanent": 0,
                            "active": 1,
                            "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png"
                        },
                        "14": {
                            "id": 14,
                            "parent_id": null,
                            "name": "Electronics",
                            "slug": "electronics",
                            "description": "",
                            "hide_description": null,
                            "image_path": "app/default/categories/fa-folder-default.png",
                            "icon_class": "fa-solid fa-laptop",
                            "seo_title": "",
                            "seo_description": "",
                            "seo_keywords": "",
                            "lft": 18,
                            "rgt": 35,
                            "depth": 0,
                            "type": "classified",
                            "is_for_permanent": 0,
                            "active": 1,
                            "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png"
                        },
                        "30": {
                            "id": 30,
                            "parent_id": null,
                            "name": "Furniture & Appliances",
                            "slug": "furniture-appliances",
                            "description": "",
                            "hide_description": null,
                            "image_path": "app/default/categories/fa-folder-default.png",
                            "icon_class": "fa-solid fa-couch",
                            "seo_title": "",
                            "seo_description": "",
                            "seo_keywords": "",
                            "lft": 36,
                            "rgt": 44,
                            "depth": 0,
                            "type": "classified",
                            "is_for_permanent": 0,
                            "active": 1,
                            "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png"
                        },
                        "37": {
                            "id": 37,
                            "parent_id": null,
                            "name": "Real estate",
                            "slug": "real-estate",
                            "description": "",
                            "hide_description": null,
                            "image_path": "app/default/categories/fa-folder-default.png",
                            "icon_class": "fa-solid fa-house",
                            "seo_title": "",
                            "seo_description": "",
                            "seo_keywords": "",
                            "lft": 45,
                            "rgt": 55,
                            "depth": 0,
                            "type": "classified",
                            "is_for_permanent": 0,
                            "active": 1,
                            "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png"
                        },
                        "46": {
                            "id": 46,
                            "parent_id": null,
                            "name": "Animals & Pets",
                            "slug": "animals-and-pets",
                            "description": "",
                            "hide_description": null,
                            "image_path": "app/default/categories/fa-folder-default.png",
                            "icon_class": "fa-solid fa-paw",
                            "seo_title": "",
                            "seo_description": "",
                            "seo_keywords": "",
                            "lft": 56,
                            "rgt": 65,
                            "depth": 0,
                            "type": "classified",
                            "is_for_permanent": 0,
                            "active": 1,
                            "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png"
                        },
                        "54": {
                            "id": 54,
                            "parent_id": null,
                            "name": "Fashion",
                            "slug": "fashion",
                            "description": "",
                            "hide_description": null,
                            "image_path": "app/default/categories/fa-folder-default.png",
                            "icon_class": "fa-solid fa-shirt",
                            "seo_title": "",
                            "seo_description": "",
                            "seo_keywords": "",
                            "lft": 66,
                            "rgt": 75,
                            "depth": 0,
                            "type": "classified",
                            "is_for_permanent": 0,
                            "active": 1,
                            "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png"
                        },
                        "62": {
                            "id": 62,
                            "parent_id": null,
                            "name": "Beauty & Well being",
                            "slug": "beauty-well-being",
                            "description": "",
                            "hide_description": null,
                            "image_path": "app/default/categories/fa-folder-default.png",
                            "icon_class": "fa-solid fa-spa",
                            "seo_title": "",
                            "seo_description": "",
                            "seo_keywords": "",
                            "lft": 76,
                            "rgt": 88,
                            "depth": 0,
                            "type": "classified",
                            "is_for_permanent": 0,
                            "active": 1,
                            "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png"
                        },
                        "73": {
                            "id": 73,
                            "parent_id": null,
                            "name": "Jobs",
                            "slug": "jobs",
                            "description": "",
                            "hide_description": null,
                            "image_path": "app/default/categories/fa-folder-default.png",
                            "icon_class": "fa-solid fa-briefcase",
                            "seo_title": "",
                            "seo_description": "",
                            "seo_keywords": "",
                            "lft": 89,
                            "rgt": 114,
                            "depth": 0,
                            "type": "job-offer",
                            "is_for_permanent": 0,
                            "active": 1,
                            "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png"
                        },
                        "97": {
                            "id": 97,
                            "parent_id": null,
                            "name": "Services",
                            "slug": "services",
                            "description": "",
                            "hide_description": null,
                            "image_path": "app/default/categories/fa-folder-default.png",
                            "icon_class": "fa-solid fa-clipboard-list",
                            "seo_title": "",
                            "seo_description": "",
                            "seo_keywords": "",
                            "lft": 115,
                            "rgt": 133,
                            "depth": 0,
                            "type": "classified",
                            "is_for_permanent": 0,
                            "active": 1,
                            "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png"
                        },
                        "114": {
                            "id": 114,
                            "parent_id": null,
                            "name": "Learning",
                            "slug": "learning",
                            "description": "",
                            "hide_description": null,
                            "image_path": "app/default/categories/fa-folder-default.png",
                            "icon_class": "fa-solid fa-graduation-cap",
                            "seo_title": "",
                            "seo_description": "",
                            "seo_keywords": "",
                            "lft": 134,
                            "rgt": 143,
                            "depth": 0,
                            "type": "classified",
                            "is_for_permanent": 0,
                            "active": 1,
                            "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png"
                        },
                        "122": {
                            "id": 122,
                            "parent_id": null,
                            "name": "Local Events",
                            "slug": "local-events",
                            "description": "",
                            "hide_description": null,
                            "image_path": "app/default/categories/fa-folder-default.png",
                            "icon_class": "fa-regular fa-calendar-days",
                            "seo_title": "",
                            "seo_description": "",
                            "seo_keywords": "",
                            "lft": 144,
                            "rgt": 158,
                            "depth": 0,
                            "type": "classified",
                            "is_for_permanent": 0,
                            "active": 1,
                            "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png"
                        }
                    },
                    "countPostsPerCat": []
                },
                "options": {
                    "type_of_display": "c_picture_icon",
                    "max_items": "12",
                    "show_icon": "0",
                    "count_categories_posts": "0",
                    "max_sub_cats": "3",
                    "cache_expiration": "3600",
                    "active": "1",
                    "cat_display_type": "c_bigIcon_list"
                },
                "lft": 2
            },
            "premium_listings": {
                "belongs_to": "home",
                "key": "premium_listings",
                "data": {
                    "premium": {
                        "title": "<span style=\"font-weight: bold;\">Premium</span> Listings",
                        "link": "https://demo.laraclassifier.local/search?filterBy=premium",
                        "posts": [
                            {
                                "id": 10030,
                                "country_code": "US",
                                "user_id": 1,
                                "payment_id": null,
                                "category_id": 108,
                                "post_type_id": 2,
                                "title": "Create New Listing",
                                "excerpt": "Do you have something to sell, to rent, any service to offer or a job offer? Post it at LaraClassifi...",
                                "description": "Do you have something to sell, to rent, any service to offer or a job offer? Post it at LaraClassifier, its free, for local business and very easy to use!",
                                "tags": [],
                                "price": "309.00",
                                "currency_code": null,
                                "negotiable": null,
                                "contact_name": "Administrator",
                                "auth_field": "email",
                                "email": "mayeul@domain.tld",
                                "phone": "+15537797114",
                                "phone_national": "(553) 779-7114",
                                "phone_country": "US",
                                "phone_hidden": null,
                                "address": null,
                                "city_id": 50085,
                                "lat": null,
                                "lon": null,
                                "create_from_ip": null,
                                "latest_update_ip": null,
                                "visits": null,
                                "tmp_token": null,
                                "email_token": null,
                                "phone_token": null,
                                "email_verified_at": "2024-10-01T18:36:32.000000Z",
                                "phone_verified_at": "2024-10-01T18:36:32.000000Z",
                                "accept_terms": null,
                                "accept_marketing_offers": null,
                                "is_permanent": null,
                                "reviewed_at": "2024-10-01T18:38:11.000000Z",
                                "featured": 1,
                                "archived_at": null,
                                "archived_manually_at": null,
                                "deletion_mail_sent_at": null,
                                "fb_profile": null,
                                "partner": null,
                                "created_at": "2024-10-01T18:36:32.000000Z",
                                "updated_at": "2024-10-14T07:55:04.315291Z",
                                "reference": "rlNbWPqgdyg",
                                "slug": "create-new-listing",
                                "url": "https://demo.laraclassifier.local/create-new-listing/rlNbWPqgdyg",
                                "phone_intl": "(553) 779-7114",
                                "created_at_formatted": "1 week ago",
                                "updated_at_formatted": "Oct 14th, 2024 at 03:55",
                                "archived_at_formatted": "",
                                "archived_manually_at_formatted": "",
                                "user_photo_url": "https://demo.laraclassifier.local/storage/avatars/us/1/thumbnails/800x800-61005056409e48c3c7862f4d135304cc.jpg",
                                "country_flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/us.png",
                                "price_label": "Price:",
                                "price_formatted": "$309",
                                "visits_formatted": "0 view",
                                "distance_info": null,
                                "count_pictures": 4,
                                "picture": {
                                    "id": 15586,
                                    "post_id": 10030,
                                    "file_path": "files/us/10030/428d6018822b5c094fa44a15ac798989.jpg",
                                    "mime_type": "image/jpeg",
                                    "position": 0,
                                    "active": 1,
                                    "url": {
                                        "full": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/816x460-428d6018822b5c094fa44a15ac798989.jpg",
                                        "small": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/120x90-428d6018822b5c094fa44a15ac798989.jpg",
                                        "medium": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/320x240-428d6018822b5c094fa44a15ac798989.jpg",
                                        "large": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/816x460-428d6018822b5c094fa44a15ac798989.jpg"
                                    }
                                },
                                "pictures": [
                                    {
                                        "id": 15586,
                                        "post_id": 10030,
                                        "file_path": "files/us/10030/428d6018822b5c094fa44a15ac798989.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 0,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/816x460-428d6018822b5c094fa44a15ac798989.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/120x90-428d6018822b5c094fa44a15ac798989.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/320x240-428d6018822b5c094fa44a15ac798989.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/816x460-428d6018822b5c094fa44a15ac798989.jpg"
                                        }
                                    },
                                    {
                                        "id": 15583,
                                        "post_id": 10030,
                                        "file_path": "files/us/10030/bcacb4b77d3e65edaac1622ea757cf9f.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 0,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/816x460-bcacb4b77d3e65edaac1622ea757cf9f.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/120x90-bcacb4b77d3e65edaac1622ea757cf9f.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/320x240-bcacb4b77d3e65edaac1622ea757cf9f.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/816x460-bcacb4b77d3e65edaac1622ea757cf9f.jpg"
                                        }
                                    },
                                    {
                                        "id": 15584,
                                        "post_id": 10030,
                                        "file_path": "files/us/10030/3d1494da593531f8d7db64280b59d17d.png",
                                        "mime_type": "image/png",
                                        "position": 1,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/816x460-3d1494da593531f8d7db64280b59d17d.png",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/120x90-3d1494da593531f8d7db64280b59d17d.png",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/320x240-3d1494da593531f8d7db64280b59d17d.png",
                                            "large": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/816x460-3d1494da593531f8d7db64280b59d17d.png"
                                        }
                                    },
                                    {
                                        "id": 15581,
                                        "post_id": 10030,
                                        "file_path": "files/us/10030/f6206e7659e7e1cc56654584c75c3cc2.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 3,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/816x460-f6206e7659e7e1cc56654584c75c3cc2.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/120x90-f6206e7659e7e1cc56654584c75c3cc2.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/320x240-f6206e7659e7e1cc56654584c75c3cc2.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/816x460-f6206e7659e7e1cc56654584c75c3cc2.jpg"
                                        }
                                    }
                                ],
                                "user": {
                                    "id": 1,
                                    "name": "Administrator",
                                    "username": null,
                                    "updated_at": "2024-08-21T10:06:58.000000Z",
                                    "original_updated_at": "2024-08-21 10:06:58",
                                    "original_last_activity": null,
                                    "created_at_formatted": "6 months ago",
                                    "photo_url": "https://demo.laraclassifier.local/storage/avatars/us/1/thumbnails/800x800-61005056409e48c3c7862f4d135304cc.jpg",
                                    "p_is_online": false,
                                    "country_flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/us.png"
                                },
                                "category": {
                                    "id": 108,
                                    "parent_id": 97,
                                    "name": "Artisan, Troubleshooting, Handyman",
                                    "slug": "artisan-troubleshooting-handyman",
                                    "description": "",
                                    "hide_description": null,
                                    "image_path": "app/default/categories/fa-folder-default.png",
                                    "icon_class": "fa-solid fa-folder",
                                    "seo_title": "",
                                    "seo_description": "",
                                    "seo_keywords": "",
                                    "lft": 126,
                                    "rgt": 127,
                                    "depth": 1,
                                    "type": "classified",
                                    "is_for_permanent": 0,
                                    "active": 1,
                                    "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png",
                                    "parent": {
                                        "id": 97,
                                        "parent_id": null,
                                        "name": "Services",
                                        "slug": "services",
                                        "description": "",
                                        "hide_description": null,
                                        "image_path": "app/default/categories/fa-folder-default.png",
                                        "icon_class": "fa-solid fa-clipboard-list",
                                        "seo_title": "",
                                        "seo_description": "",
                                        "seo_keywords": "",
                                        "lft": 115,
                                        "rgt": 133,
                                        "depth": 0,
                                        "type": "classified",
                                        "is_for_permanent": 0,
                                        "active": 1,
                                        "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png",
                                        "parent": null
                                    }
                                },
                                "postType": {
                                    "id": 2,
                                    "name": "PROFESSIONAL",
                                    "label": "Professional"
                                },
                                "city": {
                                    "id": 50085,
                                    "country_code": "US",
                                    "name": "Missoula",
                                    "latitude": 46.87,
                                    "longitude": -113.99,
                                    "subadmin1_code": "US.MT",
                                    "subadmin2_code": "US.MT.063",
                                    "population": 71022,
                                    "time_zone": "America/Denver",
                                    "active": 1,
                                    "posts_count": 0
                                },
                                "payment": {
                                    "id": 529,
                                    "payable_id": 10030,
                                    "payable_type": "App\\Models\\Post",
                                    "package_id": 3,
                                    "payment_method_id": 1,
                                    "transaction_id": "78371234JE672430J",
                                    "amount": "9.00",
                                    "currency_code": "USD",
                                    "period_start": "2024-10-01T00:00:00.000000Z",
                                    "period_end": "2024-10-31T23:59:59.000000Z",
                                    "canceled_at": null,
                                    "refunded_at": null,
                                    "active": 1,
                                    "interval": 30.999988425925928,
                                    "started": 1,
                                    "expired": 0,
                                    "status": "valid",
                                    "period_start_formatted": "Sep 30th, 2024",
                                    "period_end_formatted": "Oct 31st, 2024",
                                    "created_at_formatted": "Oct 1st, 2024 at 14:38",
                                    "status_info": "Valid",
                                    "starting_info": "Started on Sep 30th, 2024",
                                    "expiry_info": "Will expire on Oct 31st, 2024",
                                    "css_class_variant": "success",
                                    "package": {
                                        "id": 3,
                                        "type": "promotion",
                                        "name": "Premium Listing (+)",
                                        "short_name": "Premium+",
                                        "ribbon": "green",
                                        "has_badge": 1,
                                        "price": "9.00",
                                        "currency_code": "USD",
                                        "promotion_time": 30,
                                        "interval": null,
                                        "listings_limit": null,
                                        "pictures_limit": 15,
                                        "expiration_time": 120,
                                        "description": "Featured on the homepage\nFeatured in the category",
                                        "facebook_ads_duration": 0,
                                        "google_ads_duration": 0,
                                        "twitter_ads_duration": 0,
                                        "linkedin_ads_duration": 0,
                                        "recommended": 0,
                                        "active": 1,
                                        "parent_id": null,
                                        "lft": 6,
                                        "rgt": 7,
                                        "depth": 0,
                                        "period_start": "2024-10-14T00:00:00.000000Z",
                                        "period_end": "2024-11-13T23:59:59.999999Z",
                                        "description_array": [
                                            "30 days of promotion",
                                            "Up to 15 images allowed",
                                            "Featured on the homepage",
                                            "Featured in the category",
                                            "Keep online for 120 days"
                                        ],
                                        "description_string": "30 days of promotion. \nUp to 15 images allowed. \nFeatured on the homepage. \nFeatured in the category. \nKeep online for 120 days",
                                        "price_formatted": "$9"
                                    }
                                },
                                "savedByLoggedUser": [],
                                "rating_cache": 0,
                                "rating_count": 0
                            },
                            {
                                "id": 7368,
                                "country_code": "US",
                                "user_id": 2520,
                                "payment_id": null,
                                "category_id": 42,
                                "post_type_id": 2,
                                "title": "For sale: Carriage house",
                                "excerpt": "Magni maiores quibusdam est est quis facilis aperiam. Et perferendis ipsa vitae quia accusamus. Et e...",
                                "description": "Magni maiores quibusdam est est quis facilis aperiam. Et perferendis ipsa vitae quia accusamus. Et est fugiat odit eum ex incidunt vel. Consequatur sunt eum et. Eum neque velit placeat odio voluptas. Illum non libero hic perspiciatis id itaque. Dolorem et hic in eveniet unde rem. Dolore sequi fuga quae commodi tempore consectetur et. Eius qui non eum pariatur dolorem quia qui quo. Quis non asperiores enim molestiae quod vero natus. Dolores iure itaque inventore consequatur est voluptatibus.",
                                "tags": [
                                    "id",
                                    "exercitationem",
                                    "itaque"
                                ],
                                "price": "268.00",
                                "currency_code": null,
                                "negotiable": null,
                                "contact_name": "Joe Padberg",
                                "auth_field": "email",
                                "email": "adolphus11@yahoo.com",
                                "phone": "+17541689794",
                                "phone_national": "(754) 168-9794",
                                "phone_country": "US",
                                "phone_hidden": null,
                                "address": null,
                                "city_id": 46783,
                                "lat": null,
                                "lon": null,
                                "create_from_ip": null,
                                "latest_update_ip": null,
                                "visits": null,
                                "tmp_token": null,
                                "email_token": null,
                                "phone_token": null,
                                "email_verified_at": "2024-09-27T12:17:34.000000Z",
                                "phone_verified_at": "2024-09-27T12:17:34.000000Z",
                                "accept_terms": null,
                                "accept_marketing_offers": null,
                                "is_permanent": null,
                                "reviewed_at": "2024-09-27T12:17:34.000000Z",
                                "featured": 1,
                                "archived_at": null,
                                "archived_manually_at": null,
                                "deletion_mail_sent_at": null,
                                "fb_profile": null,
                                "partner": null,
                                "created_at": "2024-09-27T10:08:10.000000Z",
                                "updated_at": "2024-10-14T07:55:04.478024Z",
                                "reference": "QJ0dN932bLO",
                                "slug": "for-sale-carriage-house",
                                "url": "https://demo.laraclassifier.local/for-sale-carriage-house/QJ0dN932bLO",
                                "phone_intl": "(754) 168-9794",
                                "created_at_formatted": "2 weeks ago",
                                "updated_at_formatted": "Oct 14th, 2024 at 03:55",
                                "archived_at_formatted": "",
                                "archived_manually_at_formatted": "",
                                "user_photo_url": "https://demo.laraclassifier.local/storage/app/default/user.png",
                                "country_flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/us.png",
                                "price_label": "Price:",
                                "price_formatted": "$268",
                                "visits_formatted": "0 view",
                                "distance_info": null,
                                "count_pictures": 4,
                                "picture": {
                                    "id": 11478,
                                    "post_id": 7368,
                                    "file_path": "files/us/7368/ee40196ccbc8407a3b0bcfafca66761e.jpg",
                                    "mime_type": "image/jpeg",
                                    "position": 1,
                                    "active": 1,
                                    "url": {
                                        "full": "https://demo.laraclassifier.local/storage/files/us/7368/thumbnails/816x460-ee40196ccbc8407a3b0bcfafca66761e.jpg",
                                        "small": "https://demo.laraclassifier.local/storage/files/us/7368/thumbnails/120x90-ee40196ccbc8407a3b0bcfafca66761e.jpg",
                                        "medium": "https://demo.laraclassifier.local/storage/files/us/7368/thumbnails/320x240-ee40196ccbc8407a3b0bcfafca66761e.jpg",
                                        "large": "https://demo.laraclassifier.local/storage/files/us/7368/thumbnails/816x460-ee40196ccbc8407a3b0bcfafca66761e.jpg"
                                    }
                                },
                                "pictures": [
                                    {
                                        "id": 11478,
                                        "post_id": 7368,
                                        "file_path": "files/us/7368/ee40196ccbc8407a3b0bcfafca66761e.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 1,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/7368/thumbnails/816x460-ee40196ccbc8407a3b0bcfafca66761e.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/7368/thumbnails/120x90-ee40196ccbc8407a3b0bcfafca66761e.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/7368/thumbnails/320x240-ee40196ccbc8407a3b0bcfafca66761e.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/files/us/7368/thumbnails/816x460-ee40196ccbc8407a3b0bcfafca66761e.jpg"
                                        }
                                    },
                                    {
                                        "id": 11477,
                                        "post_id": 7368,
                                        "file_path": "files/us/7368/c6a61fb4c7ade1615c4a3ec7575066f5.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 1,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/app/default/picture.jpg"
                                        }
                                    },
                                    {
                                        "id": 11475,
                                        "post_id": 7368,
                                        "file_path": "files/us/7368/ee40196ccbc8407a3b0bcfafca66761e.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 2,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/7368/thumbnails/816x460-ee40196ccbc8407a3b0bcfafca66761e.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/7368/thumbnails/120x90-ee40196ccbc8407a3b0bcfafca66761e.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/7368/thumbnails/320x240-ee40196ccbc8407a3b0bcfafca66761e.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/files/us/7368/thumbnails/816x460-ee40196ccbc8407a3b0bcfafca66761e.jpg"
                                        }
                                    },
                                    {
                                        "id": 11476,
                                        "post_id": 7368,
                                        "file_path": "files/us/7368/b76565708834913dd2b0e4271e314919.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 3,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/app/default/picture.jpg"
                                        }
                                    }
                                ],
                                "user": {
                                    "id": 2520,
                                    "name": "Joe Padberg",
                                    "username": "vwilkinson",
                                    "updated_at": "2024-10-14T07:55:05.708023Z",
                                    "original_updated_at": null,
                                    "original_last_activity": null,
                                    "created_at_formatted": "4 months ago",
                                    "photo_url": "https://demo.laraclassifier.local/storage/app/default/user.png",
                                    "p_is_online": false,
                                    "country_flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/dz.png"
                                },
                                "category": {
                                    "id": 42,
                                    "parent_id": 37,
                                    "name": "Commercial Property For Rent",
                                    "slug": "commercial-property-for-rent",
                                    "description": "",
                                    "hide_description": null,
                                    "image_path": "app/default/categories/fa-folder-default.png",
                                    "icon_class": "fa-solid fa-folder",
                                    "seo_title": "",
                                    "seo_description": "",
                                    "seo_keywords": "",
                                    "lft": 50,
                                    "rgt": 51,
                                    "depth": 1,
                                    "type": "classified",
                                    "is_for_permanent": 0,
                                    "active": 1,
                                    "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png",
                                    "parent": {
                                        "id": 37,
                                        "parent_id": null,
                                        "name": "Real estate",
                                        "slug": "real-estate",
                                        "description": "",
                                        "hide_description": null,
                                        "image_path": "app/default/categories/fa-folder-default.png",
                                        "icon_class": "fa-solid fa-house",
                                        "seo_title": "",
                                        "seo_description": "",
                                        "seo_keywords": "",
                                        "lft": 45,
                                        "rgt": 55,
                                        "depth": 0,
                                        "type": "classified",
                                        "is_for_permanent": 0,
                                        "active": 1,
                                        "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png",
                                        "parent": null
                                    }
                                },
                                "postType": {
                                    "id": 2,
                                    "name": "PROFESSIONAL",
                                    "label": "Professional"
                                },
                                "city": {
                                    "id": 46783,
                                    "country_code": "US",
                                    "name": "McKinley Park",
                                    "latitude": 41.83,
                                    "longitude": -87.67,
                                    "subadmin1_code": "US.IL",
                                    "subadmin2_code": "US.IL.031",
                                    "population": 15612,
                                    "time_zone": "America/Chicago",
                                    "active": 1,
                                    "posts_count": 0
                                },
                                "payment": {
                                    "id": 43,
                                    "payable_id": 7368,
                                    "payable_type": "App\\Models\\Post",
                                    "package_id": 3,
                                    "payment_method_id": 9,
                                    "transaction_id": null,
                                    "amount": "9.00",
                                    "currency_code": null,
                                    "period_start": "2024-09-28T00:00:00.000000Z",
                                    "period_end": "2024-10-28T23:59:59.000000Z",
                                    "canceled_at": null,
                                    "refunded_at": null,
                                    "active": 1,
                                    "interval": 30.999988425925928,
                                    "started": 1,
                                    "expired": 0,
                                    "status": "valid",
                                    "period_start_formatted": "Sep 27th, 2024",
                                    "period_end_formatted": "Oct 28th, 2024",
                                    "created_at_formatted": "Sep 28th, 2024 at 04:38",
                                    "status_info": "Valid",
                                    "starting_info": "Started on Sep 27th, 2024",
                                    "expiry_info": "Will expire on Oct 28th, 2024",
                                    "css_class_variant": "success",
                                    "package": {
                                        "id": 3,
                                        "type": "promotion",
                                        "name": "Premium Listing (+)",
                                        "short_name": "Premium+",
                                        "ribbon": "green",
                                        "has_badge": 1,
                                        "price": "9.00",
                                        "currency_code": "USD",
                                        "promotion_time": 30,
                                        "interval": null,
                                        "listings_limit": null,
                                        "pictures_limit": 15,
                                        "expiration_time": 120,
                                        "description": "Featured on the homepage\nFeatured in the category",
                                        "facebook_ads_duration": 0,
                                        "google_ads_duration": 0,
                                        "twitter_ads_duration": 0,
                                        "linkedin_ads_duration": 0,
                                        "recommended": 0,
                                        "active": 1,
                                        "parent_id": null,
                                        "lft": 6,
                                        "rgt": 7,
                                        "depth": 0,
                                        "period_start": "2024-10-14T00:00:00.000000Z",
                                        "period_end": "2024-11-13T23:59:59.999999Z",
                                        "description_array": [
                                            "30 days of promotion",
                                            "Up to 15 images allowed",
                                            "Featured on the homepage",
                                            "Featured in the category",
                                            "Keep online for 120 days"
                                        ],
                                        "description_string": "30 days of promotion. \nUp to 15 images allowed. \nFeatured on the homepage. \nFeatured in the category. \nKeep online for 120 days",
                                        "price_formatted": "$9"
                                    }
                                },
                                "savedByLoggedUser": [],
                                "rating_cache": 0,
                                "rating_count": 0
                            },
                            {
                                "id": 4366,
                                "country_code": "US",
                                "user_id": 173,
                                "payment_id": null,
                                "category_id": 25,
                                "post_type_id": 1,
                                "title": "Test sell Lenovo Chromebook Duet",
                                "excerpt": "Veniam vero praesentium autem et iste consequatur esse. Sed eum eligendi sit velit maiores sed non....",
                                "description": "Veniam vero praesentium autem et iste consequatur esse. Sed eum eligendi sit velit maiores sed non. Eligendi cumque quasi dolor et exercitationem asperiores. Odio sit ut incidunt error quia quidem.",
                                "tags": [
                                    "facere",
                                    "incidunt",
                                    "laudantium"
                                ],
                                "price": "11.00",
                                "currency_code": null,
                                "negotiable": null,
                                "contact_name": "Brando Zieme",
                                "auth_field": "email",
                                "email": "josephine76@yahoo.com",
                                "phone": "+14245517464",
                                "phone_national": "(424) 551-7464",
                                "phone_country": "US",
                                "phone_hidden": null,
                                "address": null,
                                "city_id": 49684,
                                "lat": null,
                                "lon": null,
                                "create_from_ip": null,
                                "latest_update_ip": null,
                                "visits": null,
                                "tmp_token": null,
                                "email_token": null,
                                "phone_token": null,
                                "email_verified_at": "2024-09-27T18:27:54.000000Z",
                                "phone_verified_at": "2024-09-27T18:27:54.000000Z",
                                "accept_terms": null,
                                "accept_marketing_offers": null,
                                "is_permanent": null,
                                "reviewed_at": "2024-09-27T18:27:54.000000Z",
                                "featured": 1,
                                "archived_at": null,
                                "archived_manually_at": null,
                                "deletion_mail_sent_at": null,
                                "fb_profile": null,
                                "partner": null,
                                "created_at": "2024-09-27T08:36:14.000000Z",
                                "updated_at": "2024-10-14T07:55:04.627453Z",
                                "reference": "q9wdLg5AbjP",
                                "slug": "test-sell-lenovo-chromebook-duet",
                                "url": "https://demo.laraclassifier.local/test-sell-lenovo-chromebook-duet/q9wdLg5AbjP",
                                "phone_intl": "(424) 551-7464",
                                "created_at_formatted": "2 weeks ago",
                                "updated_at_formatted": "Oct 14th, 2024 at 03:55",
                                "archived_at_formatted": "",
                                "archived_manually_at_formatted": "",
                                "user_photo_url": "https://demo.laraclassifier.local/storage/app/default/user.png",
                                "country_flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/us.png",
                                "price_label": "Price:",
                                "price_formatted": "$11",
                                "visits_formatted": "0 view",
                                "distance_info": null,
                                "count_pictures": 5,
                                "picture": {
                                    "id": 6907,
                                    "post_id": 4366,
                                    "file_path": "files/us/4366/ed2f08982f041ce687359b7b4a00c4f0.jpg",
                                    "mime_type": "image/jpeg",
                                    "position": 2,
                                    "active": 1,
                                    "url": {
                                        "full": "https://demo.laraclassifier.local/storage/files/us/4366/thumbnails/816x460-ed2f08982f041ce687359b7b4a00c4f0.jpg",
                                        "small": "https://demo.laraclassifier.local/storage/files/us/4366/thumbnails/120x90-ed2f08982f041ce687359b7b4a00c4f0.jpg",
                                        "medium": "https://demo.laraclassifier.local/storage/files/us/4366/thumbnails/320x240-ed2f08982f041ce687359b7b4a00c4f0.jpg",
                                        "large": "https://demo.laraclassifier.local/storage/files/us/4366/thumbnails/816x460-ed2f08982f041ce687359b7b4a00c4f0.jpg"
                                    }
                                },
                                "pictures": [
                                    {
                                        "id": 6907,
                                        "post_id": 4366,
                                        "file_path": "files/us/4366/ed2f08982f041ce687359b7b4a00c4f0.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 2,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/4366/thumbnails/816x460-ed2f08982f041ce687359b7b4a00c4f0.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/4366/thumbnails/120x90-ed2f08982f041ce687359b7b4a00c4f0.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/4366/thumbnails/320x240-ed2f08982f041ce687359b7b4a00c4f0.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/files/us/4366/thumbnails/816x460-ed2f08982f041ce687359b7b4a00c4f0.jpg"
                                        }
                                    },
                                    {
                                        "id": 6905,
                                        "post_id": 4366,
                                        "file_path": "files/us/4366/aa7a01f877b38f9be237d72175a1fea5.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 3,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/app/default/picture.jpg"
                                        }
                                    },
                                    {
                                        "id": 6904,
                                        "post_id": 4366,
                                        "file_path": "files/us/4366/d0b9ffedee21acf5013ba978fa4b5db2.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 3,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/app/default/picture.jpg"
                                        }
                                    },
                                    {
                                        "id": 6908,
                                        "post_id": 4366,
                                        "file_path": "files/us/4366/5b3231340903cca2d504e7207a0a293e.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 4,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/app/default/picture.jpg"
                                        }
                                    },
                                    {
                                        "id": 6906,
                                        "post_id": 4366,
                                        "file_path": "files/us/4366/f24a995804d09e0dc52f43fa7f873fb7.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 4,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/app/default/picture.jpg"
                                        }
                                    }
                                ],
                                "user": {
                                    "id": 173,
                                    "name": "Brando Zieme",
                                    "username": "noemy74",
                                    "updated_at": "2024-10-14T07:55:05.881500Z",
                                    "original_updated_at": null,
                                    "original_last_activity": null,
                                    "created_at_formatted": "3 months ago",
                                    "photo_url": "https://demo.laraclassifier.local/storage/app/default/user.png",
                                    "p_is_online": false,
                                    "country_flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/my.png"
                                },
                                "category": {
                                    "id": 25,
                                    "parent_id": 14,
                                    "name": "Printers & Scanners",
                                    "slug": "printers-and-scanners",
                                    "description": "",
                                    "hide_description": null,
                                    "image_path": "app/default/categories/fa-folder-default.png",
                                    "icon_class": "fa-solid fa-folder",
                                    "seo_title": "",
                                    "seo_description": "",
                                    "seo_keywords": "",
                                    "lft": 29,
                                    "rgt": 30,
                                    "depth": 1,
                                    "type": "classified",
                                    "is_for_permanent": 0,
                                    "active": 1,
                                    "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png",
                                    "parent": {
                                        "id": 14,
                                        "parent_id": null,
                                        "name": "Electronics",
                                        "slug": "electronics",
                                        "description": "",
                                        "hide_description": null,
                                        "image_path": "app/default/categories/fa-folder-default.png",
                                        "icon_class": "fa-solid fa-laptop",
                                        "seo_title": "",
                                        "seo_description": "",
                                        "seo_keywords": "",
                                        "lft": 18,
                                        "rgt": 35,
                                        "depth": 0,
                                        "type": "classified",
                                        "is_for_permanent": 0,
                                        "active": 1,
                                        "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png",
                                        "parent": null
                                    }
                                },
                                "postType": {
                                    "id": 1,
                                    "name": "INDIVIDUAL",
                                    "label": "Individual"
                                },
                                "city": {
                                    "id": 49684,
                                    "country_code": "US",
                                    "name": "Sunland",
                                    "latitude": 34.27,
                                    "longitude": -118.3,
                                    "subadmin1_code": "US.CA",
                                    "subadmin2_code": "US.CA.037",
                                    "population": 15316,
                                    "time_zone": "America/Los_Angeles",
                                    "active": 1,
                                    "posts_count": 0
                                },
                                "payment": {
                                    "id": 181,
                                    "payable_id": 4366,
                                    "payable_type": "App\\Models\\Post",
                                    "package_id": 3,
                                    "payment_method_id": 8,
                                    "transaction_id": null,
                                    "amount": "9.00",
                                    "currency_code": null,
                                    "period_start": "2024-09-28T00:00:00.000000Z",
                                    "period_end": "2024-10-28T23:59:59.000000Z",
                                    "canceled_at": null,
                                    "refunded_at": null,
                                    "active": 1,
                                    "interval": 30.999988425925928,
                                    "started": 1,
                                    "expired": 0,
                                    "status": "valid",
                                    "period_start_formatted": "Sep 27th, 2024",
                                    "period_end_formatted": "Oct 28th, 2024",
                                    "created_at_formatted": "Sep 28th, 2024 at 11:14",
                                    "status_info": "Valid",
                                    "starting_info": "Started on Sep 27th, 2024",
                                    "expiry_info": "Will expire on Oct 28th, 2024",
                                    "css_class_variant": "success",
                                    "package": {
                                        "id": 3,
                                        "type": "promotion",
                                        "name": "Premium Listing (+)",
                                        "short_name": "Premium+",
                                        "ribbon": "green",
                                        "has_badge": 1,
                                        "price": "9.00",
                                        "currency_code": "USD",
                                        "promotion_time": 30,
                                        "interval": null,
                                        "listings_limit": null,
                                        "pictures_limit": 15,
                                        "expiration_time": 120,
                                        "description": "Featured on the homepage\nFeatured in the category",
                                        "facebook_ads_duration": 0,
                                        "google_ads_duration": 0,
                                        "twitter_ads_duration": 0,
                                        "linkedin_ads_duration": 0,
                                        "recommended": 0,
                                        "active": 1,
                                        "parent_id": null,
                                        "lft": 6,
                                        "rgt": 7,
                                        "depth": 0,
                                        "period_start": "2024-10-14T00:00:00.000000Z",
                                        "period_end": "2024-11-13T23:59:59.999999Z",
                                        "description_array": [
                                            "30 days of promotion",
                                            "Up to 15 images allowed",
                                            "Featured on the homepage",
                                            "Featured in the category",
                                            "Keep online for 120 days"
                                        ],
                                        "description_string": "30 days of promotion. \nUp to 15 images allowed. \nFeatured on the homepage. \nFeatured in the category. \nKeep online for 120 days",
                                        "price_formatted": "$9"
                                    }
                                },
                                "savedByLoggedUser": [],
                                "rating_cache": 0,
                                "rating_count": 0
                            },
                            {
                                "id": 86,
                                "country_code": "US",
                                "user_id": 2,
                                "payment_id": null,
                                "category_id": 28,
                                "post_type_id": 1,
                                "title": "Apple Watch SE white",
                                "excerpt": "Quos voluptatem assumenda reprehenderit. Aut odio commodi asperiores cupiditate. Accusantium at modi...",
                                "description": "Quos voluptatem assumenda reprehenderit. Aut odio commodi asperiores cupiditate. Accusantium at modi tenetur voluptatem repellat aut. Et rerum sed reprehenderit maxime. Animi ea magnam quibusdam autem illo laudantium quibusdam. Harum exercitationem fuga minus numquam dolores numquam nemo. Rem omnis veritatis eligendi autem id. Eum nemo cum quis placeat ad.",
                                "tags": [
                                    "sit",
                                    "soluta",
                                    "provident"
                                ],
                                "price": "732.00",
                                "currency_code": null,
                                "negotiable": null,
                                "contact_name": "Admin Demo",
                                "auth_field": "email",
                                "email": "admin@domain.tld",
                                "phone": "+11749835502",
                                "phone_national": "1749835502",
                                "phone_country": "US",
                                "phone_hidden": null,
                                "address": null,
                                "city_id": 48351,
                                "lat": null,
                                "lon": null,
                                "create_from_ip": null,
                                "latest_update_ip": null,
                                "visits": null,
                                "tmp_token": null,
                                "email_token": null,
                                "phone_token": null,
                                "email_verified_at": "2024-09-11T10:06:05.000000Z",
                                "phone_verified_at": "2024-09-11T10:06:05.000000Z",
                                "accept_terms": null,
                                "accept_marketing_offers": null,
                                "is_permanent": null,
                                "reviewed_at": "2024-09-11T10:06:05.000000Z",
                                "featured": 1,
                                "archived_at": null,
                                "archived_manually_at": null,
                                "deletion_mail_sent_at": null,
                                "fb_profile": null,
                                "partner": null,
                                "created_at": "2024-09-07T12:51:56.000000Z",
                                "updated_at": "2024-10-14T07:55:04.779506Z",
                                "reference": "VWPe9rxaLyw",
                                "slug": "apple-watch-se-white",
                                "url": "https://demo.laraclassifier.local/apple-watch-se-white/VWPe9rxaLyw",
                                "phone_intl": "1749835502",
                                "created_at_formatted": "1 month ago",
                                "updated_at_formatted": "Oct 14th, 2024 at 03:55",
                                "archived_at_formatted": "",
                                "archived_manually_at_formatted": "",
                                "user_photo_url": "https://demo.laraclassifier.local/storage/avatars/us/2/thumbnails/800x800-71479bf0e68d8c4e7e452834c95a2961.jpg",
                                "country_flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/us.png",
                                "price_label": "Price:",
                                "price_formatted": "$732",
                                "visits_formatted": "0 view",
                                "distance_info": null,
                                "count_pictures": 4,
                                "picture": {
                                    "id": 267,
                                    "post_id": 86,
                                    "file_path": "files/us/86/b1d91d067cbe70e673611b209034fedf.jpg",
                                    "mime_type": "image/jpeg",
                                    "position": 3,
                                    "active": 1,
                                    "url": {
                                        "full": "https://demo.laraclassifier.local/storage/files/us/86/thumbnails/816x460-b1d91d067cbe70e673611b209034fedf.jpg",
                                        "small": "https://demo.laraclassifier.local/storage/files/us/86/thumbnails/120x90-b1d91d067cbe70e673611b209034fedf.jpg",
                                        "medium": "https://demo.laraclassifier.local/storage/files/us/86/thumbnails/320x240-b1d91d067cbe70e673611b209034fedf.jpg",
                                        "large": "https://demo.laraclassifier.local/storage/files/us/86/thumbnails/816x460-b1d91d067cbe70e673611b209034fedf.jpg"
                                    }
                                },
                                "pictures": [
                                    {
                                        "id": 267,
                                        "post_id": 86,
                                        "file_path": "files/us/86/b1d91d067cbe70e673611b209034fedf.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 3,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/86/thumbnails/816x460-b1d91d067cbe70e673611b209034fedf.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/86/thumbnails/120x90-b1d91d067cbe70e673611b209034fedf.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/86/thumbnails/320x240-b1d91d067cbe70e673611b209034fedf.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/files/us/86/thumbnails/816x460-b1d91d067cbe70e673611b209034fedf.jpg"
                                        }
                                    },
                                    {
                                        "id": 270,
                                        "post_id": 86,
                                        "file_path": "files/us/86/a52aecb387fe2f0e22cb6243128875bc.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 4,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/app/default/picture.jpg"
                                        }
                                    },
                                    {
                                        "id": 269,
                                        "post_id": 86,
                                        "file_path": "files/us/86/6f3d9b8412e84f0d763c075c6db68e9d.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 4,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/app/default/picture.jpg"
                                        }
                                    },
                                    {
                                        "id": 268,
                                        "post_id": 86,
                                        "file_path": "files/us/86/7243f40a9dc6051f4a80f0a9de94c5d9.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 4,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/app/default/picture.jpg"
                                        }
                                    }
                                ],
                                "user": {
                                    "id": 2,
                                    "name": "Admin Demo",
                                    "username": null,
                                    "updated_at": "2024-08-14T20:59:47.000000Z",
                                    "original_updated_at": "2024-08-14 20:59:47",
                                    "original_last_activity": null,
                                    "created_at_formatted": "5 months ago",
                                    "photo_url": "https://demo.laraclassifier.local/storage/avatars/us/2/thumbnails/800x800-71479bf0e68d8c4e7e452834c95a2961.jpg",
                                    "p_is_online": false,
                                    "country_flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/us.png"
                                },
                                "category": {
                                    "id": 28,
                                    "parent_id": 14,
                                    "name": "Video Games",
                                    "slug": "video-games",
                                    "description": "",
                                    "hide_description": null,
                                    "image_path": "app/default/categories/fa-folder-default.png",
                                    "icon_class": "fa-solid fa-folder",
                                    "seo_title": "",
                                    "seo_description": "",
                                    "seo_keywords": "",
                                    "lft": 32,
                                    "rgt": 33,
                                    "depth": 1,
                                    "type": "classified",
                                    "is_for_permanent": 0,
                                    "active": 1,
                                    "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png",
                                    "parent": {
                                        "id": 14,
                                        "parent_id": null,
                                        "name": "Electronics",
                                        "slug": "electronics",
                                        "description": "",
                                        "hide_description": null,
                                        "image_path": "app/default/categories/fa-folder-default.png",
                                        "icon_class": "fa-solid fa-laptop",
                                        "seo_title": "",
                                        "seo_description": "",
                                        "seo_keywords": "",
                                        "lft": 18,
                                        "rgt": 35,
                                        "depth": 0,
                                        "type": "classified",
                                        "is_for_permanent": 0,
                                        "active": 1,
                                        "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png",
                                        "parent": null
                                    }
                                },
                                "postType": {
                                    "id": 1,
                                    "name": "INDIVIDUAL",
                                    "label": "Individual"
                                },
                                "city": {
                                    "id": 48351,
                                    "country_code": "US",
                                    "name": "Tappan",
                                    "latitude": 41.02,
                                    "longitude": -73.95,
                                    "subadmin1_code": "US.NY",
                                    "subadmin2_code": "US.NY.087",
                                    "population": 6613,
                                    "time_zone": "America/New_York",
                                    "active": 1,
                                    "posts_count": 0
                                },
                                "payment": {
                                    "id": 256,
                                    "payable_id": 86,
                                    "payable_type": "App\\Models\\Post",
                                    "package_id": 3,
                                    "payment_method_id": 4,
                                    "transaction_id": null,
                                    "amount": "9.00",
                                    "currency_code": null,
                                    "period_start": "2024-09-28T00:00:00.000000Z",
                                    "period_end": "2024-10-28T23:59:59.000000Z",
                                    "canceled_at": null,
                                    "refunded_at": null,
                                    "active": 1,
                                    "interval": 30.999988425925928,
                                    "started": 1,
                                    "expired": 0,
                                    "status": "valid",
                                    "period_start_formatted": "Sep 27th, 2024",
                                    "period_end_formatted": "Oct 28th, 2024",
                                    "created_at_formatted": "Sep 28th, 2024 at 06:24",
                                    "status_info": "Valid",
                                    "starting_info": "Started on Sep 27th, 2024",
                                    "expiry_info": "Will expire on Oct 28th, 2024",
                                    "css_class_variant": "success",
                                    "package": {
                                        "id": 3,
                                        "type": "promotion",
                                        "name": "Premium Listing (+)",
                                        "short_name": "Premium+",
                                        "ribbon": "green",
                                        "has_badge": 1,
                                        "price": "9.00",
                                        "currency_code": "USD",
                                        "promotion_time": 30,
                                        "interval": null,
                                        "listings_limit": null,
                                        "pictures_limit": 15,
                                        "expiration_time": 120,
                                        "description": "Featured on the homepage\nFeatured in the category",
                                        "facebook_ads_duration": 0,
                                        "google_ads_duration": 0,
                                        "twitter_ads_duration": 0,
                                        "linkedin_ads_duration": 0,
                                        "recommended": 0,
                                        "active": 1,
                                        "parent_id": null,
                                        "lft": 6,
                                        "rgt": 7,
                                        "depth": 0,
                                        "period_start": "2024-10-14T00:00:00.000000Z",
                                        "period_end": "2024-11-13T23:59:59.999999Z",
                                        "description_array": [
                                            "30 days of promotion",
                                            "Up to 15 images allowed",
                                            "Featured on the homepage",
                                            "Featured in the category",
                                            "Keep online for 120 days"
                                        ],
                                        "description_string": "30 days of promotion. \nUp to 15 images allowed. \nFeatured on the homepage. \nFeatured in the category. \nKeep online for 120 days",
                                        "price_formatted": "$9"
                                    }
                                },
                                "savedByLoggedUser": [],
                                "rating_cache": 0,
                                "rating_count": 0
                            },
                            {
                                "id": 323,
                                "country_code": "US",
                                "user_id": 2469,
                                "payment_id": null,
                                "category_id": 7,
                                "post_type_id": 2,
                                "title": "For sale: Toyota RAV4 Hybrid",
                                "excerpt": "Voluptatibus ut a aliquid magnam rerum est. Harum facilis dicta officiis. Et blanditiis omnis sed bl...",
                                "description": "Voluptatibus ut a aliquid magnam rerum est. Harum facilis dicta officiis. Et blanditiis omnis sed blanditiis exercitationem alias. Earum facere voluptatem ea. Est et officia in autem est consequatur. Voluptas molestias alias sint sit eum voluptates odio corrupti. Sint ut quia soluta cum. Pariatur iusto molestiae quibusdam delectus eveniet. Occaecati officia quas dolorem doloremque ea dolores illum. Qui et et quis quidem.",
                                "tags": [
                                    "quis",
                                    "est",
                                    "dolor"
                                ],
                                "price": "6824.00",
                                "currency_code": null,
                                "negotiable": null,
                                "contact_name": "Cathryn Flatley",
                                "auth_field": "email",
                                "email": "heather.sauer@yahoo.com",
                                "phone": "+18470069584",
                                "phone_national": "(847) 006-9584",
                                "phone_country": "US",
                                "phone_hidden": null,
                                "address": null,
                                "city_id": 47612,
                                "lat": null,
                                "lon": null,
                                "create_from_ip": null,
                                "latest_update_ip": null,
                                "visits": null,
                                "tmp_token": null,
                                "email_token": null,
                                "phone_token": null,
                                "email_verified_at": "2024-09-13T11:28:38.000000Z",
                                "phone_verified_at": "2024-09-13T11:28:38.000000Z",
                                "accept_terms": null,
                                "accept_marketing_offers": null,
                                "is_permanent": null,
                                "reviewed_at": "2024-09-13T11:28:38.000000Z",
                                "featured": 1,
                                "archived_at": null,
                                "archived_manually_at": null,
                                "deletion_mail_sent_at": null,
                                "fb_profile": null,
                                "partner": null,
                                "created_at": "2024-08-21T23:37:26.000000Z",
                                "updated_at": "2024-10-14T07:55:04.937620Z",
                                "reference": "7N1aM1BaWmp",
                                "slug": "for-sale-toyota-rav4-hybrid",
                                "url": "https://demo.laraclassifier.local/for-sale-toyota-rav4-hybrid/7N1aM1BaWmp",
                                "phone_intl": "(847) 006-9584",
                                "created_at_formatted": "1 month ago",
                                "updated_at_formatted": "Oct 14th, 2024 at 03:55",
                                "archived_at_formatted": "",
                                "archived_manually_at_formatted": "",
                                "user_photo_url": "https://demo.laraclassifier.local/storage/app/default/user.png",
                                "country_flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/us.png",
                                "price_label": "Price:",
                                "price_formatted": "$6,824",
                                "visits_formatted": "0 view",
                                "distance_info": null,
                                "count_pictures": 1,
                                "picture": {
                                    "id": 689,
                                    "post_id": 323,
                                    "file_path": "files/us/323/af0da367b1d23be6c3a45654f8c90d4f.jpg",
                                    "mime_type": "image/jpeg",
                                    "position": 1,
                                    "active": 1,
                                    "url": {
                                        "full": "https://demo.laraclassifier.local/storage/files/us/323/thumbnails/816x460-af0da367b1d23be6c3a45654f8c90d4f.jpg",
                                        "small": "https://demo.laraclassifier.local/storage/files/us/323/thumbnails/120x90-af0da367b1d23be6c3a45654f8c90d4f.jpg",
                                        "medium": "https://demo.laraclassifier.local/storage/files/us/323/thumbnails/320x240-af0da367b1d23be6c3a45654f8c90d4f.jpg",
                                        "large": "https://demo.laraclassifier.local/storage/files/us/323/thumbnails/816x460-af0da367b1d23be6c3a45654f8c90d4f.jpg"
                                    }
                                },
                                "pictures": [
                                    {
                                        "id": 689,
                                        "post_id": 323,
                                        "file_path": "files/us/323/af0da367b1d23be6c3a45654f8c90d4f.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 1,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/323/thumbnails/816x460-af0da367b1d23be6c3a45654f8c90d4f.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/323/thumbnails/120x90-af0da367b1d23be6c3a45654f8c90d4f.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/323/thumbnails/320x240-af0da367b1d23be6c3a45654f8c90d4f.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/files/us/323/thumbnails/816x460-af0da367b1d23be6c3a45654f8c90d4f.jpg"
                                        }
                                    }
                                ],
                                "user": {
                                    "id": 2469,
                                    "name": "Cathryn Flatley",
                                    "username": "weissnathazel",
                                    "updated_at": "2024-10-14T07:55:06.216002Z",
                                    "original_updated_at": null,
                                    "original_last_activity": null,
                                    "created_at_formatted": "4 months ago",
                                    "photo_url": "https://demo.laraclassifier.local/storage/app/default/user.png",
                                    "p_is_online": false,
                                    "country_flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/pk.png"
                                },
                                "category": {
                                    "id": 7,
                                    "parent_id": 1,
                                    "name": "Vehicle Parts & Accessories",
                                    "slug": "car-parts-and-accessories",
                                    "description": "",
                                    "hide_description": null,
                                    "image_path": "app/default/categories/fa-folder-default.png",
                                    "icon_class": "fa-solid fa-folder",
                                    "seo_title": "",
                                    "seo_description": "",
                                    "seo_keywords": "",
                                    "lft": 7,
                                    "rgt": 8,
                                    "depth": 1,
                                    "type": "classified",
                                    "is_for_permanent": 0,
                                    "active": 1,
                                    "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png",
                                    "parent": {
                                        "id": 1,
                                        "parent_id": null,
                                        "name": "Automobiles",
                                        "slug": "automobiles",
                                        "description": "",
                                        "hide_description": null,
                                        "image_path": "app/default/categories/fa-folder-default.png",
                                        "icon_class": "fa-solid fa-car",
                                        "seo_title": "",
                                        "seo_description": "",
                                        "seo_keywords": "",
                                        "lft": 1,
                                        "rgt": 10,
                                        "depth": 0,
                                        "type": "classified",
                                        "is_for_permanent": 0,
                                        "active": 1,
                                        "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png",
                                        "parent": null
                                    }
                                },
                                "postType": {
                                    "id": 2,
                                    "name": "PROFESSIONAL",
                                    "label": "Professional"
                                },
                                "city": {
                                    "id": 47612,
                                    "country_code": "US",
                                    "name": "Norfolk",
                                    "latitude": 42.03,
                                    "longitude": -97.42,
                                    "subadmin1_code": "US.NE",
                                    "subadmin2_code": "US.NE.119",
                                    "population": 24366,
                                    "time_zone": "America/Chicago",
                                    "active": 1,
                                    "posts_count": 0
                                },
                                "payment": {
                                    "id": 445,
                                    "payable_id": 323,
                                    "payable_type": "App\\Models\\Post",
                                    "package_id": 3,
                                    "payment_method_id": 11,
                                    "transaction_id": null,
                                    "amount": "9.00",
                                    "currency_code": null,
                                    "period_start": "2024-09-28T00:00:00.000000Z",
                                    "period_end": "2024-10-28T23:59:59.000000Z",
                                    "canceled_at": null,
                                    "refunded_at": null,
                                    "active": 1,
                                    "interval": 30.999988425925928,
                                    "started": 1,
                                    "expired": 0,
                                    "status": "valid",
                                    "period_start_formatted": "Sep 27th, 2024",
                                    "period_end_formatted": "Oct 28th, 2024",
                                    "created_at_formatted": "Sep 25th, 2024 at 19:29",
                                    "status_info": "Valid",
                                    "starting_info": "Started on Sep 27th, 2024",
                                    "expiry_info": "Will expire on Oct 28th, 2024",
                                    "css_class_variant": "success",
                                    "package": {
                                        "id": 3,
                                        "type": "promotion",
                                        "name": "Premium Listing (+)",
                                        "short_name": "Premium+",
                                        "ribbon": "green",
                                        "has_badge": 1,
                                        "price": "9.00",
                                        "currency_code": "USD",
                                        "promotion_time": 30,
                                        "interval": null,
                                        "listings_limit": null,
                                        "pictures_limit": 15,
                                        "expiration_time": 120,
                                        "description": "Featured on the homepage\nFeatured in the category",
                                        "facebook_ads_duration": 0,
                                        "google_ads_duration": 0,
                                        "twitter_ads_duration": 0,
                                        "linkedin_ads_duration": 0,
                                        "recommended": 0,
                                        "active": 1,
                                        "parent_id": null,
                                        "lft": 6,
                                        "rgt": 7,
                                        "depth": 0,
                                        "period_start": "2024-10-14T00:00:00.000000Z",
                                        "period_end": "2024-11-13T23:59:59.999999Z",
                                        "description_array": [
                                            "30 days of promotion",
                                            "Up to 15 images allowed",
                                            "Featured on the homepage",
                                            "Featured in the category",
                                            "Keep online for 120 days"
                                        ],
                                        "description_string": "30 days of promotion. \nUp to 15 images allowed. \nFeatured on the homepage. \nFeatured in the category. \nKeep online for 120 days",
                                        "price_formatted": "$9"
                                    }
                                },
                                "savedByLoggedUser": [],
                                "rating_cache": 0,
                                "rating_count": 0
                            },
                            {
                                "id": 9364,
                                "country_code": "US",
                                "user_id": 1108,
                                "payment_id": null,
                                "category_id": 7,
                                "post_type_id": 1,
                                "title": " [***] Honda Civic",
                                "excerpt": "Nemo non suscipit architecto vero pariatur. Vero assumenda sed rerum illo quae sint suscipit ab. Ips...",
                                "description": "Nemo non suscipit architecto vero pariatur. Vero assumenda sed rerum illo quae sint suscipit ab. Ipsa et sit vero et fugiat. Et dolorum illum et. Culpa illo vero dicta eius in ea et. Laboriosam nesciunt facere explicabo repellendus error. Molestias quaerat alias ipsam incidunt aut ipsam. Ex non assumenda maiores. Iste aspernatur exercitationem numquam quo perspiciatis nihil quia. Qui sed enim impedit iusto est. Voluptatem saepe minima aut aut incidunt non qui.",
                                "tags": [
                                    "sed",
                                    "magnam",
                                    "doloremque"
                                ],
                                "price": "331.00",
                                "currency_code": null,
                                "negotiable": null,
                                "contact_name": "Estel Carroll",
                                "auth_field": "email",
                                "email": "klocko.oswald@hotmail.com",
                                "phone": "+15737348009",
                                "phone_national": "(573) 734-8009",
                                "phone_country": "US",
                                "phone_hidden": null,
                                "address": null,
                                "city_id": 46848,
                                "lat": null,
                                "lon": null,
                                "create_from_ip": null,
                                "latest_update_ip": null,
                                "visits": null,
                                "tmp_token": null,
                                "email_token": null,
                                "phone_token": null,
                                "email_verified_at": "2024-09-01T10:18:01.000000Z",
                                "phone_verified_at": "2024-09-01T10:18:01.000000Z",
                                "accept_terms": null,
                                "accept_marketing_offers": null,
                                "is_permanent": null,
                                "reviewed_at": "2024-09-01T10:18:01.000000Z",
                                "featured": 1,
                                "archived_at": null,
                                "archived_manually_at": null,
                                "deletion_mail_sent_at": null,
                                "fb_profile": null,
                                "partner": null,
                                "created_at": "2024-08-09T18:59:03.000000Z",
                                "updated_at": "2024-10-14T07:55:05.091936Z",
                                "reference": "1YQdJyvvbOG",
                                "slug": "-honda-civic",
                                "url": "https://demo.laraclassifier.local/-honda-civic/1YQdJyvvbOG",
                                "phone_intl": "(573) 734-8009",
                                "created_at_formatted": "2 months ago",
                                "updated_at_formatted": "Oct 14th, 2024 at 03:55",
                                "archived_at_formatted": "",
                                "archived_manually_at_formatted": "",
                                "user_photo_url": "https://demo.laraclassifier.local/storage/app/default/user.png",
                                "country_flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/us.png",
                                "price_label": "Price:",
                                "price_formatted": "$331",
                                "visits_formatted": "0 view",
                                "distance_info": null,
                                "count_pictures": 5,
                                "picture": {
                                    "id": 14549,
                                    "post_id": 9364,
                                    "file_path": "files/us/9364/bda680e3d76f7da405846dad0f4ce818.jpg",
                                    "mime_type": "image/jpeg",
                                    "position": 1,
                                    "active": 1,
                                    "url": {
                                        "full": "https://demo.laraclassifier.local/storage/files/us/9364/thumbnails/816x460-bda680e3d76f7da405846dad0f4ce818.jpg",
                                        "small": "https://demo.laraclassifier.local/storage/files/us/9364/thumbnails/120x90-bda680e3d76f7da405846dad0f4ce818.jpg",
                                        "medium": "https://demo.laraclassifier.local/storage/files/us/9364/thumbnails/320x240-bda680e3d76f7da405846dad0f4ce818.jpg",
                                        "large": "https://demo.laraclassifier.local/storage/files/us/9364/thumbnails/816x460-bda680e3d76f7da405846dad0f4ce818.jpg"
                                    }
                                },
                                "pictures": [
                                    {
                                        "id": 14549,
                                        "post_id": 9364,
                                        "file_path": "files/us/9364/bda680e3d76f7da405846dad0f4ce818.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 1,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/9364/thumbnails/816x460-bda680e3d76f7da405846dad0f4ce818.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/9364/thumbnails/120x90-bda680e3d76f7da405846dad0f4ce818.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/9364/thumbnails/320x240-bda680e3d76f7da405846dad0f4ce818.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/files/us/9364/thumbnails/816x460-bda680e3d76f7da405846dad0f4ce818.jpg"
                                        }
                                    },
                                    {
                                        "id": 14551,
                                        "post_id": 9364,
                                        "file_path": "files/us/9364/ca48c6c09b4269b8de8885a222323c8f.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 2,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/9364/thumbnails/816x460-ca48c6c09b4269b8de8885a222323c8f.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/9364/thumbnails/120x90-ca48c6c09b4269b8de8885a222323c8f.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/9364/thumbnails/320x240-ca48c6c09b4269b8de8885a222323c8f.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/files/us/9364/thumbnails/816x460-ca48c6c09b4269b8de8885a222323c8f.jpg"
                                        }
                                    },
                                    {
                                        "id": 14547,
                                        "post_id": 9364,
                                        "file_path": "files/us/9364/cea082eb69261995b1cfd097abdee152.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 2,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/9364/thumbnails/816x460-cea082eb69261995b1cfd097abdee152.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/9364/thumbnails/120x90-cea082eb69261995b1cfd097abdee152.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/9364/thumbnails/320x240-cea082eb69261995b1cfd097abdee152.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/files/us/9364/thumbnails/816x460-cea082eb69261995b1cfd097abdee152.jpg"
                                        }
                                    },
                                    {
                                        "id": 14550,
                                        "post_id": 9364,
                                        "file_path": "files/us/9364/cb1154a90b61c1b7cfe76cb6d354b93c.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 4,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/9364/thumbnails/816x460-cb1154a90b61c1b7cfe76cb6d354b93c.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/9364/thumbnails/120x90-cb1154a90b61c1b7cfe76cb6d354b93c.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/9364/thumbnails/320x240-cb1154a90b61c1b7cfe76cb6d354b93c.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/files/us/9364/thumbnails/816x460-cb1154a90b61c1b7cfe76cb6d354b93c.jpg"
                                        }
                                    },
                                    {
                                        "id": 14548,
                                        "post_id": 9364,
                                        "file_path": "files/us/9364/d90898b02beb4574c83379fa51c7c1f0.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 5,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/9364/thumbnails/816x460-d90898b02beb4574c83379fa51c7c1f0.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/9364/thumbnails/120x90-d90898b02beb4574c83379fa51c7c1f0.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/9364/thumbnails/320x240-d90898b02beb4574c83379fa51c7c1f0.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/files/us/9364/thumbnails/816x460-d90898b02beb4574c83379fa51c7c1f0.jpg"
                                        }
                                    }
                                ],
                                "user": {
                                    "id": 1108,
                                    "name": "Estel Carroll",
                                    "username": "josiannegottlieb",
                                    "updated_at": "2024-05-18T22:08:11.000000Z",
                                    "original_updated_at": "2024-05-18 22:08:11",
                                    "original_last_activity": null,
                                    "created_at_formatted": "5 months ago",
                                    "photo_url": "https://demo.laraclassifier.local/storage/app/default/user.png",
                                    "p_is_online": false,
                                    "country_flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/gb.png"
                                },
                                "category": {
                                    "id": 7,
                                    "parent_id": 1,
                                    "name": "Vehicle Parts & Accessories",
                                    "slug": "car-parts-and-accessories",
                                    "description": "",
                                    "hide_description": null,
                                    "image_path": "app/default/categories/fa-folder-default.png",
                                    "icon_class": "fa-solid fa-folder",
                                    "seo_title": "",
                                    "seo_description": "",
                                    "seo_keywords": "",
                                    "lft": 7,
                                    "rgt": 8,
                                    "depth": 1,
                                    "type": "classified",
                                    "is_for_permanent": 0,
                                    "active": 1,
                                    "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png",
                                    "parent": {
                                        "id": 1,
                                        "parent_id": null,
                                        "name": "Automobiles",
                                        "slug": "automobiles",
                                        "description": "",
                                        "hide_description": null,
                                        "image_path": "app/default/categories/fa-folder-default.png",
                                        "icon_class": "fa-solid fa-car",
                                        "seo_title": "",
                                        "seo_description": "",
                                        "seo_keywords": "",
                                        "lft": 1,
                                        "rgt": 10,
                                        "depth": 0,
                                        "type": "classified",
                                        "is_for_permanent": 0,
                                        "active": 1,
                                        "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png",
                                        "parent": null
                                    }
                                },
                                "postType": {
                                    "id": 1,
                                    "name": "INDIVIDUAL",
                                    "label": "Individual"
                                },
                                "city": {
                                    "id": 46848,
                                    "country_code": "US",
                                    "name": "River Forest",
                                    "latitude": 41.9,
                                    "longitude": -87.81,
                                    "subadmin1_code": "US.IL",
                                    "subadmin2_code": "US.IL.031",
                                    "population": 11199,
                                    "time_zone": "America/Chicago",
                                    "active": 1,
                                    "posts_count": 0
                                },
                                "payment": {
                                    "id": 95,
                                    "payable_id": 9364,
                                    "payable_type": "App\\Models\\Post",
                                    "package_id": 3,
                                    "payment_method_id": 3,
                                    "transaction_id": null,
                                    "amount": "9.00",
                                    "currency_code": null,
                                    "period_start": "2024-09-28T00:00:00.000000Z",
                                    "period_end": "2024-10-28T23:59:59.000000Z",
                                    "canceled_at": null,
                                    "refunded_at": null,
                                    "active": 1,
                                    "interval": 30.999988425925928,
                                    "started": 1,
                                    "expired": 0,
                                    "status": "valid",
                                    "period_start_formatted": "Sep 27th, 2024",
                                    "period_end_formatted": "Oct 28th, 2024",
                                    "created_at_formatted": "Sep 15th, 2024 at 08:39",
                                    "status_info": "Valid",
                                    "starting_info": "Started on Sep 27th, 2024",
                                    "expiry_info": "Will expire on Oct 28th, 2024",
                                    "css_class_variant": "success",
                                    "package": {
                                        "id": 3,
                                        "type": "promotion",
                                        "name": "Premium Listing (+)",
                                        "short_name": "Premium+",
                                        "ribbon": "green",
                                        "has_badge": 1,
                                        "price": "9.00",
                                        "currency_code": "USD",
                                        "promotion_time": 30,
                                        "interval": null,
                                        "listings_limit": null,
                                        "pictures_limit": 15,
                                        "expiration_time": 120,
                                        "description": "Featured on the homepage\nFeatured in the category",
                                        "facebook_ads_duration": 0,
                                        "google_ads_duration": 0,
                                        "twitter_ads_duration": 0,
                                        "linkedin_ads_duration": 0,
                                        "recommended": 0,
                                        "active": 1,
                                        "parent_id": null,
                                        "lft": 6,
                                        "rgt": 7,
                                        "depth": 0,
                                        "period_start": "2024-10-14T00:00:00.000000Z",
                                        "period_end": "2024-11-13T23:59:59.999999Z",
                                        "description_array": [
                                            "30 days of promotion",
                                            "Up to 15 images allowed",
                                            "Featured on the homepage",
                                            "Featured in the category",
                                            "Keep online for 120 days"
                                        ],
                                        "description_string": "30 days of promotion. \nUp to 15 images allowed. \nFeatured on the homepage. \nFeatured in the category. \nKeep online for 120 days",
                                        "price_formatted": "$9"
                                    }
                                },
                                "savedByLoggedUser": [],
                                "rating_cache": 0,
                                "rating_count": 0
                            },
                            {
                                "id": 5304,
                                "country_code": "US",
                                "user_id": 1647,
                                "payment_id": null,
                                "category_id": 15,
                                "post_type_id": 1,
                                "title": "Apple World Travel Adapter gray",
                                "excerpt": "Unde omnis sit qui quos reiciendis. Et inventore magni vel quos laboriosam. Est ad ut ipsa distincti...",
                                "description": "Unde omnis sit qui quos reiciendis. Et inventore magni vel quos laboriosam. Est ad ut ipsa distinctio iste magnam explicabo. Nisi dolor ut vero ex laboriosam enim. Omnis qui ducimus omnis non temporibus sit. Sit ut blanditiis tempora porro. Vel eos deleniti provident minus quia aut nesciunt. Omnis qui ipsum voluptatibus molestiae ratione. Sit beatae iure voluptates perspiciatis sapiente ipsum sunt. Laudantium enim sit dolorem aspernatur excepturi occaecati non.",
                                "tags": [
                                    "rerum",
                                    "sed",
                                    "atque"
                                ],
                                "price": "78.00",
                                "currency_code": null,
                                "negotiable": null,
                                "contact_name": "Kasey Dickinson",
                                "auth_field": "email",
                                "email": "ondricka.melvina@yahoo.com",
                                "phone": "+17148192019",
                                "phone_national": "(714) 819-2019",
                                "phone_country": "US",
                                "phone_hidden": null,
                                "address": null,
                                "city_id": 49037,
                                "lat": null,
                                "lon": null,
                                "create_from_ip": null,
                                "latest_update_ip": null,
                                "visits": null,
                                "tmp_token": null,
                                "email_token": null,
                                "phone_token": null,
                                "email_verified_at": "2024-09-06T11:39:16.000000Z",
                                "phone_verified_at": "2024-09-06T11:39:16.000000Z",
                                "accept_terms": null,
                                "accept_marketing_offers": null,
                                "is_permanent": null,
                                "reviewed_at": "2024-09-06T11:39:16.000000Z",
                                "featured": 1,
                                "archived_at": null,
                                "archived_manually_at": null,
                                "deletion_mail_sent_at": null,
                                "fb_profile": null,
                                "partner": null,
                                "created_at": "2024-08-08T16:20:56.000000Z",
                                "updated_at": "2024-10-14T07:55:05.246060Z",
                                "reference": "wMvbmw39eYA",
                                "slug": "apple-world-travel-adapter-gray",
                                "url": "https://demo.laraclassifier.local/apple-world-travel-adapter-gray/wMvbmw39eYA",
                                "phone_intl": "(714) 819-2019",
                                "created_at_formatted": "2 months ago",
                                "updated_at_formatted": "Oct 14th, 2024 at 03:55",
                                "archived_at_formatted": "",
                                "archived_manually_at_formatted": "",
                                "user_photo_url": "https://demo.laraclassifier.local/storage/app/default/user.png",
                                "country_flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/us.png",
                                "price_label": "Price:",
                                "price_formatted": "$78",
                                "visits_formatted": "0 view",
                                "distance_info": null,
                                "count_pictures": 5,
                                "picture": {
                                    "id": 8322,
                                    "post_id": 5304,
                                    "file_path": "files/us/5304/fceb0073b22f742702c93ceba7058ae0.jpg",
                                    "mime_type": "image/jpeg",
                                    "position": 1,
                                    "active": 1,
                                    "url": {
                                        "full": "https://demo.laraclassifier.local/storage/files/us/5304/thumbnails/816x460-fceb0073b22f742702c93ceba7058ae0.jpg",
                                        "small": "https://demo.laraclassifier.local/storage/files/us/5304/thumbnails/120x90-fceb0073b22f742702c93ceba7058ae0.jpg",
                                        "medium": "https://demo.laraclassifier.local/storage/files/us/5304/thumbnails/320x240-fceb0073b22f742702c93ceba7058ae0.jpg",
                                        "large": "https://demo.laraclassifier.local/storage/files/us/5304/thumbnails/816x460-fceb0073b22f742702c93ceba7058ae0.jpg"
                                    }
                                },
                                "pictures": [
                                    {
                                        "id": 8322,
                                        "post_id": 5304,
                                        "file_path": "files/us/5304/fceb0073b22f742702c93ceba7058ae0.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 1,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/5304/thumbnails/816x460-fceb0073b22f742702c93ceba7058ae0.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/5304/thumbnails/120x90-fceb0073b22f742702c93ceba7058ae0.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/5304/thumbnails/320x240-fceb0073b22f742702c93ceba7058ae0.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/files/us/5304/thumbnails/816x460-fceb0073b22f742702c93ceba7058ae0.jpg"
                                        }
                                    },
                                    {
                                        "id": 8320,
                                        "post_id": 5304,
                                        "file_path": "files/us/5304/47aa4fcd30f31e1139cbdb2c9c64e769.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 2,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/app/default/picture.jpg"
                                        }
                                    },
                                    {
                                        "id": 8324,
                                        "post_id": 5304,
                                        "file_path": "files/us/5304/9be90caffd74b0e8c993b638af2b43ac.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 4,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/app/default/picture.jpg"
                                        }
                                    },
                                    {
                                        "id": 8323,
                                        "post_id": 5304,
                                        "file_path": "files/us/5304/0e29baf7fa846949193ce3bbb688dbb5.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 5,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/app/default/picture.jpg"
                                        }
                                    },
                                    {
                                        "id": 8321,
                                        "post_id": 5304,
                                        "file_path": "files/us/5304/51aee614b23ec30dc215daa532113487.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 5,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/app/default/picture.jpg"
                                        }
                                    }
                                ],
                                "user": {
                                    "id": 1647,
                                    "name": "Kasey Dickinson",
                                    "username": "agustinreichel",
                                    "updated_at": "2024-06-15T12:21:42.000000Z",
                                    "original_updated_at": "2024-06-15 12:21:42",
                                    "original_last_activity": null,
                                    "created_at_formatted": "6 months ago",
                                    "photo_url": "https://demo.laraclassifier.local/storage/app/default/user.png",
                                    "p_is_online": false,
                                    "country_flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/eg.png"
                                },
                                "category": {
                                    "id": 15,
                                    "parent_id": 14,
                                    "name": "Accessories & Supplies for Electronics",
                                    "slug": "accessories-supplies-for-electronics",
                                    "description": "",
                                    "hide_description": null,
                                    "image_path": "app/default/categories/fa-folder-default.png",
                                    "icon_class": "fa-solid fa-folder",
                                    "seo_title": "",
                                    "seo_description": "",
                                    "seo_keywords": "",
                                    "lft": 19,
                                    "rgt": 20,
                                    "depth": 1,
                                    "type": "classified",
                                    "is_for_permanent": 0,
                                    "active": 1,
                                    "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png",
                                    "parent": {
                                        "id": 14,
                                        "parent_id": null,
                                        "name": "Electronics",
                                        "slug": "electronics",
                                        "description": "",
                                        "hide_description": null,
                                        "image_path": "app/default/categories/fa-folder-default.png",
                                        "icon_class": "fa-solid fa-laptop",
                                        "seo_title": "",
                                        "seo_description": "",
                                        "seo_keywords": "",
                                        "lft": 18,
                                        "rgt": 35,
                                        "depth": 0,
                                        "type": "classified",
                                        "is_for_permanent": 0,
                                        "active": 1,
                                        "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png",
                                        "parent": null
                                    }
                                },
                                "postType": {
                                    "id": 1,
                                    "name": "INDIVIDUAL",
                                    "label": "Individual"
                                },
                                "city": {
                                    "id": 49037,
                                    "country_code": "US",
                                    "name": "Bethel",
                                    "latitude": 41.37,
                                    "longitude": -73.41,
                                    "subadmin1_code": "US.CT",
                                    "subadmin2_code": "US.CT.001",
                                    "population": 9549,
                                    "time_zone": "America/New_York",
                                    "active": 1,
                                    "posts_count": 0
                                },
                                "payment": {
                                    "id": 246,
                                    "payable_id": 5304,
                                    "payable_type": "App\\Models\\Post",
                                    "package_id": 3,
                                    "payment_method_id": 4,
                                    "transaction_id": null,
                                    "amount": "9.00",
                                    "currency_code": null,
                                    "period_start": "2024-09-28T00:00:00.000000Z",
                                    "period_end": "2024-10-28T23:59:59.000000Z",
                                    "canceled_at": null,
                                    "refunded_at": null,
                                    "active": 1,
                                    "interval": 30.999988425925928,
                                    "started": 1,
                                    "expired": 0,
                                    "status": "valid",
                                    "period_start_formatted": "Sep 27th, 2024",
                                    "period_end_formatted": "Oct 28th, 2024",
                                    "created_at_formatted": "Aug 26th, 2024 at 01:15",
                                    "status_info": "Valid",
                                    "starting_info": "Started on Sep 27th, 2024",
                                    "expiry_info": "Will expire on Oct 28th, 2024",
                                    "css_class_variant": "success",
                                    "package": {
                                        "id": 3,
                                        "type": "promotion",
                                        "name": "Premium Listing (+)",
                                        "short_name": "Premium+",
                                        "ribbon": "green",
                                        "has_badge": 1,
                                        "price": "9.00",
                                        "currency_code": "USD",
                                        "promotion_time": 30,
                                        "interval": null,
                                        "listings_limit": null,
                                        "pictures_limit": 15,
                                        "expiration_time": 120,
                                        "description": "Featured on the homepage\nFeatured in the category",
                                        "facebook_ads_duration": 0,
                                        "google_ads_duration": 0,
                                        "twitter_ads_duration": 0,
                                        "linkedin_ads_duration": 0,
                                        "recommended": 0,
                                        "active": 1,
                                        "parent_id": null,
                                        "lft": 6,
                                        "rgt": 7,
                                        "depth": 0,
                                        "period_start": "2024-10-14T00:00:00.000000Z",
                                        "period_end": "2024-11-13T23:59:59.999999Z",
                                        "description_array": [
                                            "30 days of promotion",
                                            "Up to 15 images allowed",
                                            "Featured on the homepage",
                                            "Featured in the category",
                                            "Keep online for 120 days"
                                        ],
                                        "description_string": "30 days of promotion. \nUp to 15 images allowed. \nFeatured on the homepage. \nFeatured in the category. \nKeep online for 120 days",
                                        "price_formatted": "$9"
                                    }
                                },
                                "savedByLoggedUser": [],
                                "rating_cache": 0,
                                "rating_count": 0
                            },
                            {
                                "id": 15,
                                "country_code": "US",
                                "user_id": 1,
                                "payment_id": null,
                                "category_id": 12,
                                "post_type_id": 2,
                                "title": "Test sell iPhone 14",
                                "excerpt": "Quo architecto commodi quia excepturi sunt. Totam fugit enim deleniti similique veritatis natus alia...",
                                "description": "Quo architecto commodi quia excepturi sunt. Totam fugit enim deleniti similique veritatis natus alias laboriosam. Dolores possimus in rerum nobis. Placeat aliquam sit architecto molestias facilis fugit. Quia eius velit magnam qui sit. Qui quae recusandae sequi repellat tenetur quo. Ipsam eum sapiente neque porro ducimus nihil. Reprehenderit commodi autem praesentium veniam. Assumenda consequuntur sit laborum delectus maxime.",
                                "tags": [
                                    "in",
                                    "quia",
                                    "qui"
                                ],
                                "price": "52484.00",
                                "currency_code": null,
                                "negotiable": null,
                                "contact_name": "Administrator",
                                "auth_field": "email",
                                "email": "mayeul@domain.tld",
                                "phone": "+13194749621",
                                "phone_national": "(319) 474-9621",
                                "phone_country": "US",
                                "phone_hidden": null,
                                "address": null,
                                "city_id": 46031,
                                "lat": null,
                                "lon": null,
                                "create_from_ip": null,
                                "latest_update_ip": null,
                                "visits": null,
                                "tmp_token": null,
                                "email_token": null,
                                "phone_token": null,
                                "email_verified_at": "2024-09-02T13:49:22.000000Z",
                                "phone_verified_at": "2024-09-02T13:49:22.000000Z",
                                "accept_terms": null,
                                "accept_marketing_offers": null,
                                "is_permanent": null,
                                "reviewed_at": "2024-09-02T13:49:22.000000Z",
                                "featured": 1,
                                "archived_at": null,
                                "archived_manually_at": null,
                                "deletion_mail_sent_at": null,
                                "fb_profile": null,
                                "partner": null,
                                "created_at": "2024-07-29T17:16:16.000000Z",
                                "updated_at": "2024-10-14T07:55:05.398103Z",
                                "reference": "K4w9aAOdvMR",
                                "slug": "test-sell-iphone-14",
                                "url": "https://demo.laraclassifier.local/test-sell-iphone-14/K4w9aAOdvMR",
                                "phone_intl": "(319) 474-9621",
                                "created_at_formatted": "2 months ago",
                                "updated_at_formatted": "Oct 14th, 2024 at 03:55",
                                "archived_at_formatted": "",
                                "archived_manually_at_formatted": "",
                                "user_photo_url": "https://demo.laraclassifier.local/storage/avatars/us/1/thumbnails/800x800-61005056409e48c3c7862f4d135304cc.jpg",
                                "country_flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/us.png",
                                "price_label": "Price:",
                                "price_formatted": "$52,484",
                                "visits_formatted": "0 view",
                                "distance_info": null,
                                "count_pictures": 3,
                                "picture": {
                                    "id": 45,
                                    "post_id": 15,
                                    "file_path": "files/us/15/24de31f26f31b2e4b3039b0d33b32781.jpg",
                                    "mime_type": "image/jpeg",
                                    "position": 1,
                                    "active": 1,
                                    "url": {
                                        "full": "https://demo.laraclassifier.local/storage/files/us/15/thumbnails/816x460-24de31f26f31b2e4b3039b0d33b32781.jpg",
                                        "small": "https://demo.laraclassifier.local/storage/files/us/15/thumbnails/120x90-24de31f26f31b2e4b3039b0d33b32781.jpg",
                                        "medium": "https://demo.laraclassifier.local/storage/files/us/15/thumbnails/320x240-24de31f26f31b2e4b3039b0d33b32781.jpg",
                                        "large": "https://demo.laraclassifier.local/storage/files/us/15/thumbnails/816x460-24de31f26f31b2e4b3039b0d33b32781.jpg"
                                    }
                                },
                                "pictures": [
                                    {
                                        "id": 45,
                                        "post_id": 15,
                                        "file_path": "files/us/15/24de31f26f31b2e4b3039b0d33b32781.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 1,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/15/thumbnails/816x460-24de31f26f31b2e4b3039b0d33b32781.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/15/thumbnails/120x90-24de31f26f31b2e4b3039b0d33b32781.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/15/thumbnails/320x240-24de31f26f31b2e4b3039b0d33b32781.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/files/us/15/thumbnails/816x460-24de31f26f31b2e4b3039b0d33b32781.jpg"
                                        }
                                    },
                                    {
                                        "id": 44,
                                        "post_id": 15,
                                        "file_path": "files/us/15/951f601321b400d73e9c5c05ef4b543e.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 2,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/app/default/picture.jpg"
                                        }
                                    },
                                    {
                                        "id": 46,
                                        "post_id": 15,
                                        "file_path": "files/us/15/73e395f53f848b9d365380adaa02f686.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 3,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/app/default/picture.jpg"
                                        }
                                    }
                                ],
                                "user": {
                                    "id": 1,
                                    "name": "Administrator",
                                    "username": null,
                                    "updated_at": "2024-08-21T10:06:58.000000Z",
                                    "original_updated_at": "2024-08-21 10:06:58",
                                    "original_last_activity": null,
                                    "created_at_formatted": "6 months ago",
                                    "photo_url": "https://demo.laraclassifier.local/storage/avatars/us/1/thumbnails/800x800-61005056409e48c3c7862f4d135304cc.jpg",
                                    "p_is_online": false,
                                    "country_flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/us.png"
                                },
                                "category": {
                                    "id": 12,
                                    "parent_id": 9,
                                    "name": "Smart Watches & Trackers",
                                    "slug": "smart-watches-and-trackers",
                                    "description": "",
                                    "hide_description": null,
                                    "image_path": "app/default/categories/fa-folder-default.png",
                                    "icon_class": "fa-solid fa-folder",
                                    "seo_title": "",
                                    "seo_description": "",
                                    "seo_keywords": "",
                                    "lft": 14,
                                    "rgt": 15,
                                    "depth": 1,
                                    "type": "classified",
                                    "is_for_permanent": 0,
                                    "active": 1,
                                    "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png",
                                    "parent": {
                                        "id": 9,
                                        "parent_id": null,
                                        "name": "Phones & Tablets",
                                        "slug": "phones-and-tablets",
                                        "description": "",
                                        "hide_description": null,
                                        "image_path": "app/default/categories/fa-folder-default.png",
                                        "icon_class": "fa-solid fa-mobile-screen-button",
                                        "seo_title": "",
                                        "seo_description": "",
                                        "seo_keywords": "",
                                        "lft": 11,
                                        "rgt": 17,
                                        "depth": 0,
                                        "type": "classified",
                                        "is_for_permanent": 0,
                                        "active": 1,
                                        "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png",
                                        "parent": null
                                    }
                                },
                                "postType": {
                                    "id": 2,
                                    "name": "PROFESSIONAL",
                                    "label": "Professional"
                                },
                                "city": {
                                    "id": 46031,
                                    "country_code": "US",
                                    "name": "Joshua",
                                    "latitude": 32.46,
                                    "longitude": -97.39,
                                    "subadmin1_code": "US.TX",
                                    "subadmin2_code": "US.TX.251",
                                    "population": 6066,
                                    "time_zone": "America/Chicago",
                                    "active": 1,
                                    "posts_count": 0
                                },
                                "payment": {
                                    "id": 284,
                                    "payable_id": 15,
                                    "payable_type": "App\\Models\\Post",
                                    "package_id": 3,
                                    "payment_method_id": 4,
                                    "transaction_id": null,
                                    "amount": "9.00",
                                    "currency_code": null,
                                    "period_start": "2024-09-28T00:00:00.000000Z",
                                    "period_end": "2024-10-28T23:59:59.000000Z",
                                    "canceled_at": null,
                                    "refunded_at": null,
                                    "active": 1,
                                    "interval": 30.999988425925928,
                                    "started": 1,
                                    "expired": 0,
                                    "status": "valid",
                                    "period_start_formatted": "Sep 27th, 2024",
                                    "period_end_formatted": "Oct 28th, 2024",
                                    "created_at_formatted": "Sep 1st, 2024 at 00:41",
                                    "status_info": "Valid",
                                    "starting_info": "Started on Sep 27th, 2024",
                                    "expiry_info": "Will expire on Oct 28th, 2024",
                                    "css_class_variant": "success",
                                    "package": {
                                        "id": 3,
                                        "type": "promotion",
                                        "name": "Premium Listing (+)",
                                        "short_name": "Premium+",
                                        "ribbon": "green",
                                        "has_badge": 1,
                                        "price": "9.00",
                                        "currency_code": "USD",
                                        "promotion_time": 30,
                                        "interval": null,
                                        "listings_limit": null,
                                        "pictures_limit": 15,
                                        "expiration_time": 120,
                                        "description": "Featured on the homepage\nFeatured in the category",
                                        "facebook_ads_duration": 0,
                                        "google_ads_duration": 0,
                                        "twitter_ads_duration": 0,
                                        "linkedin_ads_duration": 0,
                                        "recommended": 0,
                                        "active": 1,
                                        "parent_id": null,
                                        "lft": 6,
                                        "rgt": 7,
                                        "depth": 0,
                                        "period_start": "2024-10-14T00:00:00.000000Z",
                                        "period_end": "2024-11-13T23:59:59.999999Z",
                                        "description_array": [
                                            "30 days of promotion",
                                            "Up to 15 images allowed",
                                            "Featured on the homepage",
                                            "Featured in the category",
                                            "Keep online for 120 days"
                                        ],
                                        "description_string": "30 days of promotion. \nUp to 15 images allowed. \nFeatured on the homepage. \nFeatured in the category. \nKeep online for 120 days",
                                        "price_formatted": "$9"
                                    }
                                },
                                "savedByLoggedUser": [],
                                "rating_cache": 0,
                                "rating_count": 0
                            }
                        ],
                        "totalPosts": 8
                    }
                },
                "options": {
                    "max_items": "20",
                    "order_by": "date",
                    "autoplay": "1",
                    "autoplay_timeout": null,
                    "cache_expiration": "3600",
                    "active": "1",
                    "items_in_carousel": "1"
                },
                "lft": 4
            },
            "locations": {
                "belongs_to": "home",
                "key": "locations",
                "data": {
                    "cities": [
                        [
                            {
                                "id": 48225,
                                "country_code": "US",
                                "name": "New York City",
                                "longitude": -74.01,
                                "latitude": 40.71,
                                "feature_class": "P",
                                "feature_code": "PPL",
                                "subadmin1_code": "US.NY",
                                "subadmin2_code": null,
                                "population": 8804190,
                                "time_zone": "America/New_York",
                                "active": 1,
                                "created_at": "2022-01-28T00:00:00.000000Z",
                                "updated_at": "2022-01-28T00:00:00.000000Z",
                                "slug": "new-york-city"
                            },
                            {
                                "id": 49443,
                                "country_code": "US",
                                "name": "Los Angeles",
                                "longitude": -118.24,
                                "latitude": 34.05,
                                "feature_class": "P",
                                "feature_code": "PPLA2",
                                "subadmin1_code": "US.CA",
                                "subadmin2_code": "US.CA.037",
                                "population": 3971883,
                                "time_zone": "America/Los_Angeles",
                                "active": 1,
                                "created_at": "2019-12-12T00:00:00.000000Z",
                                "updated_at": "2019-12-12T00:00:00.000000Z",
                                "slug": "los-angeles"
                            },
                            {
                                "id": 46654,
                                "country_code": "US",
                                "name": "Chicago",
                                "longitude": -87.65,
                                "latitude": 41.85,
                                "feature_class": "P",
                                "feature_code": "PPLA2",
                                "subadmin1_code": "US.IL",
                                "subadmin2_code": "US.IL.031",
                                "population": 2720546,
                                "time_zone": "America/Chicago",
                                "active": 1,
                                "created_at": "2019-10-07T00:00:00.000000Z",
                                "updated_at": "2019-10-07T00:00:00.000000Z",
                                "slug": "chicago"
                            },
                            {
                                "id": 47977,
                                "country_code": "US",
                                "name": "Brooklyn",
                                "longitude": -73.95,
                                "latitude": 40.65,
                                "feature_class": "P",
                                "feature_code": "PPLA2",
                                "subadmin1_code": "US.NY",
                                "subadmin2_code": "US.NY.047",
                                "population": 2300664,
                                "time_zone": "America/New_York",
                                "active": 1,
                                "created_at": "2015-01-18T00:00:00.000000Z",
                                "updated_at": "2015-01-18T00:00:00.000000Z",
                                "slug": "brooklyn"
                            },
                            {
                                "id": 46017,
                                "country_code": "US",
                                "name": "Houston",
                                "longitude": -95.36,
                                "latitude": 29.76,
                                "feature_class": "P",
                                "feature_code": "PPLA2",
                                "subadmin1_code": "US.TX",
                                "subadmin2_code": "US.TX.201",
                                "population": 2296224,
                                "time_zone": "America/Chicago",
                                "active": 1,
                                "created_at": "2021-07-25T00:00:00.000000Z",
                                "updated_at": "2021-07-25T00:00:00.000000Z",
                                "slug": "houston"
                            }
                        ],
                        [
                            {
                                "id": 48286,
                                "country_code": "US",
                                "name": "Queens",
                                "longitude": -73.84,
                                "latitude": 40.68,
                                "feature_class": "P",
                                "feature_code": "PPLA2",
                                "subadmin1_code": "US.NY",
                                "subadmin2_code": "US.NY.081",
                                "population": 2272771,
                                "time_zone": "America/New_York",
                                "active": 1,
                                "created_at": "2021-07-30T00:00:00.000000Z",
                                "updated_at": "2021-07-30T00:00:00.000000Z",
                                "slug": "queens"
                            },
                            {
                                "id": 49093,
                                "country_code": "US",
                                "name": "Phoenix",
                                "longitude": -112.07,
                                "latitude": 33.45,
                                "feature_class": "P",
                                "feature_code": "PPLA",
                                "subadmin1_code": "US.AZ",
                                "subadmin2_code": "US.AZ.013",
                                "population": 1608139,
                                "time_zone": "America/Phoenix",
                                "active": 1,
                                "created_at": "2022-01-28T00:00:00.000000Z",
                                "updated_at": "2022-01-28T00:00:00.000000Z",
                                "slug": "phoenix"
                            },
                            {
                                "id": 45632,
                                "country_code": "US",
                                "name": "Philadelphia",
                                "longitude": -75.16,
                                "latitude": 39.95,
                                "feature_class": "P",
                                "feature_code": "PPLA2",
                                "subadmin1_code": "US.PA",
                                "subadmin2_code": "US.PA.101",
                                "population": 1603797,
                                "time_zone": "America/New_York",
                                "active": 1,
                                "created_at": "2022-01-28T00:00:00.000000Z",
                                "updated_at": "2022-01-28T00:00:00.000000Z",
                                "slug": "philadelphia"
                            },
                            {
                                "id": 48176,
                                "country_code": "US",
                                "name": "Manhattan",
                                "longitude": -73.97,
                                "latitude": 40.78,
                                "feature_class": "P",
                                "feature_code": "PPLA2",
                                "subadmin1_code": "US.NY",
                                "subadmin2_code": "US.NY.061",
                                "population": 1487536,
                                "time_zone": "America/New_York",
                                "active": 1,
                                "created_at": "2021-08-20T00:00:00.000000Z",
                                "updated_at": "2021-08-20T00:00:00.000000Z",
                                "slug": "manhattan"
                            },
                            {
                                "id": 46150,
                                "country_code": "US",
                                "name": "San Antonio",
                                "longitude": -98.49,
                                "latitude": 29.42,
                                "feature_class": "P",
                                "feature_code": "PPLA2",
                                "subadmin1_code": "US.TX",
                                "subadmin2_code": "US.TX.029",
                                "population": 1469845,
                                "time_zone": "America/Chicago",
                                "active": 1,
                                "created_at": "2019-09-19T00:00:00.000000Z",
                                "updated_at": "2019-09-19T00:00:00.000000Z",
                                "slug": "san-antonio"
                            }
                        ],
                        [
                            {
                                "id": 49614,
                                "country_code": "US",
                                "name": "San Diego",
                                "longitude": -117.16,
                                "latitude": 32.72,
                                "feature_class": "P",
                                "feature_code": "PPLA2",
                                "subadmin1_code": "US.CA",
                                "subadmin2_code": "US.CA.073",
                                "population": 1394928,
                                "time_zone": "America/Los_Angeles",
                                "active": 1,
                                "created_at": "2019-09-05T00:00:00.000000Z",
                                "updated_at": "2019-09-05T00:00:00.000000Z",
                                "slug": "san-diego"
                            },
                            {
                                "id": 47975,
                                "country_code": "US",
                                "name": "The Bronx",
                                "longitude": -73.87,
                                "latitude": 40.85,
                                "feature_class": "P",
                                "feature_code": "PPLA2",
                                "subadmin1_code": "US.NY",
                                "subadmin2_code": "US.NY.005",
                                "population": 1385108,
                                "time_zone": "America/New_York",
                                "active": 1,
                                "created_at": "2021-08-08T00:00:00.000000Z",
                                "updated_at": "2021-08-08T00:00:00.000000Z",
                                "slug": "the-bronx"
                            },
                            {
                                "id": 45946,
                                "country_code": "US",
                                "name": "Dallas",
                                "longitude": -96.81,
                                "latitude": 32.78,
                                "feature_class": "P",
                                "feature_code": "PPLA2",
                                "subadmin1_code": "US.TX",
                                "subadmin2_code": "US.TX.113",
                                "population": 1300092,
                                "time_zone": "America/Chicago",
                                "active": 1,
                                "created_at": "2021-07-25T00:00:00.000000Z",
                                "updated_at": "2021-07-25T00:00:00.000000Z",
                                "slug": "dallas"
                            },
                            {
                                "id": 49621,
                                "country_code": "US",
                                "name": "San Jose",
                                "longitude": -121.89,
                                "latitude": 37.34,
                                "feature_class": "P",
                                "feature_code": "PPLA2",
                                "subadmin1_code": "US.CA",
                                "subadmin2_code": "US.CA.085",
                                "population": 1026908,
                                "time_zone": "America/Los_Angeles",
                                "active": 1,
                                "created_at": "2019-09-05T00:00:00.000000Z",
                                "updated_at": "2019-09-05T00:00:00.000000Z",
                                "slug": "san-jose"
                            },
                            {
                                "id": 43974,
                                "country_code": "US",
                                "name": "Jacksonville",
                                "longitude": -81.66,
                                "latitude": 30.33,
                                "feature_class": "P",
                                "feature_code": "PPLA2",
                                "subadmin1_code": "US.FL",
                                "subadmin2_code": "US.FL.031",
                                "population": 949611,
                                "time_zone": "America/New_York",
                                "active": 1,
                                "created_at": "2022-01-28T00:00:00.000000Z",
                                "updated_at": "2022-01-28T00:00:00.000000Z",
                                "slug": "jacksonville"
                            }
                        ],
                        [
                            {
                                "id": 45880,
                                "country_code": "US",
                                "name": "Austin",
                                "longitude": -97.74,
                                "latitude": 30.27,
                                "feature_class": "P",
                                "feature_code": "PPLA",
                                "subadmin1_code": "US.TX",
                                "subadmin2_code": "US.TX.453",
                                "population": 931830,
                                "time_zone": "America/Chicago",
                                "active": 1,
                                "created_at": "2019-09-05T00:00:00.000000Z",
                                "updated_at": "2019-09-05T00:00:00.000000Z",
                                "slug": "austin"
                            },
                            {
                                "id": 45974,
                                "country_code": "US",
                                "name": "Fort Worth",
                                "longitude": -97.32,
                                "latitude": 32.73,
                                "feature_class": "P",
                                "feature_code": "PPLA2",
                                "subadmin1_code": "US.TX",
                                "subadmin2_code": "US.TX.439",
                                "population": 918915,
                                "time_zone": "America/Chicago",
                                "active": 1,
                                "created_at": "2022-01-28T00:00:00.000000Z",
                                "updated_at": "2022-01-28T00:00:00.000000Z",
                                "slug": "fort-worth"
                            },
                            {
                                "id": 45444,
                                "country_code": "US",
                                "name": "Columbus",
                                "longitude": -83,
                                "latitude": 39.96,
                                "feature_class": "P",
                                "feature_code": "PPLA",
                                "subadmin1_code": "US.OH",
                                "subadmin2_code": "US.OH.049",
                                "population": 905748,
                                "time_zone": "America/New_York",
                                "active": 1,
                                "created_at": "2022-01-28T00:00:00.000000Z",
                                "updated_at": "2022-01-28T00:00:00.000000Z",
                                "slug": "columbus"
                            },
                            {
                                "id": 44511,
                                "country_code": "US",
                                "name": "Indianapolis",
                                "longitude": -86.16,
                                "latitude": 39.77,
                                "feature_class": "P",
                                "feature_code": "PPLA",
                                "subadmin1_code": "US.IN",
                                "subadmin2_code": "US.IN.097",
                                "population": 887642,
                                "time_zone": "America/Indiana/Indianapolis",
                                "active": 1,
                                "created_at": "2022-01-28T00:00:00.000000Z",
                                "updated_at": "2022-01-28T00:00:00.000000Z",
                                "slug": "indianapolis"
                            },
                            {
                                "id": 0,
                                "name": "More cities &raquo;",
                                "subadmin1_code": 0
                            }
                        ]
                    ]
                },
                "options": {
                    "show_cities": "1",
                    "show_post_btn": "1",
                    "background_color": null,
                    "border_width": null,
                    "border_color": null,
                    "text_color": null,
                    "link_color": null,
                    "link_color_hover": null,
                    "max_items": "19",
                    "items_cols": "3",
                    "count_cities_posts": "0",
                    "cache_expiration": "3600",
                    "enable_map": false,
                    "map_background_color": null,
                    "map_border": null,
                    "map_hover_border": null,
                    "map_border_width": null,
                    "map_color": null,
                    "map_hover": null,
                    "map_width": "300",
                    "map_height": "300",
                    "active": "1",
                    "show_listing_btn": "1"
                },
                "lft": 6
            },
            "latest_listings": {
                "belongs_to": "home",
                "key": "latest_listings",
                "data": {
                    "latest": {
                        "title": "<span style=\"font-weight: bold;\">Latest</span> Listings",
                        "link": "https://demo.laraclassifier.local/search",
                        "posts": [
                            {
                                "id": 10030,
                                "country_code": "US",
                                "user_id": 1,
                                "payment_id": null,
                                "category_id": 108,
                                "post_type_id": 2,
                                "title": "Create New Listing",
                                "excerpt": "Do you have something to sell, to rent, any service to offer or a job offer? Post it at LaraClassifi...",
                                "description": "Do you have something to sell, to rent, any service to offer or a job offer? Post it at LaraClassifier, its free, for local business and very easy to use!",
                                "tags": [],
                                "price": "309.00",
                                "currency_code": null,
                                "negotiable": null,
                                "contact_name": "Administrator",
                                "auth_field": "email",
                                "email": "mayeul@domain.tld",
                                "phone": "+15537797114",
                                "phone_national": "(553) 779-7114",
                                "phone_country": "US",
                                "phone_hidden": null,
                                "address": null,
                                "city_id": 50085,
                                "lat": null,
                                "lon": null,
                                "create_from_ip": null,
                                "latest_update_ip": null,
                                "visits": null,
                                "tmp_token": null,
                                "email_token": null,
                                "phone_token": null,
                                "email_verified_at": "2024-10-01T18:36:32.000000Z",
                                "phone_verified_at": "2024-10-01T18:36:32.000000Z",
                                "accept_terms": null,
                                "accept_marketing_offers": null,
                                "is_permanent": null,
                                "reviewed_at": "2024-10-01T18:38:11.000000Z",
                                "featured": 1,
                                "archived_at": null,
                                "archived_manually_at": null,
                                "deletion_mail_sent_at": null,
                                "fb_profile": null,
                                "partner": null,
                                "created_at": "2024-10-01T18:36:32.000000Z",
                                "updated_at": "2024-10-14T07:55:07.184821Z",
                                "reference": "rlNbWPqgdyg",
                                "slug": "create-new-listing",
                                "url": "https://demo.laraclassifier.local/create-new-listing/rlNbWPqgdyg",
                                "phone_intl": "(553) 779-7114",
                                "created_at_formatted": "1 week ago",
                                "updated_at_formatted": "Oct 14th, 2024 at 03:55",
                                "archived_at_formatted": "",
                                "archived_manually_at_formatted": "",
                                "user_photo_url": "https://demo.laraclassifier.local/storage/avatars/us/1/thumbnails/800x800-61005056409e48c3c7862f4d135304cc.jpg",
                                "country_flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/us.png",
                                "price_label": "Price:",
                                "price_formatted": "$309",
                                "visits_formatted": "0 view",
                                "distance_info": null,
                                "count_pictures": 4,
                                "picture": {
                                    "id": 15586,
                                    "post_id": 10030,
                                    "file_path": "files/us/10030/428d6018822b5c094fa44a15ac798989.jpg",
                                    "mime_type": "image/jpeg",
                                    "position": 0,
                                    "active": 1,
                                    "url": {
                                        "full": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/816x460-428d6018822b5c094fa44a15ac798989.jpg",
                                        "small": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/120x90-428d6018822b5c094fa44a15ac798989.jpg",
                                        "medium": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/320x240-428d6018822b5c094fa44a15ac798989.jpg",
                                        "large": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/816x460-428d6018822b5c094fa44a15ac798989.jpg"
                                    }
                                },
                                "pictures": [
                                    {
                                        "id": 15586,
                                        "post_id": 10030,
                                        "file_path": "files/us/10030/428d6018822b5c094fa44a15ac798989.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 0,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/816x460-428d6018822b5c094fa44a15ac798989.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/120x90-428d6018822b5c094fa44a15ac798989.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/320x240-428d6018822b5c094fa44a15ac798989.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/816x460-428d6018822b5c094fa44a15ac798989.jpg"
                                        }
                                    },
                                    {
                                        "id": 15583,
                                        "post_id": 10030,
                                        "file_path": "files/us/10030/bcacb4b77d3e65edaac1622ea757cf9f.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 0,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/816x460-bcacb4b77d3e65edaac1622ea757cf9f.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/120x90-bcacb4b77d3e65edaac1622ea757cf9f.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/320x240-bcacb4b77d3e65edaac1622ea757cf9f.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/816x460-bcacb4b77d3e65edaac1622ea757cf9f.jpg"
                                        }
                                    },
                                    {
                                        "id": 15584,
                                        "post_id": 10030,
                                        "file_path": "files/us/10030/3d1494da593531f8d7db64280b59d17d.png",
                                        "mime_type": "image/png",
                                        "position": 1,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/816x460-3d1494da593531f8d7db64280b59d17d.png",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/120x90-3d1494da593531f8d7db64280b59d17d.png",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/320x240-3d1494da593531f8d7db64280b59d17d.png",
                                            "large": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/816x460-3d1494da593531f8d7db64280b59d17d.png"
                                        }
                                    },
                                    {
                                        "id": 15581,
                                        "post_id": 10030,
                                        "file_path": "files/us/10030/f6206e7659e7e1cc56654584c75c3cc2.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 3,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/816x460-f6206e7659e7e1cc56654584c75c3cc2.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/120x90-f6206e7659e7e1cc56654584c75c3cc2.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/320x240-f6206e7659e7e1cc56654584c75c3cc2.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/816x460-f6206e7659e7e1cc56654584c75c3cc2.jpg"
                                        }
                                    }
                                ],
                                "user": {
                                    "id": 1,
                                    "name": "Administrator",
                                    "username": null,
                                    "updated_at": "2024-08-21T10:06:58.000000Z",
                                    "original_updated_at": "2024-08-21 10:06:58",
                                    "original_last_activity": null,
                                    "created_at_formatted": "6 months ago",
                                    "photo_url": "https://demo.laraclassifier.local/storage/avatars/us/1/thumbnails/800x800-61005056409e48c3c7862f4d135304cc.jpg",
                                    "p_is_online": false,
                                    "country_flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/us.png"
                                },
                                "category": {
                                    "id": 108,
                                    "parent_id": 97,
                                    "name": "Artisan, Troubleshooting, Handyman",
                                    "slug": "artisan-troubleshooting-handyman",
                                    "description": "",
                                    "hide_description": null,
                                    "image_path": "app/default/categories/fa-folder-default.png",
                                    "icon_class": "fa-solid fa-folder",
                                    "seo_title": "",
                                    "seo_description": "",
                                    "seo_keywords": "",
                                    "lft": 126,
                                    "rgt": 127,
                                    "depth": 1,
                                    "type": "classified",
                                    "is_for_permanent": 0,
                                    "active": 1,
                                    "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png",
                                    "parent": {
                                        "id": 97,
                                        "parent_id": null,
                                        "name": "Services",
                                        "slug": "services",
                                        "description": "",
                                        "hide_description": null,
                                        "image_path": "app/default/categories/fa-folder-default.png",
                                        "icon_class": "fa-solid fa-clipboard-list",
                                        "seo_title": "",
                                        "seo_description": "",
                                        "seo_keywords": "",
                                        "lft": 115,
                                        "rgt": 133,
                                        "depth": 0,
                                        "type": "classified",
                                        "is_for_permanent": 0,
                                        "active": 1,
                                        "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png",
                                        "parent": null
                                    }
                                },
                                "postType": {
                                    "id": 2,
                                    "name": "PROFESSIONAL",
                                    "label": "Professional"
                                },
                                "city": {
                                    "id": 50085,
                                    "country_code": "US",
                                    "name": "Missoula",
                                    "latitude": 46.87,
                                    "longitude": -113.99,
                                    "subadmin1_code": "US.MT",
                                    "subadmin2_code": "US.MT.063",
                                    "population": 71022,
                                    "time_zone": "America/Denver",
                                    "active": 1,
                                    "posts_count": 0
                                },
                                "payment": {
                                    "id": 529,
                                    "payable_id": 10030,
                                    "payable_type": "App\\Models\\Post",
                                    "package_id": 3,
                                    "payment_method_id": 1,
                                    "transaction_id": "78371234JE672430J",
                                    "amount": "9.00",
                                    "currency_code": "USD",
                                    "period_start": "2024-10-01T00:00:00.000000Z",
                                    "period_end": "2024-10-31T23:59:59.000000Z",
                                    "canceled_at": null,
                                    "refunded_at": null,
                                    "active": 1,
                                    "interval": 30.999988425925928,
                                    "started": 1,
                                    "expired": 0,
                                    "status": "valid",
                                    "period_start_formatted": "Sep 30th, 2024",
                                    "period_end_formatted": "Oct 31st, 2024",
                                    "created_at_formatted": "Oct 1st, 2024 at 14:38",
                                    "status_info": "Valid",
                                    "starting_info": "Started on Sep 30th, 2024",
                                    "expiry_info": "Will expire on Oct 31st, 2024",
                                    "css_class_variant": "success",
                                    "package": {
                                        "id": 3,
                                        "type": "promotion",
                                        "name": "Premium Listing (+)",
                                        "short_name": "Premium+",
                                        "ribbon": "green",
                                        "has_badge": 1,
                                        "price": "9.00",
                                        "currency_code": "USD",
                                        "promotion_time": 30,
                                        "interval": null,
                                        "listings_limit": null,
                                        "pictures_limit": 15,
                                        "expiration_time": 120,
                                        "description": "Featured on the homepage\nFeatured in the category",
                                        "facebook_ads_duration": 0,
                                        "google_ads_duration": 0,
                                        "twitter_ads_duration": 0,
                                        "linkedin_ads_duration": 0,
                                        "recommended": 0,
                                        "active": 1,
                                        "parent_id": null,
                                        "lft": 6,
                                        "rgt": 7,
                                        "depth": 0,
                                        "period_start": "2024-10-14T00:00:00.000000Z",
                                        "period_end": "2024-11-13T23:59:59.999999Z",
                                        "description_array": [
                                            "30 days of promotion",
                                            "Up to 15 images allowed",
                                            "Featured on the homepage",
                                            "Featured in the category",
                                            "Keep online for 120 days"
                                        ],
                                        "description_string": "30 days of promotion. \nUp to 15 images allowed. \nFeatured on the homepage. \nFeatured in the category. \nKeep online for 120 days",
                                        "price_formatted": "$9"
                                    }
                                },
                                "savedByLoggedUser": [],
                                "rating_cache": 0,
                                "rating_count": 0
                            },
                            {
                                "id": 48,
                                "country_code": "US",
                                "user_id": 2,
                                "payment_id": null,
                                "category_id": 83,
                                "post_type_id": 1,
                                "title": "Guidance Counselor 1 year of experience",
                                "excerpt": "Sapiente et quo non sequi. Id eum velit ut ad libero aut quia. Dicta ut voluptatem rerum modi dolore...",
                                "description": "Sapiente et quo non sequi. Id eum velit ut ad libero aut quia. Dicta ut voluptatem rerum modi dolore reprehenderit.",
                                "tags": [
                                    "perferendis",
                                    "provident",
                                    "impedit"
                                ],
                                "price": "48676.00",
                                "currency_code": null,
                                "negotiable": null,
                                "contact_name": "Admin Demo",
                                "auth_field": "email",
                                "email": "admin@domain.tld",
                                "phone": "+14659961785",
                                "phone_national": "(465) 996-1785",
                                "phone_country": "US",
                                "phone_hidden": null,
                                "address": null,
                                "city_id": 44459,
                                "lat": null,
                                "lon": null,
                                "create_from_ip": null,
                                "latest_update_ip": null,
                                "visits": null,
                                "tmp_token": null,
                                "email_token": null,
                                "phone_token": null,
                                "email_verified_at": "2024-09-28T16:45:16.000000Z",
                                "phone_verified_at": "2024-09-28T16:45:16.000000Z",
                                "accept_terms": null,
                                "accept_marketing_offers": null,
                                "is_permanent": null,
                                "reviewed_at": "2024-09-28T16:45:16.000000Z",
                                "featured": 0,
                                "archived_at": null,
                                "archived_manually_at": null,
                                "deletion_mail_sent_at": null,
                                "fb_profile": null,
                                "partner": null,
                                "created_at": "2024-09-28T15:56:11.000000Z",
                                "updated_at": "2024-10-14T07:55:07.335852Z",
                                "reference": "wMvbmZOdYAl",
                                "slug": "guidance-counselor-1-year-of-experience",
                                "url": "https://demo.laraclassifier.local/guidance-counselor-1-year-of-experience/wMvbmZOdYAl",
                                "phone_intl": "(465) 996-1785",
                                "created_at_formatted": "2 weeks ago",
                                "updated_at_formatted": "Oct 14th, 2024 at 03:55",
                                "archived_at_formatted": "",
                                "archived_manually_at_formatted": "",
                                "user_photo_url": "https://demo.laraclassifier.local/storage/avatars/us/2/thumbnails/800x800-71479bf0e68d8c4e7e452834c95a2961.jpg",
                                "country_flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/us.png",
                                "price_label": "Salary:",
                                "price_formatted": "$48,676",
                                "visits_formatted": "0 view",
                                "distance_info": null,
                                "count_pictures": 4,
                                "picture": {
                                    "id": 156,
                                    "post_id": 48,
                                    "file_path": "files/us/48/c1ff449468562dac64e8a13ff1887ed2.jpg",
                                    "mime_type": "image/jpeg",
                                    "position": 1,
                                    "active": 1,
                                    "url": {
                                        "full": "https://demo.laraclassifier.local/storage/files/us/48/thumbnails/816x460-c1ff449468562dac64e8a13ff1887ed2.jpg",
                                        "small": "https://demo.laraclassifier.local/storage/files/us/48/thumbnails/120x90-c1ff449468562dac64e8a13ff1887ed2.jpg",
                                        "medium": "https://demo.laraclassifier.local/storage/files/us/48/thumbnails/320x240-c1ff449468562dac64e8a13ff1887ed2.jpg",
                                        "large": "https://demo.laraclassifier.local/storage/files/us/48/thumbnails/816x460-c1ff449468562dac64e8a13ff1887ed2.jpg"
                                    }
                                },
                                "pictures": [
                                    {
                                        "id": 156,
                                        "post_id": 48,
                                        "file_path": "files/us/48/c1ff449468562dac64e8a13ff1887ed2.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 1,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/48/thumbnails/816x460-c1ff449468562dac64e8a13ff1887ed2.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/48/thumbnails/120x90-c1ff449468562dac64e8a13ff1887ed2.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/48/thumbnails/320x240-c1ff449468562dac64e8a13ff1887ed2.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/files/us/48/thumbnails/816x460-c1ff449468562dac64e8a13ff1887ed2.jpg"
                                        }
                                    },
                                    {
                                        "id": 159,
                                        "post_id": 48,
                                        "file_path": "files/us/48/8adf8960ab0d922fc72c00ce8468667e.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 2,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/48/thumbnails/816x460-8adf8960ab0d922fc72c00ce8468667e.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/48/thumbnails/120x90-8adf8960ab0d922fc72c00ce8468667e.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/48/thumbnails/320x240-8adf8960ab0d922fc72c00ce8468667e.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/files/us/48/thumbnails/816x460-8adf8960ab0d922fc72c00ce8468667e.jpg"
                                        }
                                    },
                                    {
                                        "id": 158,
                                        "post_id": 48,
                                        "file_path": "files/us/48/e6554ac8dbaa3d64c08e753dfa59c704.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 2,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/48/thumbnails/816x460-e6554ac8dbaa3d64c08e753dfa59c704.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/48/thumbnails/120x90-e6554ac8dbaa3d64c08e753dfa59c704.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/48/thumbnails/320x240-e6554ac8dbaa3d64c08e753dfa59c704.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/files/us/48/thumbnails/816x460-e6554ac8dbaa3d64c08e753dfa59c704.jpg"
                                        }
                                    },
                                    {
                                        "id": 157,
                                        "post_id": 48,
                                        "file_path": "files/us/48/77396e79fa113079b2916a26bd347da5.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 2,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/48/thumbnails/816x460-77396e79fa113079b2916a26bd347da5.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/48/thumbnails/120x90-77396e79fa113079b2916a26bd347da5.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/48/thumbnails/320x240-77396e79fa113079b2916a26bd347da5.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/files/us/48/thumbnails/816x460-77396e79fa113079b2916a26bd347da5.jpg"
                                        }
                                    }
                                ],
                                "user": {
                                    "id": 2,
                                    "name": "Admin Demo",
                                    "username": null,
                                    "updated_at": "2024-08-14T20:59:47.000000Z",
                                    "original_updated_at": "2024-08-14 20:59:47",
                                    "original_last_activity": null,
                                    "created_at_formatted": "5 months ago",
                                    "photo_url": "https://demo.laraclassifier.local/storage/avatars/us/2/thumbnails/800x800-71479bf0e68d8c4e7e452834c95a2961.jpg",
                                    "p_is_online": false,
                                    "country_flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/us.png"
                                },
                                "category": {
                                    "id": 83,
                                    "parent_id": 73,
                                    "name": "Public Service Jobs",
                                    "slug": "public-service-jobs",
                                    "description": "",
                                    "hide_description": null,
                                    "image_path": "app/default/categories/fa-folder-default.png",
                                    "icon_class": "fa-solid fa-folder",
                                    "seo_title": "",
                                    "seo_description": "",
                                    "seo_keywords": "",
                                    "lft": 99,
                                    "rgt": 100,
                                    "depth": 1,
                                    "type": "job-offer",
                                    "is_for_permanent": 0,
                                    "active": 1,
                                    "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png",
                                    "parent": {
                                        "id": 73,
                                        "parent_id": null,
                                        "name": "Jobs",
                                        "slug": "jobs",
                                        "description": "",
                                        "hide_description": null,
                                        "image_path": "app/default/categories/fa-folder-default.png",
                                        "icon_class": "fa-solid fa-briefcase",
                                        "seo_title": "",
                                        "seo_description": "",
                                        "seo_keywords": "",
                                        "lft": 89,
                                        "rgt": 114,
                                        "depth": 0,
                                        "type": "job-offer",
                                        "is_for_permanent": 0,
                                        "active": 1,
                                        "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png",
                                        "parent": null
                                    }
                                },
                                "postType": {
                                    "id": 1,
                                    "name": "INDIVIDUAL",
                                    "label": "Individual"
                                },
                                "city": {
                                    "id": 44459,
                                    "country_code": "US",
                                    "name": "Metropolis",
                                    "latitude": 37.15,
                                    "longitude": -88.73,
                                    "subadmin1_code": "US.IL",
                                    "subadmin2_code": "US.IL.127",
                                    "population": 6334,
                                    "time_zone": "America/Chicago",
                                    "active": 1,
                                    "posts_count": 0
                                },
                                "payment": null,
                                "savedByLoggedUser": [],
                                "rating_cache": 0,
                                "rating_count": 0
                            },
                            {
                                "id": 503,
                                "country_code": "US",
                                "user_id": 1307,
                                "payment_id": null,
                                "category_id": 72,
                                "post_type_id": 2,
                                "title": "Et voluptas eius sunt explicabo rerum aut vitae",
                                "excerpt": "Qui qui aperiam aut officiis deleniti libero qui. Sint earum temporibus voluptatem dolorem. Aut repu...",
                                "description": "Qui qui aperiam aut officiis deleniti libero qui. Sint earum temporibus voluptatem dolorem. Aut repudiandae nam nostrum. Enim aut est et.",
                                "tags": [
                                    "et",
                                    "libero",
                                    "facilis"
                                ],
                                "price": "19193.00",
                                "currency_code": null,
                                "negotiable": null,
                                "contact_name": "Edd Bartoletti",
                                "auth_field": "email",
                                "email": "mclaughlin.tierra@yahoo.com",
                                "phone": "+19580884045",
                                "phone_national": "(958) 088-4045",
                                "phone_country": "US",
                                "phone_hidden": null,
                                "address": null,
                                "city_id": 45521,
                                "lat": null,
                                "lon": null,
                                "create_from_ip": null,
                                "latest_update_ip": null,
                                "visits": null,
                                "tmp_token": null,
                                "email_token": null,
                                "phone_token": null,
                                "email_verified_at": "2024-09-28T14:49:39.000000Z",
                                "phone_verified_at": "2024-09-28T14:49:39.000000Z",
                                "accept_terms": null,
                                "accept_marketing_offers": null,
                                "is_permanent": null,
                                "reviewed_at": "2024-09-28T14:49:39.000000Z",
                                "featured": 0,
                                "archived_at": null,
                                "archived_manually_at": null,
                                "deletion_mail_sent_at": null,
                                "fb_profile": null,
                                "partner": null,
                                "created_at": "2024-09-28T14:16:00.000000Z",
                                "updated_at": "2024-10-14T07:55:07.486389Z",
                                "reference": "OpnelMVaKBz",
                                "slug": "et-voluptas-eius-sunt-explicabo-rerum-aut-vitae",
                                "url": "https://demo.laraclassifier.local/et-voluptas-eius-sunt-explicabo-rerum-aut-vitae/OpnelMVaKBz",
                                "phone_intl": "(958) 088-4045",
                                "created_at_formatted": "2 weeks ago",
                                "updated_at_formatted": "Oct 14th, 2024 at 03:55",
                                "archived_at_formatted": "",
                                "archived_manually_at_formatted": "",
                                "user_photo_url": "https://demo.laraclassifier.local/storage/app/default/user.png",
                                "country_flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/us.png",
                                "price_label": "Price:",
                                "price_formatted": "$19,193",
                                "visits_formatted": "0 view",
                                "distance_info": null,
                                "count_pictures": 3,
                                "picture": {
                                    "id": 960,
                                    "post_id": 503,
                                    "file_path": "files/us/503/71158e878d92b127a4a3fd6c14fc1294.jpg",
                                    "mime_type": "image/jpeg",
                                    "position": 1,
                                    "active": 1,
                                    "url": {
                                        "full": "https://demo.laraclassifier.local/storage/files/us/503/thumbnails/816x460-71158e878d92b127a4a3fd6c14fc1294.jpg",
                                        "small": "https://demo.laraclassifier.local/storage/files/us/503/thumbnails/120x90-71158e878d92b127a4a3fd6c14fc1294.jpg",
                                        "medium": "https://demo.laraclassifier.local/storage/files/us/503/thumbnails/320x240-71158e878d92b127a4a3fd6c14fc1294.jpg",
                                        "large": "https://demo.laraclassifier.local/storage/files/us/503/thumbnails/816x460-71158e878d92b127a4a3fd6c14fc1294.jpg"
                                    }
                                },
                                "pictures": [
                                    {
                                        "id": 960,
                                        "post_id": 503,
                                        "file_path": "files/us/503/71158e878d92b127a4a3fd6c14fc1294.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 1,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/503/thumbnails/816x460-71158e878d92b127a4a3fd6c14fc1294.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/503/thumbnails/120x90-71158e878d92b127a4a3fd6c14fc1294.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/503/thumbnails/320x240-71158e878d92b127a4a3fd6c14fc1294.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/files/us/503/thumbnails/816x460-71158e878d92b127a4a3fd6c14fc1294.jpg"
                                        }
                                    },
                                    {
                                        "id": 959,
                                        "post_id": 503,
                                        "file_path": "files/us/503/b7a1816d880595ec0175389e9b71f4e1.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 1,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/503/thumbnails/120x90-b7a1816d880595ec0175389e9b71f4e1.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/app/default/picture.jpg"
                                        }
                                    },
                                    {
                                        "id": 958,
                                        "post_id": 503,
                                        "file_path": "files/us/503/043818448b7aff05ad599868e2dee1cf.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 2,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/503/thumbnails/120x90-043818448b7aff05ad599868e2dee1cf.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/app/default/picture.jpg"
                                        }
                                    }
                                ],
                                "user": {
                                    "id": 1307,
                                    "name": "Edd Bartoletti",
                                    "username": "stokescolt",
                                    "updated_at": "2024-09-26T22:51:05.000000Z",
                                    "original_updated_at": "2024-09-26 22:51:05",
                                    "original_last_activity": null,
                                    "created_at_formatted": "6 months ago",
                                    "photo_url": "https://demo.laraclassifier.local/storage/app/default/user.png",
                                    "p_is_online": false,
                                    "country_flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/pt.png"
                                },
                                "category": {
                                    "id": 72,
                                    "parent_id": 62,
                                    "name": "Pro Massage",
                                    "slug": "pro-massage",
                                    "description": "",
                                    "hide_description": null,
                                    "image_path": "app/default/categories/fa-folder-default.png",
                                    "icon_class": "fa-solid fa-folder",
                                    "seo_title": "",
                                    "seo_description": "",
                                    "seo_keywords": "",
                                    "lft": 86,
                                    "rgt": 87,
                                    "depth": 1,
                                    "type": "classified",
                                    "is_for_permanent": 0,
                                    "active": 1,
                                    "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png",
                                    "parent": {
                                        "id": 62,
                                        "parent_id": null,
                                        "name": "Beauty & Well being",
                                        "slug": "beauty-well-being",
                                        "description": "",
                                        "hide_description": null,
                                        "image_path": "app/default/categories/fa-folder-default.png",
                                        "icon_class": "fa-solid fa-spa",
                                        "seo_title": "",
                                        "seo_description": "",
                                        "seo_keywords": "",
                                        "lft": 76,
                                        "rgt": 88,
                                        "depth": 0,
                                        "type": "classified",
                                        "is_for_permanent": 0,
                                        "active": 1,
                                        "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png",
                                        "parent": null
                                    }
                                },
                                "postType": {
                                    "id": 2,
                                    "name": "PROFESSIONAL",
                                    "label": "Professional"
                                },
                                "city": {
                                    "id": 45521,
                                    "country_code": "US",
                                    "name": "Vandalia",
                                    "latitude": 39.89,
                                    "longitude": -84.2,
                                    "subadmin1_code": "US.OH",
                                    "subadmin2_code": "US.OH.113",
                                    "population": 15106,
                                    "time_zone": "America/New_York",
                                    "active": 1,
                                    "posts_count": 0
                                },
                                "payment": null,
                                "savedByLoggedUser": [],
                                "rating_cache": 0,
                                "rating_count": 0
                            },
                            {
                                "id": 30,
                                "country_code": "US",
                                "user_id": 1,
                                "payment_id": null,
                                "category_id": 32,
                                "post_type_id": 1,
                                "title": "Used End table for Sale",
                                "excerpt": "Vel quisquam et et consectetur accusantium. Voluptatem illo omnis quidem non sit dolor. Et quo tenet...",
                                "description": "Vel quisquam et et consectetur accusantium. Voluptatem illo omnis quidem non sit dolor. Et quo tenetur quia vero. Aliquam sint consequatur commodi expedita recusandae ab non repellat. Quas eum odio eum ducimus amet ut. Blanditiis repellat dolores accusamus sint suscipit. Nesciunt modi quibusdam debitis. Mollitia veniam minima dignissimos itaque delectus sint voluptas.",
                                "tags": [
                                    "enim",
                                    "qui",
                                    "quasi"
                                ],
                                "price": "33738.00",
                                "currency_code": null,
                                "negotiable": null,
                                "contact_name": "Administrator",
                                "auth_field": "email",
                                "email": "mayeul@domain.tld",
                                "phone": "+16881606916",
                                "phone_national": "(688) 160-6916",
                                "phone_country": "US",
                                "phone_hidden": null,
                                "address": null,
                                "city_id": 43737,
                                "lat": null,
                                "lon": null,
                                "create_from_ip": null,
                                "latest_update_ip": null,
                                "visits": null,
                                "tmp_token": null,
                                "email_token": null,
                                "phone_token": null,
                                "email_verified_at": "2024-09-28T11:35:25.000000Z",
                                "phone_verified_at": "2024-09-28T11:35:25.000000Z",
                                "accept_terms": null,
                                "accept_marketing_offers": null,
                                "is_permanent": null,
                                "reviewed_at": "2024-09-28T11:35:25.000000Z",
                                "featured": 0,
                                "archived_at": null,
                                "archived_manually_at": null,
                                "deletion_mail_sent_at": null,
                                "fb_profile": null,
                                "partner": null,
                                "created_at": "2024-09-28T09:38:26.000000Z",
                                "updated_at": "2024-10-14T07:55:07.638460Z",
                                "reference": "MrlNbWJayg5",
                                "slug": "used-end-table-for-sale",
                                "url": "https://demo.laraclassifier.local/used-end-table-for-sale/MrlNbWJayg5",
                                "phone_intl": "(688) 160-6916",
                                "created_at_formatted": "2 weeks ago",
                                "updated_at_formatted": "Oct 14th, 2024 at 03:55",
                                "archived_at_formatted": "",
                                "archived_manually_at_formatted": "",
                                "user_photo_url": "https://demo.laraclassifier.local/storage/avatars/us/1/thumbnails/800x800-61005056409e48c3c7862f4d135304cc.jpg",
                                "country_flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/us.png",
                                "price_label": "Price:",
                                "price_formatted": "$33,738",
                                "visits_formatted": "0 view",
                                "distance_info": null,
                                "count_pictures": 4,
                                "picture": {
                                    "id": 94,
                                    "post_id": 30,
                                    "file_path": "files/us/30/54c3c23d6f522f83d0c90bbfb751ac17.jpg",
                                    "mime_type": "image/jpeg",
                                    "position": 2,
                                    "active": 1,
                                    "url": {
                                        "full": "https://demo.laraclassifier.local/storage/files/us/30/thumbnails/816x460-54c3c23d6f522f83d0c90bbfb751ac17.jpg",
                                        "small": "https://demo.laraclassifier.local/storage/files/us/30/thumbnails/120x90-54c3c23d6f522f83d0c90bbfb751ac17.jpg",
                                        "medium": "https://demo.laraclassifier.local/storage/files/us/30/thumbnails/320x240-54c3c23d6f522f83d0c90bbfb751ac17.jpg",
                                        "large": "https://demo.laraclassifier.local/storage/files/us/30/thumbnails/816x460-54c3c23d6f522f83d0c90bbfb751ac17.jpg"
                                    }
                                },
                                "pictures": [
                                    {
                                        "id": 94,
                                        "post_id": 30,
                                        "file_path": "files/us/30/54c3c23d6f522f83d0c90bbfb751ac17.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 2,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/30/thumbnails/816x460-54c3c23d6f522f83d0c90bbfb751ac17.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/30/thumbnails/120x90-54c3c23d6f522f83d0c90bbfb751ac17.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/30/thumbnails/320x240-54c3c23d6f522f83d0c90bbfb751ac17.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/files/us/30/thumbnails/816x460-54c3c23d6f522f83d0c90bbfb751ac17.jpg"
                                        }
                                    },
                                    {
                                        "id": 92,
                                        "post_id": 30,
                                        "file_path": "files/us/30/8f4272a1997f53f1704e0500e73798c2.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 2,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/app/default/picture.jpg"
                                        }
                                    },
                                    {
                                        "id": 95,
                                        "post_id": 30,
                                        "file_path": "files/us/30/2a065b1df0270ea7a4df3e268f3c82cf.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 3,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/app/default/picture.jpg"
                                        }
                                    },
                                    {
                                        "id": 93,
                                        "post_id": 30,
                                        "file_path": "files/us/30/991f34e72b3658cac74c3e22195f8fa4.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 3,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/app/default/picture.jpg"
                                        }
                                    }
                                ],
                                "user": {
                                    "id": 1,
                                    "name": "Administrator",
                                    "username": null,
                                    "updated_at": "2024-08-21T10:06:58.000000Z",
                                    "original_updated_at": "2024-08-21 10:06:58",
                                    "original_last_activity": null,
                                    "created_at_formatted": "6 months ago",
                                    "photo_url": "https://demo.laraclassifier.local/storage/avatars/us/1/thumbnails/800x800-61005056409e48c3c7862f4d135304cc.jpg",
                                    "p_is_online": false,
                                    "country_flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/us.png"
                                },
                                "category": {
                                    "id": 32,
                                    "parent_id": 30,
                                    "name": "Antiques - Art - Decoration",
                                    "slug": "antiques-art-decoration",
                                    "description": "",
                                    "hide_description": null,
                                    "image_path": "app/default/categories/fa-folder-default.png",
                                    "icon_class": "fa-solid fa-folder",
                                    "seo_title": "",
                                    "seo_description": "",
                                    "seo_keywords": "",
                                    "lft": 38,
                                    "rgt": 39,
                                    "depth": 1,
                                    "type": "classified",
                                    "is_for_permanent": 0,
                                    "active": 1,
                                    "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png",
                                    "parent": {
                                        "id": 30,
                                        "parent_id": null,
                                        "name": "Furniture & Appliances",
                                        "slug": "furniture-appliances",
                                        "description": "",
                                        "hide_description": null,
                                        "image_path": "app/default/categories/fa-folder-default.png",
                                        "icon_class": "fa-solid fa-couch",
                                        "seo_title": "",
                                        "seo_description": "",
                                        "seo_keywords": "",
                                        "lft": 36,
                                        "rgt": 44,
                                        "depth": 0,
                                        "type": "classified",
                                        "is_for_permanent": 0,
                                        "active": 1,
                                        "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png",
                                        "parent": null
                                    }
                                },
                                "postType": {
                                    "id": 1,
                                    "name": "INDIVIDUAL",
                                    "label": "Individual"
                                },
                                "city": {
                                    "id": 43737,
                                    "country_code": "US",
                                    "name": "Farmington",
                                    "latitude": 36.04,
                                    "longitude": -94.25,
                                    "subadmin1_code": "US.AR",
                                    "subadmin2_code": "US.AR.143",
                                    "population": 6701,
                                    "time_zone": "America/Chicago",
                                    "active": 1,
                                    "posts_count": 0
                                },
                                "payment": null,
                                "savedByLoggedUser": [],
                                "rating_cache": 0,
                                "rating_count": 0
                            },
                            {
                                "id": 10,
                                "country_code": "US",
                                "user_id": 1,
                                "payment_id": null,
                                "category_id": 35,
                                "post_type_id": 2,
                                "title": "Record player",
                                "excerpt": "Vitae omnis veniam exercitationem optio quaerat laudantium enim. Veritatis qui dolorum voluptas erro...",
                                "description": "Vitae omnis veniam exercitationem optio quaerat laudantium enim. Veritatis qui dolorum voluptas error saepe similique quasi sed. Ipsam magni tempore rerum. Rerum doloremque fugiat molestias est commodi impedit molestias repellendus. Impedit quidem aut odio nemo et qui. Maxime et illo aliquam ut. Quaerat quos et possimus provident. Ducimus magni eaque velit sapiente occaecati quasi eos. Rerum non ex eos rem labore explicabo quo.",
                                "tags": [
                                    "deleniti",
                                    "impedit",
                                    "consequatur"
                                ],
                                "price": "973.00",
                                "currency_code": null,
                                "negotiable": null,
                                "contact_name": "Administrator",
                                "auth_field": "email",
                                "email": "mayeul@domain.tld",
                                "phone": "+13453671631",
                                "phone_national": "(345) 367-1631",
                                "phone_country": "US",
                                "phone_hidden": null,
                                "address": null,
                                "city_id": 50196,
                                "lat": null,
                                "lon": null,
                                "create_from_ip": null,
                                "latest_update_ip": null,
                                "visits": null,
                                "tmp_token": null,
                                "email_token": null,
                                "phone_token": null,
                                "email_verified_at": "2024-09-28T10:24:58.000000Z",
                                "phone_verified_at": "2024-09-28T10:24:58.000000Z",
                                "accept_terms": null,
                                "accept_marketing_offers": null,
                                "is_permanent": null,
                                "reviewed_at": "2024-09-28T10:24:58.000000Z",
                                "featured": 0,
                                "archived_at": null,
                                "archived_manually_at": null,
                                "deletion_mail_sent_at": null,
                                "fb_profile": null,
                                "partner": null,
                                "created_at": "2024-09-28T07:45:26.000000Z",
                                "updated_at": "2024-10-14T07:55:07.793821Z",
                                "reference": "Kgl9avmeG1v",
                                "slug": "record-player",
                                "url": "https://demo.laraclassifier.local/record-player/Kgl9avmeG1v",
                                "phone_intl": "(345) 367-1631",
                                "created_at_formatted": "2 weeks ago",
                                "updated_at_formatted": "Oct 14th, 2024 at 03:55",
                                "archived_at_formatted": "",
                                "archived_manually_at_formatted": "",
                                "user_photo_url": "https://demo.laraclassifier.local/storage/avatars/us/1/thumbnails/800x800-61005056409e48c3c7862f4d135304cc.jpg",
                                "country_flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/us.png",
                                "price_label": "Price:",
                                "price_formatted": "$973",
                                "visits_formatted": "0 view",
                                "distance_info": null,
                                "count_pictures": 2,
                                "picture": {
                                    "id": 25,
                                    "post_id": 10,
                                    "file_path": "files/us/10/d98b6d864b36d0e936e6358c8b0f5553.jpg",
                                    "mime_type": "image/jpeg",
                                    "position": 1,
                                    "active": 1,
                                    "url": {
                                        "full": "https://demo.laraclassifier.local/storage/files/us/10/thumbnails/816x460-d98b6d864b36d0e936e6358c8b0f5553.jpg",
                                        "small": "https://demo.laraclassifier.local/storage/files/us/10/thumbnails/120x90-d98b6d864b36d0e936e6358c8b0f5553.jpg",
                                        "medium": "https://demo.laraclassifier.local/storage/files/us/10/thumbnails/320x240-d98b6d864b36d0e936e6358c8b0f5553.jpg",
                                        "large": "https://demo.laraclassifier.local/storage/files/us/10/thumbnails/816x460-d98b6d864b36d0e936e6358c8b0f5553.jpg"
                                    }
                                },
                                "pictures": [
                                    {
                                        "id": 25,
                                        "post_id": 10,
                                        "file_path": "files/us/10/d98b6d864b36d0e936e6358c8b0f5553.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 1,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/10/thumbnails/816x460-d98b6d864b36d0e936e6358c8b0f5553.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/10/thumbnails/120x90-d98b6d864b36d0e936e6358c8b0f5553.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/10/thumbnails/320x240-d98b6d864b36d0e936e6358c8b0f5553.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/files/us/10/thumbnails/816x460-d98b6d864b36d0e936e6358c8b0f5553.jpg"
                                        }
                                    },
                                    {
                                        "id": 26,
                                        "post_id": 10,
                                        "file_path": "files/us/10/26b83994d1aeff4055eaf2f6389f8fe8.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 2,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/app/default/picture.jpg"
                                        }
                                    }
                                ],
                                "user": {
                                    "id": 1,
                                    "name": "Administrator",
                                    "username": null,
                                    "updated_at": "2024-08-21T10:06:58.000000Z",
                                    "original_updated_at": "2024-08-21 10:06:58",
                                    "original_last_activity": null,
                                    "created_at_formatted": "6 months ago",
                                    "photo_url": "https://demo.laraclassifier.local/storage/avatars/us/1/thumbnails/800x800-61005056409e48c3c7862f4d135304cc.jpg",
                                    "p_is_online": false,
                                    "country_flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/us.png"
                                },
                                "category": {
                                    "id": 35,
                                    "parent_id": 30,
                                    "name": "Toys - Games - Figurines",
                                    "slug": "toys-games-figurines",
                                    "description": "",
                                    "hide_description": null,
                                    "image_path": "app/default/categories/fa-folder-default.png",
                                    "icon_class": "fa-solid fa-folder",
                                    "seo_title": "",
                                    "seo_description": "",
                                    "seo_keywords": "",
                                    "lft": 41,
                                    "rgt": 42,
                                    "depth": 1,
                                    "type": "classified",
                                    "is_for_permanent": 0,
                                    "active": 1,
                                    "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png",
                                    "parent": {
                                        "id": 30,
                                        "parent_id": null,
                                        "name": "Furniture & Appliances",
                                        "slug": "furniture-appliances",
                                        "description": "",
                                        "hide_description": null,
                                        "image_path": "app/default/categories/fa-folder-default.png",
                                        "icon_class": "fa-solid fa-couch",
                                        "seo_title": "",
                                        "seo_description": "",
                                        "seo_keywords": "",
                                        "lft": 36,
                                        "rgt": 44,
                                        "depth": 0,
                                        "type": "classified",
                                        "is_for_permanent": 0,
                                        "active": 1,
                                        "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png",
                                        "parent": null
                                    }
                                },
                                "postType": {
                                    "id": 2,
                                    "name": "PROFESSIONAL",
                                    "label": "Professional"
                                },
                                "city": {
                                    "id": 50196,
                                    "country_code": "US",
                                    "name": "West Linn",
                                    "latitude": 45.37,
                                    "longitude": -122.61,
                                    "subadmin1_code": "US.OR",
                                    "subadmin2_code": "US.OR.005",
                                    "population": 26593,
                                    "time_zone": "America/Los_Angeles",
                                    "active": 1,
                                    "posts_count": 0
                                },
                                "payment": null,
                                "savedByLoggedUser": [],
                                "rating_cache": 0,
                                "rating_count": 0
                            },
                            {
                                "id": 3004,
                                "country_code": "US",
                                "user_id": 994,
                                "payment_id": null,
                                "category_id": 51,
                                "post_type_id": 1,
                                "title": "Male and Female Siberian husky Puppies",
                                "excerpt": "Et veniam tenetur quas reprehenderit maiores. Quis ut at expedita esse ab et voluptatem velit. Non a...",
                                "description": "Et veniam tenetur quas reprehenderit maiores. Quis ut at expedita esse ab et voluptatem velit. Non accusamus cum ea ipsam. Quis amet quisquam non accusamus hic fugiat. Explicabo recusandae libero dolor veritatis cupiditate. Voluptatum porro ea repellat dignissimos omnis voluptas. Alias molestias quia et dicta. Blanditiis reiciendis ut et harum. Consequuntur iste explicabo inventore impedit eaque perferendis.",
                                "tags": [
                                    "id",
                                    "nam",
                                    "animi"
                                ],
                                "price": "57088.00",
                                "currency_code": null,
                                "negotiable": null,
                                "contact_name": "Nathaniel Welch",
                                "auth_field": "email",
                                "email": "conn.donna@gmail.com",
                                "phone": "+12607481684",
                                "phone_national": "(260) 748-1684",
                                "phone_country": "US",
                                "phone_hidden": null,
                                "address": null,
                                "city_id": 50066,
                                "lat": null,
                                "lon": null,
                                "create_from_ip": null,
                                "latest_update_ip": null,
                                "visits": null,
                                "tmp_token": null,
                                "email_token": null,
                                "phone_token": null,
                                "email_verified_at": "2024-09-28T11:53:55.000000Z",
                                "phone_verified_at": "2024-09-28T11:53:55.000000Z",
                                "accept_terms": null,
                                "accept_marketing_offers": null,
                                "is_permanent": null,
                                "reviewed_at": "2024-09-28T11:53:55.000000Z",
                                "featured": 0,
                                "archived_at": null,
                                "archived_manually_at": null,
                                "deletion_mail_sent_at": null,
                                "fb_profile": null,
                                "partner": null,
                                "created_at": "2024-09-28T06:17:34.000000Z",
                                "updated_at": "2024-10-14T07:55:07.950147Z",
                                "reference": "wMvbmZ9GdYA",
                                "slug": "male-and-female-siberian-husky-puppies",
                                "url": "https://demo.laraclassifier.local/male-and-female-siberian-husky-puppies/wMvbmZ9GdYA",
                                "phone_intl": "(260) 748-1684",
                                "created_at_formatted": "2 weeks ago",
                                "updated_at_formatted": "Oct 14th, 2024 at 03:55",
                                "archived_at_formatted": "",
                                "archived_manually_at_formatted": "",
                                "user_photo_url": "https://demo.laraclassifier.local/storage/app/default/user.png",
                                "country_flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/us.png",
                                "price_label": "Price:",
                                "price_formatted": "$57,088",
                                "visits_formatted": "0 view",
                                "distance_info": null,
                                "count_pictures": 4,
                                "picture": {
                                    "id": 4795,
                                    "post_id": 3004,
                                    "file_path": "files/us/3004/c4d459b1fc357e727fcc3235797edba7.jpg",
                                    "mime_type": "image/jpeg",
                                    "position": 1,
                                    "active": 1,
                                    "url": {
                                        "full": "https://demo.laraclassifier.local/storage/files/us/3004/thumbnails/816x460-c4d459b1fc357e727fcc3235797edba7.jpg",
                                        "small": "https://demo.laraclassifier.local/storage/files/us/3004/thumbnails/120x90-c4d459b1fc357e727fcc3235797edba7.jpg",
                                        "medium": "https://demo.laraclassifier.local/storage/files/us/3004/thumbnails/320x240-c4d459b1fc357e727fcc3235797edba7.jpg",
                                        "large": "https://demo.laraclassifier.local/storage/files/us/3004/thumbnails/816x460-c4d459b1fc357e727fcc3235797edba7.jpg"
                                    }
                                },
                                "pictures": [
                                    {
                                        "id": 4795,
                                        "post_id": 3004,
                                        "file_path": "files/us/3004/c4d459b1fc357e727fcc3235797edba7.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 1,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/3004/thumbnails/816x460-c4d459b1fc357e727fcc3235797edba7.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/3004/thumbnails/120x90-c4d459b1fc357e727fcc3235797edba7.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/3004/thumbnails/320x240-c4d459b1fc357e727fcc3235797edba7.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/files/us/3004/thumbnails/816x460-c4d459b1fc357e727fcc3235797edba7.jpg"
                                        }
                                    },
                                    {
                                        "id": 4796,
                                        "post_id": 3004,
                                        "file_path": "files/us/3004/be1428190445cd1f39f55d78cceaf0e6.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 3,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/app/default/picture.jpg"
                                        }
                                    },
                                    {
                                        "id": 4794,
                                        "post_id": 3004,
                                        "file_path": "files/us/3004/6858da9318428cc2bf9cb9d4f527f517.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 3,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/app/default/picture.jpg"
                                        }
                                    },
                                    {
                                        "id": 4793,
                                        "post_id": 3004,
                                        "file_path": "files/us/3004/bcb04ef14c8d6d64375137c5b2954e16.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 4,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/app/default/picture.jpg"
                                        }
                                    }
                                ],
                                "user": {
                                    "id": 994,
                                    "name": "Nathaniel Welch",
                                    "username": "hailee03",
                                    "updated_at": "2024-10-14T07:55:09.036414Z",
                                    "original_updated_at": null,
                                    "original_last_activity": null,
                                    "created_at_formatted": "5 months ago",
                                    "photo_url": "https://demo.laraclassifier.local/storage/app/default/user.png",
                                    "p_is_online": false,
                                    "country_flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/ar.png"
                                },
                                "category": {
                                    "id": 51,
                                    "parent_id": 46,
                                    "name": "Pet's Accessories",
                                    "slug": "pets-accessories",
                                    "description": "",
                                    "hide_description": null,
                                    "image_path": "app/default/categories/fa-folder-default.png",
                                    "icon_class": "fa-solid fa-folder",
                                    "seo_title": "",
                                    "seo_description": "",
                                    "seo_keywords": "",
                                    "lft": 61,
                                    "rgt": 62,
                                    "depth": 1,
                                    "type": "classified",
                                    "is_for_permanent": 0,
                                    "active": 1,
                                    "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png",
                                    "parent": {
                                        "id": 46,
                                        "parent_id": null,
                                        "name": "Animals & Pets",
                                        "slug": "animals-and-pets",
                                        "description": "",
                                        "hide_description": null,
                                        "image_path": "app/default/categories/fa-folder-default.png",
                                        "icon_class": "fa-solid fa-paw",
                                        "seo_title": "",
                                        "seo_description": "",
                                        "seo_keywords": "",
                                        "lft": 56,
                                        "rgt": 65,
                                        "depth": 0,
                                        "type": "classified",
                                        "is_for_permanent": 0,
                                        "active": 1,
                                        "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png",
                                        "parent": null
                                    }
                                },
                                "postType": {
                                    "id": 1,
                                    "name": "INDIVIDUAL",
                                    "label": "Individual"
                                },
                                "city": {
                                    "id": 50066,
                                    "country_code": "US",
                                    "name": "Twin Falls",
                                    "latitude": 42.56,
                                    "longitude": -114.46,
                                    "subadmin1_code": "US.ID",
                                    "subadmin2_code": "US.ID.083",
                                    "population": 47468,
                                    "time_zone": "America/Boise",
                                    "active": 1,
                                    "posts_count": 0
                                },
                                "payment": null,
                                "savedByLoggedUser": [],
                                "rating_cache": 0,
                                "rating_count": 0
                            },
                            {
                                "id": 1683,
                                "country_code": "US",
                                "user_id": 2109,
                                "payment_id": null,
                                "category_id": 56,
                                "post_type_id": 2,
                                "title": "Used Diabetic shoe for Sale",
                                "excerpt": "Totam possimus unde facilis inventore rem ut et. Facere architecto veniam earum explicabo minima. Si...",
                                "description": "Totam possimus unde facilis inventore rem ut et. Facere architecto veniam earum explicabo minima. Sit et quia molestias voluptatibus distinctio optio omnis. Excepturi quia qui delectus asperiores. Quae incidunt consequatur et. Unde ducimus corrupti non fugiat quia repellendus. Dolor distinctio excepturi qui eum. Officia dolorem aperiam autem dolor qui facilis. Debitis in at est maxime voluptas vel. Perspiciatis distinctio qui veritatis velit illum. Sed quis molestiae perferendis et voluptatum veniam.",
                                "tags": [
                                    "sit",
                                    "blanditiis",
                                    "ut"
                                ],
                                "price": "853.00",
                                "currency_code": null,
                                "negotiable": null,
                                "contact_name": "Clement Jacobson",
                                "auth_field": "email",
                                "email": "salvador38@hotmail.com",
                                "phone": "+13440047231",
                                "phone_national": "(344) 004-7231",
                                "phone_country": "US",
                                "phone_hidden": null,
                                "address": null,
                                "city_id": 47648,
                                "lat": null,
                                "lon": null,
                                "create_from_ip": null,
                                "latest_update_ip": null,
                                "visits": null,
                                "tmp_token": null,
                                "email_token": null,
                                "phone_token": null,
                                "email_verified_at": "2024-09-28T15:43:51.000000Z",
                                "phone_verified_at": "2024-09-28T15:43:51.000000Z",
                                "accept_terms": null,
                                "accept_marketing_offers": null,
                                "is_permanent": null,
                                "reviewed_at": "2024-09-28T15:43:51.000000Z",
                                "featured": 0,
                                "archived_at": null,
                                "archived_manually_at": null,
                                "deletion_mail_sent_at": null,
                                "fb_profile": null,
                                "partner": null,
                                "created_at": "2024-09-28T01:01:39.000000Z",
                                "updated_at": "2024-10-14T07:55:08.104973Z",
                                "reference": "QK9b6DzeEvY",
                                "slug": "used-diabetic-shoe-for-sale",
                                "url": "https://demo.laraclassifier.local/used-diabetic-shoe-for-sale/QK9b6DzeEvY",
                                "phone_intl": "(344) 004-7231",
                                "created_at_formatted": "2 weeks ago",
                                "updated_at_formatted": "Oct 14th, 2024 at 03:55",
                                "archived_at_formatted": "",
                                "archived_manually_at_formatted": "",
                                "user_photo_url": "https://demo.laraclassifier.local/storage/app/default/user.png",
                                "country_flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/us.png",
                                "price_label": "Price:",
                                "price_formatted": "$853",
                                "visits_formatted": "0 view",
                                "distance_info": null,
                                "count_pictures": 1,
                                "picture": {
                                    "id": 2759,
                                    "post_id": 1683,
                                    "file_path": "files/us/1683/2880cc3c631504eb875021784731b3d7.jpg",
                                    "mime_type": "image/jpeg",
                                    "position": 1,
                                    "active": 1,
                                    "url": {
                                        "full": "https://demo.laraclassifier.local/storage/files/us/1683/thumbnails/816x460-2880cc3c631504eb875021784731b3d7.jpg",
                                        "small": "https://demo.laraclassifier.local/storage/files/us/1683/thumbnails/120x90-2880cc3c631504eb875021784731b3d7.jpg",
                                        "medium": "https://demo.laraclassifier.local/storage/files/us/1683/thumbnails/320x240-2880cc3c631504eb875021784731b3d7.jpg",
                                        "large": "https://demo.laraclassifier.local/storage/files/us/1683/thumbnails/816x460-2880cc3c631504eb875021784731b3d7.jpg"
                                    }
                                },
                                "pictures": [
                                    {
                                        "id": 2759,
                                        "post_id": 1683,
                                        "file_path": "files/us/1683/2880cc3c631504eb875021784731b3d7.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 1,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/1683/thumbnails/816x460-2880cc3c631504eb875021784731b3d7.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/1683/thumbnails/120x90-2880cc3c631504eb875021784731b3d7.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/1683/thumbnails/320x240-2880cc3c631504eb875021784731b3d7.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/files/us/1683/thumbnails/816x460-2880cc3c631504eb875021784731b3d7.jpg"
                                        }
                                    }
                                ],
                                "user": {
                                    "id": 2109,
                                    "name": "Clement Jacobson",
                                    "username": "bdurgan",
                                    "updated_at": "2024-08-17T17:01:54.000000Z",
                                    "original_updated_at": "2024-08-17 17:01:54",
                                    "original_last_activity": null,
                                    "created_at_formatted": "3 months ago",
                                    "photo_url": "https://demo.laraclassifier.local/storage/app/default/user.png",
                                    "p_is_online": false,
                                    "country_flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/eg.png"
                                },
                                "category": {
                                    "id": 56,
                                    "parent_id": 54,
                                    "name": "Clothing",
                                    "slug": "clothing",
                                    "description": "",
                                    "hide_description": null,
                                    "image_path": "app/default/categories/fa-folder-default.png",
                                    "icon_class": "fa-solid fa-folder",
                                    "seo_title": "",
                                    "seo_description": "",
                                    "seo_keywords": "",
                                    "lft": 68,
                                    "rgt": 69,
                                    "depth": 1,
                                    "type": "classified",
                                    "is_for_permanent": 0,
                                    "active": 1,
                                    "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png",
                                    "parent": {
                                        "id": 54,
                                        "parent_id": null,
                                        "name": "Fashion",
                                        "slug": "fashion",
                                        "description": "",
                                        "hide_description": null,
                                        "image_path": "app/default/categories/fa-folder-default.png",
                                        "icon_class": "fa-solid fa-shirt",
                                        "seo_title": "",
                                        "seo_description": "",
                                        "seo_keywords": "",
                                        "lft": 66,
                                        "rgt": 75,
                                        "depth": 0,
                                        "type": "classified",
                                        "is_for_permanent": 0,
                                        "active": 1,
                                        "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png",
                                        "parent": null
                                    }
                                },
                                "postType": {
                                    "id": 2,
                                    "name": "PROFESSIONAL",
                                    "label": "Professional"
                                },
                                "city": {
                                    "id": 47648,
                                    "country_code": "US",
                                    "name": "Lebanon",
                                    "latitude": 43.64,
                                    "longitude": -72.25,
                                    "subadmin1_code": "US.NH",
                                    "subadmin2_code": "US.NH.009",
                                    "population": 13579,
                                    "time_zone": "America/New_York",
                                    "active": 1,
                                    "posts_count": 0
                                },
                                "payment": null,
                                "savedByLoggedUser": [],
                                "rating_cache": 0,
                                "rating_count": 0
                            },
                            {
                                "id": 7368,
                                "country_code": "US",
                                "user_id": 2520,
                                "payment_id": null,
                                "category_id": 42,
                                "post_type_id": 2,
                                "title": "For sale: Carriage house",
                                "excerpt": "Magni maiores quibusdam est est quis facilis aperiam. Et perferendis ipsa vitae quia accusamus. Et e...",
                                "description": "Magni maiores quibusdam est est quis facilis aperiam. Et perferendis ipsa vitae quia accusamus. Et est fugiat odit eum ex incidunt vel. Consequatur sunt eum et. Eum neque velit placeat odio voluptas. Illum non libero hic perspiciatis id itaque. Dolorem et hic in eveniet unde rem. Dolore sequi fuga quae commodi tempore consectetur et. Eius qui non eum pariatur dolorem quia qui quo. Quis non asperiores enim molestiae quod vero natus. Dolores iure itaque inventore consequatur est voluptatibus.",
                                "tags": [
                                    "id",
                                    "exercitationem",
                                    "itaque"
                                ],
                                "price": "268.00",
                                "currency_code": null,
                                "negotiable": null,
                                "contact_name": "Joe Padberg",
                                "auth_field": "email",
                                "email": "adolphus11@yahoo.com",
                                "phone": "+17541689794",
                                "phone_national": "(754) 168-9794",
                                "phone_country": "US",
                                "phone_hidden": null,
                                "address": null,
                                "city_id": 46783,
                                "lat": null,
                                "lon": null,
                                "create_from_ip": null,
                                "latest_update_ip": null,
                                "visits": null,
                                "tmp_token": null,
                                "email_token": null,
                                "phone_token": null,
                                "email_verified_at": "2024-09-27T12:17:34.000000Z",
                                "phone_verified_at": "2024-09-27T12:17:34.000000Z",
                                "accept_terms": null,
                                "accept_marketing_offers": null,
                                "is_permanent": null,
                                "reviewed_at": "2024-09-27T12:17:34.000000Z",
                                "featured": 1,
                                "archived_at": null,
                                "archived_manually_at": null,
                                "deletion_mail_sent_at": null,
                                "fb_profile": null,
                                "partner": null,
                                "created_at": "2024-09-27T10:08:10.000000Z",
                                "updated_at": "2024-10-14T07:55:08.258215Z",
                                "reference": "QJ0dN932bLO",
                                "slug": "for-sale-carriage-house",
                                "url": "https://demo.laraclassifier.local/for-sale-carriage-house/QJ0dN932bLO",
                                "phone_intl": "(754) 168-9794",
                                "created_at_formatted": "2 weeks ago",
                                "updated_at_formatted": "Oct 14th, 2024 at 03:55",
                                "archived_at_formatted": "",
                                "archived_manually_at_formatted": "",
                                "user_photo_url": "https://demo.laraclassifier.local/storage/app/default/user.png",
                                "country_flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/us.png",
                                "price_label": "Price:",
                                "price_formatted": "$268",
                                "visits_formatted": "0 view",
                                "distance_info": null,
                                "count_pictures": 4,
                                "picture": {
                                    "id": 11478,
                                    "post_id": 7368,
                                    "file_path": "files/us/7368/ee40196ccbc8407a3b0bcfafca66761e.jpg",
                                    "mime_type": "image/jpeg",
                                    "position": 1,
                                    "active": 1,
                                    "url": {
                                        "full": "https://demo.laraclassifier.local/storage/files/us/7368/thumbnails/816x460-ee40196ccbc8407a3b0bcfafca66761e.jpg",
                                        "small": "https://demo.laraclassifier.local/storage/files/us/7368/thumbnails/120x90-ee40196ccbc8407a3b0bcfafca66761e.jpg",
                                        "medium": "https://demo.laraclassifier.local/storage/files/us/7368/thumbnails/320x240-ee40196ccbc8407a3b0bcfafca66761e.jpg",
                                        "large": "https://demo.laraclassifier.local/storage/files/us/7368/thumbnails/816x460-ee40196ccbc8407a3b0bcfafca66761e.jpg"
                                    }
                                },
                                "pictures": [
                                    {
                                        "id": 11478,
                                        "post_id": 7368,
                                        "file_path": "files/us/7368/ee40196ccbc8407a3b0bcfafca66761e.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 1,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/7368/thumbnails/816x460-ee40196ccbc8407a3b0bcfafca66761e.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/7368/thumbnails/120x90-ee40196ccbc8407a3b0bcfafca66761e.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/7368/thumbnails/320x240-ee40196ccbc8407a3b0bcfafca66761e.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/files/us/7368/thumbnails/816x460-ee40196ccbc8407a3b0bcfafca66761e.jpg"
                                        }
                                    },
                                    {
                                        "id": 11477,
                                        "post_id": 7368,
                                        "file_path": "files/us/7368/c6a61fb4c7ade1615c4a3ec7575066f5.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 1,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/app/default/picture.jpg"
                                        }
                                    },
                                    {
                                        "id": 11475,
                                        "post_id": 7368,
                                        "file_path": "files/us/7368/ee40196ccbc8407a3b0bcfafca66761e.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 2,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/files/us/7368/thumbnails/816x460-ee40196ccbc8407a3b0bcfafca66761e.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/files/us/7368/thumbnails/120x90-ee40196ccbc8407a3b0bcfafca66761e.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/files/us/7368/thumbnails/320x240-ee40196ccbc8407a3b0bcfafca66761e.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/files/us/7368/thumbnails/816x460-ee40196ccbc8407a3b0bcfafca66761e.jpg"
                                        }
                                    },
                                    {
                                        "id": 11476,
                                        "post_id": 7368,
                                        "file_path": "files/us/7368/b76565708834913dd2b0e4271e314919.jpg",
                                        "mime_type": "image/jpeg",
                                        "position": 3,
                                        "active": 1,
                                        "url": {
                                            "full": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "small": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "medium": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                                            "large": "https://demo.laraclassifier.local/storage/app/default/picture.jpg"
                                        }
                                    }
                                ],
                                "user": {
                                    "id": 2520,
                                    "name": "Joe Padberg",
                                    "username": "vwilkinson",
                                    "updated_at": "2024-10-14T07:55:09.268308Z",
                                    "original_updated_at": null,
                                    "original_last_activity": null,
                                    "created_at_formatted": "4 months ago",
                                    "photo_url": "https://demo.laraclassifier.local/storage/app/default/user.png",
                                    "p_is_online": false,
                                    "country_flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/dz.png"
                                },
                                "category": {
                                    "id": 42,
                                    "parent_id": 37,
                                    "name": "Commercial Property For Rent",
                                    "slug": "commercial-property-for-rent",
                                    "description": "",
                                    "hide_description": null,
                                    "image_path": "app/default/categories/fa-folder-default.png",
                                    "icon_class": "fa-solid fa-folder",
                                    "seo_title": "",
                                    "seo_description": "",
                                    "seo_keywords": "",
                                    "lft": 50,
                                    "rgt": 51,
                                    "depth": 1,
                                    "type": "classified",
                                    "is_for_permanent": 0,
                                    "active": 1,
                                    "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png",
                                    "parent": {
                                        "id": 37,
                                        "parent_id": null,
                                        "name": "Real estate",
                                        "slug": "real-estate",
                                        "description": "",
                                        "hide_description": null,
                                        "image_path": "app/default/categories/fa-folder-default.png",
                                        "icon_class": "fa-solid fa-house",
                                        "seo_title": "",
                                        "seo_description": "",
                                        "seo_keywords": "",
                                        "lft": 45,
                                        "rgt": 55,
                                        "depth": 0,
                                        "type": "classified",
                                        "is_for_permanent": 0,
                                        "active": 1,
                                        "image_url": "https://demo.laraclassifier.local/storage/app/default/categories/thumbnails/70x70-fa-folder-default.png",
                                        "parent": null
                                    }
                                },
                                "postType": {
                                    "id": 2,
                                    "name": "PROFESSIONAL",
                                    "label": "Professional"
                                },
                                "city": {
                                    "id": 46783,
                                    "country_code": "US",
                                    "name": "McKinley Park",
                                    "latitude": 41.83,
                                    "longitude": -87.67,
                                    "subadmin1_code": "US.IL",
                                    "subadmin2_code": "US.IL.031",
                                    "population": 15612,
                                    "time_zone": "America/Chicago",
                                    "active": 1,
                                    "posts_count": 0
                                },
                                "payment": {
                                    "id": 43,
                                    "payable_id": 7368,
                                    "payable_type": "App\\Models\\Post",
                                    "package_id": 3,
                                    "payment_method_id": 9,
                                    "transaction_id": null,
                                    "amount": "9.00",
                                    "currency_code": null,
                                    "period_start": "2024-09-28T00:00:00.000000Z",
                                    "period_end": "2024-10-28T23:59:59.000000Z",
                                    "canceled_at": null,
                                    "refunded_at": null,
                                    "active": 1,
                                    "interval": 30.999988425925928,
                                    "started": 1,
                                    "expired": 0,
                                    "status": "valid",
                                    "period_start_formatted": "Sep 27th, 2024",
                                    "period_end_formatted": "Oct 28th, 2024",
                                    "created_at_formatted": "Sep 28th, 2024 at 04:38",
                                    "status_info": "Valid",
                                    "starting_info": "Started on Sep 27th, 2024",
                                    "expiry_info": "Will expire on Oct 28th, 2024",
                                    "css_class_variant": "success",
                                    "package": {
                                        "id": 3,
                                        "type": "promotion",
                                        "name": "Premium Listing (+)",
                                        "short_name": "Premium+",
                                        "ribbon": "green",
                                        "has_badge": 1,
                                        "price": "9.00",
                                        "currency_code": "USD",
                                        "promotion_time": 30,
                                        "interval": null,
                                        "listings_limit": null,
                                        "pictures_limit": 15,
                                        "expiration_time": 120,
                                        "description": "Featured on the homepage\nFeatured in the category",
                                        "facebook_ads_duration": 0,
                                        "google_ads_duration": 0,
                                        "twitter_ads_duration": 0,
                                        "linkedin_ads_duration": 0,
                                        "recommended": 0,
                                        "active": 1,
                                        "parent_id": null,
                                        "lft": 6,
                                        "rgt": 7,
                                        "depth": 0,
                                        "period_start": "2024-10-14T00:00:00.000000Z",
                                        "period_end": "2024-11-13T23:59:59.999999Z",
                                        "description_array": [
                                            "30 days of promotion",
                                            "Up to 15 images allowed",
                                            "Featured on the homepage",
                                            "Featured in the category",
                                            "Keep online for 120 days"
                                        ],
                                        "description_string": "30 days of promotion. \nUp to 15 images allowed. \nFeatured on the homepage. \nFeatured in the category. \nKeep online for 120 days",
                                        "price_formatted": "$9"
                                    }
                                },
                                "savedByLoggedUser": [],
                                "rating_cache": 0,
                                "rating_count": 0
                            }
                        ],
                        "totalPosts": 287
                    }
                },
                "options": {
                    "max_items": "8",
                    "show_view_more_btn": "1"
                },
                "lft": 8
            },
            "stats": {
                "belongs_to": "home",
                "key": "stats",
                "data": {
                    "count": {
                        "posts": 287,
                        "users": 3304,
                        "locations": 7200
                    }
                },
                "options": {
                    "icon_count_listings": "fa-solid fa-bullhorn",
                    "icon_count_users": "fa-solid fa-users",
                    "icon_count_locations": "fa-regular fa-map",
                    "counter_up_delay": 10,
                    "counter_up_time": 2000
                },
                "lft": 10
            }
        }
    }
}
 

Request      

GET api/sections

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

Get section

Get category by its unique slug or ID.

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/sections/1?parentCatSlug=automobiles" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/sections/1"
);

const params = {
    "parentCatSlug": "automobiles",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/sections/1';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'parentCatSlug' => 'automobiles',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": false,
    "message": "Section not found",
    "result": null,
    "error": "Section not found"
}
 

Request      

GET api/sections/{method}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

method   integer   

Example: 1

key   string   

The key/method of the section. Example: getCategories

Query Parameters

parentCatSlug   string  optional  

The slug of the parent category to retrieve used when category's slug provided instead of ID. Example: automobiles

Languages

List languages

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/languages" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/languages"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/languages';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "data": [
            {
                "code": "en",
                "locale": "en_US",
                "name": "English",
                "native": "English",
                "flag": "flag-icon-gb",
                "script": "Latn",
                "direction": "ltr",
                "russian_pluralization": 0,
                "date_format": "MMM Do, YYYY",
                "datetime_format": "MMM Do, YYYY [at] HH:mm",
                "active": 1,
                "default": 1,
                "parent_id": null,
                "lft": 2,
                "rgt": 3,
                "depth": 1,
                "created_at": "2024-09-28 17:12:26",
                "updated_at": "2024-09-28 17:12:26",
                "iso_locale": "en_US",
                "tag": "en",
                "primary": "en"
            },
            {
                "code": "fr",
                "locale": "fr_FR",
                "name": "French",
                "native": "Français",
                "flag": "flag-icon-fr",
                "script": "Latn",
                "direction": "ltr",
                "russian_pluralization": 0,
                "date_format": "Do MMM YYYY",
                "datetime_format": "Do MMM YYYY [à] H[h]mm",
                "active": 1,
                "default": 0,
                "parent_id": null,
                "lft": 4,
                "rgt": 5,
                "depth": 1,
                "created_at": "2024-09-28 17:12:26",
                "updated_at": "2024-09-28 17:12:26",
                "iso_locale": "fr_FR",
                "tag": "fr",
                "primary": "fr"
            },
            {
                "code": "es",
                "locale": "es_ES",
                "name": "Spanish",
                "native": "Español",
                "flag": "flag-icon-es",
                "script": "Latn",
                "direction": "ltr",
                "russian_pluralization": 0,
                "date_format": "D [de] MMMM [de] YYYY",
                "datetime_format": "D [de] MMMM [de] YYYY HH:mm",
                "active": 1,
                "default": 0,
                "parent_id": null,
                "lft": 6,
                "rgt": 7,
                "depth": 1,
                "created_at": "2024-09-28 17:12:26",
                "updated_at": "2024-09-28 17:12:26",
                "iso_locale": "es_ES",
                "tag": "es",
                "primary": "es"
            },
            {
                "code": "ar",
                "locale": "ar_SA",
                "name": "Arabic",
                "native": "العربية",
                "flag": "flag-icon-sa",
                "script": "Arab",
                "direction": "rtl",
                "russian_pluralization": 0,
                "date_format": "DD/MMMM/YYYY",
                "datetime_format": "DD/MMMM/YYYY HH:mm",
                "active": 1,
                "default": 0,
                "parent_id": null,
                "lft": 8,
                "rgt": 9,
                "depth": 1,
                "created_at": "2024-09-28 17:12:26",
                "updated_at": "2024-09-28 17:12:26",
                "iso_locale": "ar_SA",
                "tag": "ar",
                "primary": "ar"
            },
            {
                "code": "pt",
                "locale": "pt_PT",
                "name": "Portuguese",
                "native": "Português",
                "flag": "flag-icon-pt",
                "script": "Latn",
                "direction": "ltr",
                "russian_pluralization": 0,
                "date_format": "D [de] MMMM [de] YYYY",
                "datetime_format": "D [de] MMMM [de] YYYY HH:mm",
                "active": 1,
                "default": 0,
                "parent_id": null,
                "lft": 10,
                "rgt": 11,
                "depth": 1,
                "created_at": "2024-09-28 17:12:26",
                "updated_at": "2024-09-28 17:12:26",
                "iso_locale": "pt_PT",
                "tag": "pt",
                "primary": "pt"
            },
            {
                "code": "de",
                "locale": "de_DE",
                "name": "German",
                "native": "Deutsch",
                "flag": "flag-icon-de",
                "script": "Latn",
                "direction": "ltr",
                "russian_pluralization": 0,
                "date_format": "dddd, D. MMMM YYYY",
                "datetime_format": "dddd, D. MMMM YYYY HH:mm",
                "active": 1,
                "default": 0,
                "parent_id": null,
                "lft": 12,
                "rgt": 13,
                "depth": 1,
                "created_at": "2024-09-28 17:12:26",
                "updated_at": "2024-09-28 17:12:26",
                "iso_locale": "de_DE",
                "tag": "de",
                "primary": "de"
            },
            {
                "code": "it",
                "locale": "it_IT",
                "name": "Italian",
                "native": "Italiano",
                "flag": "flag-icon-it",
                "script": "Latn",
                "direction": "ltr",
                "russian_pluralization": 0,
                "date_format": "D MMMM YYYY",
                "datetime_format": "D MMMM YYYY HH:mm",
                "active": 1,
                "default": 0,
                "parent_id": null,
                "lft": 14,
                "rgt": 15,
                "depth": 1,
                "created_at": "2024-09-28 17:12:26",
                "updated_at": "2024-09-28 17:12:26",
                "iso_locale": "it_IT",
                "tag": "it",
                "primary": "it"
            },
            {
                "code": "tr",
                "locale": "tr_TR.UTF-8",
                "name": "Turkish",
                "native": "Türkçe",
                "flag": "flag-icon-tr",
                "script": "Latn",
                "direction": "ltr",
                "russian_pluralization": 0,
                "date_format": "DD MMMM YYYY dddd",
                "datetime_format": "DD MMMM YYYY dddd HH:mm",
                "active": 1,
                "default": 0,
                "parent_id": null,
                "lft": 16,
                "rgt": 17,
                "depth": 1,
                "created_at": "2024-09-28 17:12:27",
                "updated_at": "2024-09-28 17:12:27",
                "iso_locale": "tr_TR",
                "tag": "tr",
                "primary": "tr"
            },
            {
                "code": "ru",
                "locale": "ru_RU",
                "name": "Russian",
                "native": "Русский",
                "flag": "flag-icon-ru",
                "script": "Cyrl",
                "direction": "ltr",
                "russian_pluralization": 1,
                "date_format": "D MMMM YYYY",
                "datetime_format": "D MMMM YYYY [ г.] H:mm",
                "active": 1,
                "default": 0,
                "parent_id": null,
                "lft": 18,
                "rgt": 19,
                "depth": 1,
                "created_at": "2024-09-28 17:12:27",
                "updated_at": "2024-09-28 17:12:27",
                "iso_locale": "ru_RU",
                "tag": "ru",
                "primary": "ru"
            },
            {
                "code": "hi",
                "locale": "hi_IN",
                "name": "Hindi",
                "native": "हिन्दी",
                "flag": "flag-icon-in",
                "script": "Deva",
                "direction": "ltr",
                "russian_pluralization": 0,
                "date_format": "D MMMM YYYY",
                "datetime_format": "D MMMM YYYY H:mm",
                "active": 1,
                "default": 0,
                "parent_id": null,
                "lft": 20,
                "rgt": 21,
                "depth": 1,
                "created_at": "2024-09-28 17:12:27",
                "updated_at": "2024-09-28 17:12:27",
                "iso_locale": "hi_IN",
                "tag": "hi",
                "primary": "hi"
            },
            {
                "code": "bn",
                "locale": "bn_BD",
                "name": "Bengali",
                "native": "বাংলা",
                "flag": "flag-icon-bd",
                "script": "Beng",
                "direction": "ltr",
                "russian_pluralization": 0,
                "date_format": "D MMMM YYYY",
                "datetime_format": "D MMMM YYYY H.mm",
                "active": 1,
                "default": 0,
                "parent_id": null,
                "lft": 22,
                "rgt": 23,
                "depth": 1,
                "created_at": "2024-09-28 17:12:27",
                "updated_at": "2024-09-28 17:12:27",
                "iso_locale": "bn_BD",
                "tag": "bn",
                "primary": "bn"
            },
            {
                "code": "zh",
                "locale": "zh_CN",
                "name": "Simplified Chinese",
                "native": "简体中文",
                "flag": "flag-icon-cn",
                "script": "Hans",
                "direction": "ltr",
                "russian_pluralization": 0,
                "date_format": "D MMMM YYYY",
                "datetime_format": "D MMMM YYYY H:mm",
                "active": 1,
                "default": 0,
                "parent_id": null,
                "lft": 24,
                "rgt": 25,
                "depth": 1,
                "created_at": "2024-09-28 17:12:27",
                "updated_at": "2024-09-28 17:12:27",
                "iso_locale": "zh_CN",
                "tag": "zh",
                "primary": "zh"
            },
            {
                "code": "ja",
                "locale": "ja_JP",
                "name": "Japanese",
                "native": "日本語",
                "flag": "flag-icon-jp",
                "script": "Jpan",
                "direction": "ltr",
                "russian_pluralization": 0,
                "date_format": "D MMMM YYYY",
                "datetime_format": "D MMMM YYYY H:mm",
                "active": 1,
                "default": 0,
                "parent_id": null,
                "lft": 26,
                "rgt": 27,
                "depth": 1,
                "created_at": "2024-09-28 17:12:27",
                "updated_at": "2024-09-28 17:12:27",
                "iso_locale": "ja_JP",
                "tag": "ja",
                "primary": "ja"
            },
            {
                "code": "he",
                "locale": "he_IL",
                "name": "Hebrew",
                "native": "עִברִית",
                "flag": "flag-icon-il",
                "script": "Hebr",
                "direction": "rtl",
                "russian_pluralization": 0,
                "date_format": "D MMMM YYYY",
                "datetime_format": "D MMMM YYYY H:mm",
                "active": 1,
                "default": 0,
                "parent_id": null,
                "lft": 28,
                "rgt": 29,
                "depth": 1,
                "created_at": "2024-09-28 17:12:27",
                "updated_at": "2024-09-28 17:12:27",
                "iso_locale": "he_IL",
                "tag": "he",
                "primary": "he"
            },
            {
                "code": "th",
                "locale": "th_TH",
                "name": "Thai",
                "native": "ไทย",
                "flag": "flag-icon-th",
                "script": "Thai",
                "direction": "ltr",
                "russian_pluralization": 0,
                "date_format": "D MMMM YYYY",
                "datetime_format": "D MMMM YYYY H:mm",
                "active": 1,
                "default": 0,
                "parent_id": null,
                "lft": 30,
                "rgt": 31,
                "depth": 1,
                "created_at": "2024-09-28 17:12:27",
                "updated_at": "2024-09-28 17:12:27",
                "iso_locale": "th_TH",
                "tag": "th",
                "primary": "th"
            },
            {
                "code": "ro",
                "locale": "ro_RO",
                "name": "Romanian",
                "native": "Română",
                "flag": "flag-icon-ro",
                "script": "Latn",
                "direction": "ltr",
                "russian_pluralization": 0,
                "date_format": "D MMMM YYYY",
                "datetime_format": "D MMMM YYYY H:mm",
                "active": 1,
                "default": 0,
                "parent_id": null,
                "lft": 32,
                "rgt": 33,
                "depth": 1,
                "created_at": "2024-09-28 17:12:27",
                "updated_at": "2024-09-28 17:12:27",
                "iso_locale": "ro_RO",
                "tag": "ro",
                "primary": "ro"
            },
            {
                "code": "ka",
                "locale": "ka_GE",
                "name": "Georgian",
                "native": "ქართული",
                "flag": "flag-icon-ge",
                "script": "Geor",
                "direction": "ltr",
                "russian_pluralization": 0,
                "date_format": "YYYY [წლის] DD MM",
                "datetime_format": "YYYY [წლის] DD MMMM, dddd H:mm",
                "active": 1,
                "default": 0,
                "parent_id": null,
                "lft": 34,
                "rgt": 35,
                "depth": 1,
                "created_at": "2024-09-28 17:12:27",
                "updated_at": "2024-09-28 17:12:27",
                "iso_locale": "ka_GE",
                "tag": "ka",
                "primary": "ka"
            }
        ]
    }
}
 

Request      

GET api/languages

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

Get language

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/languages/en" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/languages/en"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/languages/en';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "code": "en",
        "locale": "en_US",
        "name": "English",
        "native": "English",
        "flag": "flag-icon-gb",
        "script": "Latn",
        "direction": "ltr",
        "russian_pluralization": 0,
        "date_format": "MMM Do, YYYY",
        "datetime_format": "MMM Do, YYYY [at] HH:mm",
        "active": 1,
        "default": 1,
        "parent_id": null,
        "lft": 2,
        "rgt": 3,
        "depth": 1,
        "created_at": "2024-09-28 17:12:26",
        "updated_at": "2024-09-28 17:12:26",
        "iso_locale": "en_US",
        "tag": "en",
        "primary": "en"
    }
}
 

Request      

GET api/languages/{code}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

code   string   

The language's code. Example: en

Listings

List listing types

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/postTypes" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/postTypes"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/postTypes';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "1": {
            "id": 1,
            "name": "INDIVIDUAL",
            "label": "Individual"
        },
        "2": {
            "id": 2,
            "name": "PROFESSIONAL",
            "label": "Professional"
        }
    }
}
 

Request      

GET api/postTypes

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

Get listing type

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/postTypes/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/postTypes/1"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/postTypes/1';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "id": 1,
        "name": "INDIVIDUAL",
        "label": "Individual"
    }
}
 

Request      

GET api/postTypes/{id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

id   integer   

The listing type's ID. Example: 1

List report types

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/reportTypes" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/reportTypes"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/reportTypes';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "data": [
            {
                "id": 1,
                "name": "Fraud"
            },
            {
                "id": 2,
                "name": "Duplicate"
            },
            {
                "id": 3,
                "name": "Spam"
            },
            {
                "id": 4,
                "name": "Wrong category"
            },
            {
                "id": 5,
                "name": "Other"
            }
        ]
    }
}
 

Request      

GET api/reportTypes

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

Get report type

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/reportTypes/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/reportTypes/1"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/reportTypes/1';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "id": 1,
        "name": "Fraud"
    }
}
 

Request      

GET api/reportTypes/{id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

id   integer   

The report type's ID. Example: 1

Get Post's Custom Fields Values

Note: Called when displaying the Post's details

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/categories/1/fields/post/9" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/categories/1/fields/post/9"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/categories/1/fields/post/9';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "data": {
            "5": {
                "id": 8,
                "name": "Condition",
                "type": "select",
                "value": "New"
            }
        }
    }
}
 

Request      

GET api/categories/{id}/fields/post/{postId}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

id   integer   

The ID of the category. Example: 1

postId   string   

Example: 9

List listings

Note: The main picture of the listings is fetched via a 'picture' attribute (added as fake column), that provide default picture as image placeholder when the listing has no pictures. In addition, for performance reasons, default picture is also provided when the 'pictures' table is not embed in the endpoint. So you need to embed the picture table like: /api/posts?embed=pictures to retrieve right main picture data.

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/posts?op=&postId=&distance=&belongLoggedUser=&pendingApproval=&archived=1&embed=&sort=created_at&perPage=2" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/posts"
);

const params = {
    "op": "",
    "postId": "",
    "distance": "",
    "belongLoggedUser": "0",
    "pendingApproval": "0",
    "archived": "1",
    "embed": "",
    "sort": "created_at",
    "perPage": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/posts';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'op' => '',
            'postId' => '',
            'distance' => '',
            'belongLoggedUser' => '0',
            'pendingApproval' => '0',
            'archived' => '1',
            'embed' => '',
            'sort' => 'created_at',
            'perPage' => '2',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "data": [
            {
                "id": 10030,
                "country_code": "US",
                "user_id": 1,
                "payment_id": null,
                "category_id": 108,
                "post_type_id": 2,
                "title": "Create New Listing",
                "excerpt": "Do you have something to sell, to rent, any service to offer or a job offer? Post it at LaraClassifi...",
                "description": "Do you have something to sell, to rent, any service to offer or a job offer? Post it at LaraClassifier, its free, for local business and very easy to use!",
                "tags": [],
                "price": "309.00",
                "currency_code": "USD",
                "negotiable": 0,
                "contact_name": "Administrator",
                "auth_field": "email",
                "email": "mayeul@domain.tld",
                "phone": "+15537797114",
                "phone_national": "(553) 779-7114",
                "phone_country": "us",
                "phone_hidden": null,
                "address": null,
                "city_id": 50085,
                "lat": 46.87,
                "lon": -113.99,
                "create_from_ip": "::1",
                "latest_update_ip": "::1",
                "visits": 0,
                "tmp_token": "33dca2221de0d503fe3ad2db0546aed7",
                "email_token": null,
                "phone_token": null,
                "email_verified_at": "2024-10-01T18:36:32.000000Z",
                "phone_verified_at": "2024-10-01T18:36:32.000000Z",
                "accept_terms": 0,
                "accept_marketing_offers": 0,
                "is_permanent": 0,
                "reviewed_at": "2024-10-01T18:38:11.000000Z",
                "featured": 1,
                "archived_at": null,
                "archived_manually_at": null,
                "deletion_mail_sent_at": null,
                "fb_profile": null,
                "partner": null,
                "created_at": "2024-10-01T18:36:32.000000Z",
                "updated_at": "2024-10-13T23:51:15.000000Z",
                "reference": "rlNbWPqgdyg",
                "slug": "create-new-listing",
                "url": "https://demo.laraclassifier.local/create-new-listing/rlNbWPqgdyg",
                "phone_intl": "+1 553-779-7114",
                "created_at_formatted": "Oct 1st, 2024 at 14:36",
                "updated_at_formatted": "Oct 13th, 2024 at 19:51",
                "archived_at_formatted": "",
                "archived_manually_at_formatted": "",
                "user_photo_url": "https://demo.laraclassifier.local/storage/avatars/us/1/thumbnails/800x800-61005056409e48c3c7862f4d135304cc.jpg",
                "country_flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/us.png",
                "price_label": "Price:",
                "price_formatted": "$309",
                "visits_formatted": "0 view",
                "distance_info": null,
                "count_pictures": 0,
                "picture": {
                    "id": 15586,
                    "post_id": 10030,
                    "file_path": "files/us/10030/428d6018822b5c094fa44a15ac798989.jpg",
                    "mime_type": "image/jpeg",
                    "position": 0,
                    "active": 1,
                    "url": {
                        "full": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/816x460-428d6018822b5c094fa44a15ac798989.jpg",
                        "small": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/120x90-428d6018822b5c094fa44a15ac798989.jpg",
                        "medium": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/320x240-428d6018822b5c094fa44a15ac798989.jpg",
                        "large": "https://demo.laraclassifier.local/storage/files/us/10030/thumbnails/816x460-428d6018822b5c094fa44a15ac798989.jpg"
                    }
                },
                "rating_cache": 0,
                "rating_count": 0
            },
            {
                "id": 48,
                "country_code": "US",
                "user_id": 2,
                "payment_id": null,
                "category_id": 83,
                "post_type_id": 1,
                "title": "Guidance Counselor 1 year of experience",
                "excerpt": "Sapiente et quo non sequi. Id eum velit ut ad libero aut quia. Dicta ut voluptatem rerum modi dolore...",
                "description": "Sapiente et quo non sequi. Id eum velit ut ad libero aut quia. Dicta ut voluptatem rerum modi dolore reprehenderit.",
                "tags": [
                    "perferendis",
                    "provident",
                    "impedit"
                ],
                "price": "48676.00",
                "currency_code": null,
                "negotiable": 0,
                "contact_name": "Admin Demo",
                "auth_field": "email",
                "email": "admin@domain.tld",
                "phone": "+14659961785",
                "phone_national": "(465) 996-1785",
                "phone_country": "US",
                "phone_hidden": 0,
                "address": null,
                "city_id": 44459,
                "lat": 37.15,
                "lon": -88.73,
                "create_from_ip": "44.211.105.233",
                "latest_update_ip": null,
                "visits": 66080,
                "tmp_token": null,
                "email_token": null,
                "phone_token": "demoFaker",
                "email_verified_at": "2024-09-28T16:45:16.000000Z",
                "phone_verified_at": "2024-09-28T16:45:16.000000Z",
                "accept_terms": 1,
                "accept_marketing_offers": 1,
                "is_permanent": 0,
                "reviewed_at": "2024-09-28T16:45:16.000000Z",
                "featured": 0,
                "archived_at": null,
                "archived_manually_at": null,
                "deletion_mail_sent_at": null,
                "fb_profile": null,
                "partner": null,
                "created_at": "2024-09-28T15:56:11.000000Z",
                "updated_at": "2024-10-14T07:54:37.393138Z",
                "reference": "wMvbmZOdYAl",
                "slug": "guidance-counselor-1-year-of-experience",
                "url": "https://demo.laraclassifier.local/guidance-counselor-1-year-of-experience/wMvbmZOdYAl",
                "phone_intl": "(465) 996-1785",
                "created_at_formatted": "Sep 28th, 2024 at 11:56",
                "updated_at_formatted": "Oct 14th, 2024 at 03:54",
                "archived_at_formatted": "",
                "archived_manually_at_formatted": "",
                "user_photo_url": "https://demo.laraclassifier.local/storage/avatars/us/2/thumbnails/800x800-71479bf0e68d8c4e7e452834c95a2961.jpg",
                "country_flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/us.png",
                "price_label": "Price:",
                "price_formatted": "$48,676",
                "visits_formatted": "66.1K views",
                "distance_info": null,
                "count_pictures": 0,
                "picture": {
                    "id": 156,
                    "post_id": 48,
                    "file_path": "files/us/48/c1ff449468562dac64e8a13ff1887ed2.jpg",
                    "mime_type": "image/jpeg",
                    "position": 1,
                    "active": 1,
                    "url": {
                        "full": "https://demo.laraclassifier.local/storage/files/us/48/thumbnails/816x460-c1ff449468562dac64e8a13ff1887ed2.jpg",
                        "small": "https://demo.laraclassifier.local/storage/files/us/48/thumbnails/120x90-c1ff449468562dac64e8a13ff1887ed2.jpg",
                        "medium": "https://demo.laraclassifier.local/storage/files/us/48/thumbnails/320x240-c1ff449468562dac64e8a13ff1887ed2.jpg",
                        "large": "https://demo.laraclassifier.local/storage/files/us/48/thumbnails/816x460-c1ff449468562dac64e8a13ff1887ed2.jpg"
                    }
                },
                "rating_cache": 0,
                "rating_count": 0
            }
        ],
        "links": {
            "first": "https://demo.laraclassifier.local/api/posts?page=1",
            "last": "https://demo.laraclassifier.local/api/posts?page=156",
            "prev": null,
            "next": "https://demo.laraclassifier.local/api/posts?page=2"
        },
        "meta": {
            "current_page": 1,
            "from": 1,
            "last_page": 156,
            "links": [
                {
                    "url": null,
                    "label": "&laquo; Previous",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/posts?page=1",
                    "label": "1",
                    "active": true
                },
                {
                    "url": "https://demo.laraclassifier.local/api/posts?page=2",
                    "label": "2",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/posts?page=3",
                    "label": "3",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/posts?page=4",
                    "label": "4",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/posts?page=5",
                    "label": "5",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/posts?page=6",
                    "label": "6",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/posts?page=7",
                    "label": "7",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/posts?page=8",
                    "label": "8",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/posts?page=9",
                    "label": "9",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/posts?page=10",
                    "label": "10",
                    "active": false
                },
                {
                    "url": null,
                    "label": "...",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/posts?page=155",
                    "label": "155",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/posts?page=156",
                    "label": "156",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/posts?page=2",
                    "label": "Next &raquo;",
                    "active": false
                }
            ],
            "path": "https://demo.laraclassifier.local/api/posts",
            "per_page": 2,
            "to": 2,
            "total": 312
        }
    }
}
 

Request      

GET api/posts

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

Query Parameters

op   string  optional  

Type of listings list (optional) - Possible value: search,premium,latest,free,premiumFirst,similar.

postId   integer  optional  

Base Listing's ID to get similar listings (optional) - Mandatory to get similar listings (when op=similar).

distance   integer  optional  

Distance to get similar listings (optional) - Also optional when the type of similar listings is based on the current listing's category. Mandatory when the type of similar listings is based on the current listing's location. So, its usage is limited to get similar listings (when op=similar) based on the current listing's location.

belongLoggedUser   boolean  optional  

Force users to be logged to get data that belongs to him. Authentication token needs to be sent in the header, and the "op" parameter needs to be null or unset - Possible value: 0 or 1. Example: false

pendingApproval   boolean  optional  

To list a user's listings in pending approval. Authentication token needs to be sent in the header, and the "op" parameter needs to be null or unset - Possible value: 0 or 1. Example: false

archived   boolean  optional  

To list a user's archived listings. Authentication token needs to be sent in the header, and the "op" parameter need be null or unset - Possible value: 0 or 1. Example: true

embed   string  optional  

Comma-separated list of the post relationships for Eager Loading - Possible values: user,category,parent,postType,city,currency,savedByLoggedUser,pictures,payment,package.

sort   string  optional  

The sorting parameter (Order by DESC with the given column. Use "-" as prefix to order by ASC). Possible values: created_at. Example: created_at

perPage   integer  optional  

Items per page. Can be defined globally from the admin settings. Cannot be exceeded 100. Example: 2

Get listing

Note: The main picture of the listing is fetched via a 'picture' attribute (added as fake column), that provide default picture as image placeholder when the listing has no pictures. In addition, for performance reasons, default picture is also provided when the 'pictures' table is not embed in the endpoint. So you need to embed the picture table like: /api/posts/1?embed=pictures to retrieve right main picture data.

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/posts/2?unactivatedIncluded=1&belongLoggedUser=&noCache=&embed=user%2CpostType&detailed=" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/posts/2"
);

const params = {
    "unactivatedIncluded": "1",
    "belongLoggedUser": "0",
    "noCache": "0",
    "embed": "user,postType",
    "detailed": "0",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/posts/2';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'unactivatedIncluded' => '1',
            'belongLoggedUser' => '0',
            'noCache' => '0',
            'embed' => 'user,postType',
            'detailed' => '0',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "id": 2,
        "country_code": "US",
        "user_id": 1,
        "payment_id": null,
        "category_id": 17,
        "post_type_id": 1,
        "title": "Samsung Galaxy Book Flex 15 black",
        "excerpt": "Aliquid sed maiores dolore quos velit consectetur minima. Dolor qui vel alias iusto nemo ut rerum. R...",
        "description": "Aliquid sed maiores dolore quos velit consectetur minima. Dolor qui vel alias iusto nemo ut rerum. Recusandae est dolorum perspiciatis in velit. Tempore repudiandae autem quos.",
        "tags": [
            "voluptas",
            "velit",
            "recusandae"
        ],
        "price": "68.00",
        "currency_code": null,
        "negotiable": 0,
        "contact_name": "Administrator",
        "auth_field": "email",
        "email": "mayeul@domain.tld",
        "phone": "+17041092419",
        "phone_national": "(704) 109-2419",
        "phone_country": "US",
        "phone_hidden": 0,
        "address": null,
        "city_id": 50205,
        "lat": 44.08,
        "lon": -103.23,
        "create_from_ip": "73.238.113.17",
        "latest_update_ip": null,
        "visits": 42910,
        "tmp_token": null,
        "email_token": "d529f67840a86bc1a5ea464d4b2e8611",
        "phone_token": "demoFaker",
        "email_verified_at": null,
        "phone_verified_at": "2024-09-28T17:13:34.000000Z",
        "accept_terms": 1,
        "accept_marketing_offers": 0,
        "is_permanent": 0,
        "reviewed_at": "2024-09-28T17:13:34.000000Z",
        "featured": 0,
        "archived_at": null,
        "archived_manually_at": null,
        "deletion_mail_sent_at": null,
        "fb_profile": null,
        "partner": null,
        "created_at": "2024-08-31T19:02:26.000000Z",
        "updated_at": "2024-10-14T07:54:38.000000Z",
        "reference": "GWpmbk5ezJn",
        "slug": "samsung-galaxy-book-flex-15-black",
        "url": "https://demo.laraclassifier.local/samsung-galaxy-book-flex-15-black/GWpmbk5ezJn",
        "phone_intl": "(704) 109-2419",
        "created_at_formatted": "1 month ago",
        "updated_at_formatted": "Oct 14th, 2024 at 03:54",
        "archived_at_formatted": "",
        "archived_manually_at_formatted": "",
        "user_photo_url": "https://demo.laraclassifier.local/storage/avatars/us/1/thumbnails/800x800-61005056409e48c3c7862f4d135304cc.jpg",
        "country_flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/us.png",
        "price_label": "Price:",
        "price_formatted": "$68",
        "visits_formatted": "42.9K views",
        "distance_info": null,
        "count_pictures": 0,
        "picture": {
            "id": 3,
            "post_id": 2,
            "file_path": "files/us/2/8079ad217ed605d2bbfcf0962cdb915b.jpg",
            "mime_type": "image/jpeg",
            "position": 1,
            "active": 1,
            "url": {
                "full": "https://demo.laraclassifier.local/storage/files/us/2/thumbnails/816x460-8079ad217ed605d2bbfcf0962cdb915b.jpg",
                "small": "https://demo.laraclassifier.local/storage/files/us/2/thumbnails/120x90-8079ad217ed605d2bbfcf0962cdb915b.jpg",
                "medium": "https://demo.laraclassifier.local/storage/files/us/2/thumbnails/320x240-8079ad217ed605d2bbfcf0962cdb915b.jpg",
                "large": "https://demo.laraclassifier.local/storage/files/us/2/thumbnails/816x460-8079ad217ed605d2bbfcf0962cdb915b.jpg"
            }
        },
        "user": {
            "id": 1,
            "name": "Administrator",
            "username": null,
            "updated_at": "2024-08-21T10:06:58.000000Z",
            "original_updated_at": "2024-08-21 10:06:58",
            "original_last_activity": null,
            "created_at_formatted": "6 months ago",
            "photo_url": "https://demo.laraclassifier.local/storage/avatars/us/1/thumbnails/800x800-61005056409e48c3c7862f4d135304cc.jpg",
            "p_is_online": false,
            "country_flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/us.png"
        },
        "postType": {
            "id": 1,
            "name": "INDIVIDUAL",
            "label": "Individual"
        },
        "rating_cache": 0,
        "rating_count": 0
    },
    "extra": {
        "fieldsValues": []
    }
}
 

Request      

GET api/posts/{id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

id   integer   

The post/listing's ID. Example: 2

Query Parameters

unactivatedIncluded   boolean  optional  

Include or not unactivated entries - Possible value: 0 or 1. Example: true

belongLoggedUser   boolean  optional  

Force users to be logged to get data that belongs to him - Possible value: 0 or 1. Example: false

noCache   boolean  optional  

Disable the cache for this request - Possible value: 0 or 1. Example: false

embed   string  optional  

Comma-separated list of the post relationships for Eager Loading - Possible values: user,category,parent,postType,city,currency,savedByLoggedUser,pictures,payment,package,fieldsValues. Example: user,postType

detailed   boolean  optional  

Allow getting the listing's details with all its relationships (No need to set the 'embed' parameter). Example: false

Store listing

requires authentication

For both types of listing's creation (Single step or Multi steps). Note: The field 'admin_code' is only available when the listing's country's 'admin_type' column is set to 1 or 2.

Example request:
curl --request POST \
    "https://demo.laraclassifier.local/api/posts" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --form "category_id=1"\
    --form "post_type_id=1"\
    --form "title=John Doe"\
    --form "description=Beatae placeat atque tempore consequatur animi magni omnis."\
    --form "contact_name=John Doe"\
    --form "auth_field=email"\
    --form "phone=+17656766467"\
    --form "phone_country="\
    --form "city_id=5"\
    --form "accept_terms="\
    --form "email=john.doe@domain.tld"\
    --form "country_code=US"\
    --form "admin_code=0"\
    --form "price=5000"\
    --form "negotiable="\
    --form "phone_hidden="\
    --form "create_from_ip=127.0.0.1"\
    --form "accept_marketing_offers=1"\
    --form "is_permanent=1"\
    --form "tags=car,automotive,tesla,cyber,truck"\
    --form "package_id=2"\
    --form "payment_method_id=5"\
    --form "captcha_key=voluptates"\
    --form "pictures[]=@/private/var/folders/r0/k0xbnx757k3fnz09_6g9rp6w0000gn/T/phpoQAjUc" 
const url = new URL(
    "https://demo.laraclassifier.local/api/posts"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

const body = new FormData();
body.append('category_id', '1');
body.append('post_type_id', '1');
body.append('title', 'John Doe');
body.append('description', 'Beatae placeat atque tempore consequatur animi magni omnis.');
body.append('contact_name', 'John Doe');
body.append('auth_field', 'email');
body.append('phone', '+17656766467');
body.append('phone_country', '');
body.append('city_id', '5');
body.append('accept_terms', '');
body.append('email', 'john.doe@domain.tld');
body.append('country_code', 'US');
body.append('admin_code', '0');
body.append('price', '5000');
body.append('negotiable', '');
body.append('phone_hidden', '');
body.append('create_from_ip', '127.0.0.1');
body.append('accept_marketing_offers', '1');
body.append('is_permanent', '1');
body.append('tags', 'car,automotive,tesla,cyber,truck');
body.append('package_id', '2');
body.append('payment_method_id', '5');
body.append('captcha_key', 'voluptates');
body.append('pictures[]', document.querySelector('input[name="pictures[]"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/posts';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'multipart' => [
            [
                'name' => 'category_id',
                'contents' => '1'
            ],
            [
                'name' => 'post_type_id',
                'contents' => '1'
            ],
            [
                'name' => 'title',
                'contents' => 'John Doe'
            ],
            [
                'name' => 'description',
                'contents' => 'Beatae placeat atque tempore consequatur animi magni omnis.'
            ],
            [
                'name' => 'contact_name',
                'contents' => 'John Doe'
            ],
            [
                'name' => 'auth_field',
                'contents' => 'email'
            ],
            [
                'name' => 'phone',
                'contents' => '+17656766467'
            ],
            [
                'name' => 'phone_country',
                'contents' => ''
            ],
            [
                'name' => 'city_id',
                'contents' => '5'
            ],
            [
                'name' => 'accept_terms',
                'contents' => ''
            ],
            [
                'name' => 'email',
                'contents' => 'john.doe@domain.tld'
            ],
            [
                'name' => 'country_code',
                'contents' => 'US'
            ],
            [
                'name' => 'admin_code',
                'contents' => '0'
            ],
            [
                'name' => 'price',
                'contents' => '5000'
            ],
            [
                'name' => 'negotiable',
                'contents' => ''
            ],
            [
                'name' => 'phone_hidden',
                'contents' => ''
            ],
            [
                'name' => 'create_from_ip',
                'contents' => '127.0.0.1'
            ],
            [
                'name' => 'accept_marketing_offers',
                'contents' => '1'
            ],
            [
                'name' => 'is_permanent',
                'contents' => '1'
            ],
            [
                'name' => 'tags',
                'contents' => 'car,automotive,tesla,cyber,truck'
            ],
            [
                'name' => 'package_id',
                'contents' => '2'
            ],
            [
                'name' => 'payment_method_id',
                'contents' => '5'
            ],
            [
                'name' => 'captcha_key',
                'contents' => 'voluptates'
            ],
            [
                'name' => 'pictures[]',
                'contents' => fopen('/private/var/folders/r0/k0xbnx757k3fnz09_6g9rp6w0000gn/T/phpoQAjUc', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/posts

Headers

Authorization      

Example: Bearer {YOUR_AUTH_TOKEN}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

Body Parameters

category_id   integer   

The category's ID. Example: 1

post_type_id   integer  optional  

The listing type's ID. Example: 1

title   string   

The listing's title. Example: John Doe

description   string   

The listing's description. Example: Beatae placeat atque tempore consequatur animi magni omnis.

contact_name   string   

The listing's author name. Example: John Doe

auth_field   string   

The user's auth field ('email' or 'phone'). Example: email

phone   string  optional  

The listing's author mobile number (Required when 'auth_field' value is 'phone'). Example: +17656766467

phone_country   string   

The user's phone number's country code (Required when the 'phone' field is filled).

city_id   integer   

The city's ID. Example: 5

accept_terms   boolean   

Accept the website terms and conditions. Example: false

pictures   file[]   

The listing's pictures.

email   string  optional  

The listing's author email address (Required when 'auth_field' value is 'email'). Example: john.doe@domain.tld

country_code   string   

The code of the user's country. Example: US

admin_code   string  optional  

The administrative division's code. Example: 0

price   integer   

The price. Example: 5000

negotiable   boolean  optional  

Negotiable price or no. Example: false

phone_hidden   boolean  optional  

Mobile phone number will be hidden in public or no. Example: false

create_from_ip   string  optional  

The listing's author IP address. Example: 127.0.0.1

accept_marketing_offers   boolean  optional  

Accept to receive marketing offers or no. Example: true

is_permanent   boolean  optional  

Is it permanent post or no. Example: true

tags   string  optional  

Comma-separated tags list. Example: car,automotive,tesla,cyber,truck

package_id   integer   

The package's ID. Example: 2

payment_method_id   integer  optional  

The payment method's ID (required when the selected package's price is > 0). Example: 5

captcha_key   string  optional  

Key generated by the CAPTCHA endpoint calling (Required when the CAPTCHA verification is enabled from the Admin panel). Example: voluptates

Archive a listing

requires authentication

Put a listing offline

Example request:
curl --request PUT \
    "https://demo.laraclassifier.local/api/posts/3/offline" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/posts/3/offline"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/posts/3/offline';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

PUT api/posts/{id}/offline

Headers

Authorization      

Example: Bearer {YOUR_AUTH_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

id   integer   

The post/listing's ID. Example: 3

Repost a listing

requires authentication

Repost a listing by un-archiving it.

Example request:
curl --request PUT \
    "https://demo.laraclassifier.local/api/posts/1/repost" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/posts/1/repost"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/posts/1/repost';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

PUT api/posts/{id}/repost

Headers

Authorization      

Example: Bearer {YOUR_AUTH_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

id   integer   

The post/listing's ID. Example: 1

Update listing

requires authentication

Note: The fields 'pictures', 'package_id' and 'payment_method_id' are only available with the single step listing edition. The field 'admin_code' is only available when the listing's country's 'admin_type' column is set to 1 or 2.

Example request:
curl --request PUT \
    "https://demo.laraclassifier.local/api/posts/6" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --form "category_id=1"\
    --form "post_type_id=1"\
    --form "title=John Doe"\
    --form "description=Beatae placeat atque tempore consequatur animi magni omnis."\
    --form "contact_name=John Doe"\
    --form "auth_field=email"\
    --form "phone=+17656766467"\
    --form "phone_country="\
    --form "city_id=3"\
    --form "accept_terms="\
    --form "email=john.doe@domain.tld"\
    --form "country_code=US"\
    --form "admin_code=0"\
    --form "price=5000"\
    --form "negotiable="\
    --form "phone_hidden="\
    --form "latest_update_ip=127.0.0.1"\
    --form "accept_marketing_offers=1"\
    --form "is_permanent="\
    --form "tags=car,automotive,tesla,cyber,truck"\
    --form "package_id=2"\
    --form "payment_method_id=5"\
    --form "pictures[]=@/private/var/folders/r0/k0xbnx757k3fnz09_6g9rp6w0000gn/T/phpYSChna" 
const url = new URL(
    "https://demo.laraclassifier.local/api/posts/6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

const body = new FormData();
body.append('category_id', '1');
body.append('post_type_id', '1');
body.append('title', 'John Doe');
body.append('description', 'Beatae placeat atque tempore consequatur animi magni omnis.');
body.append('contact_name', 'John Doe');
body.append('auth_field', 'email');
body.append('phone', '+17656766467');
body.append('phone_country', '');
body.append('city_id', '3');
body.append('accept_terms', '');
body.append('email', 'john.doe@domain.tld');
body.append('country_code', 'US');
body.append('admin_code', '0');
body.append('price', '5000');
body.append('negotiable', '');
body.append('phone_hidden', '');
body.append('latest_update_ip', '127.0.0.1');
body.append('accept_marketing_offers', '1');
body.append('is_permanent', '');
body.append('tags', 'car,automotive,tesla,cyber,truck');
body.append('package_id', '2');
body.append('payment_method_id', '5');
body.append('pictures[]', document.querySelector('input[name="pictures[]"]').files[0]);

fetch(url, {
    method: "PUT",
    headers,
    body,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/posts/6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'multipart' => [
            [
                'name' => 'category_id',
                'contents' => '1'
            ],
            [
                'name' => 'post_type_id',
                'contents' => '1'
            ],
            [
                'name' => 'title',
                'contents' => 'John Doe'
            ],
            [
                'name' => 'description',
                'contents' => 'Beatae placeat atque tempore consequatur animi magni omnis.'
            ],
            [
                'name' => 'contact_name',
                'contents' => 'John Doe'
            ],
            [
                'name' => 'auth_field',
                'contents' => 'email'
            ],
            [
                'name' => 'phone',
                'contents' => '+17656766467'
            ],
            [
                'name' => 'phone_country',
                'contents' => ''
            ],
            [
                'name' => 'city_id',
                'contents' => '3'
            ],
            [
                'name' => 'accept_terms',
                'contents' => ''
            ],
            [
                'name' => 'email',
                'contents' => 'john.doe@domain.tld'
            ],
            [
                'name' => 'country_code',
                'contents' => 'US'
            ],
            [
                'name' => 'admin_code',
                'contents' => '0'
            ],
            [
                'name' => 'price',
                'contents' => '5000'
            ],
            [
                'name' => 'negotiable',
                'contents' => ''
            ],
            [
                'name' => 'phone_hidden',
                'contents' => ''
            ],
            [
                'name' => 'latest_update_ip',
                'contents' => '127.0.0.1'
            ],
            [
                'name' => 'accept_marketing_offers',
                'contents' => '1'
            ],
            [
                'name' => 'is_permanent',
                'contents' => ''
            ],
            [
                'name' => 'tags',
                'contents' => 'car,automotive,tesla,cyber,truck'
            ],
            [
                'name' => 'package_id',
                'contents' => '2'
            ],
            [
                'name' => 'payment_method_id',
                'contents' => '5'
            ],
            [
                'name' => 'pictures[]',
                'contents' => fopen('/private/var/folders/r0/k0xbnx757k3fnz09_6g9rp6w0000gn/T/phpYSChna', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

PUT api/posts/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_TOKEN}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

id   integer   

The post/listing's ID. Example: 6

Body Parameters

category_id   integer   

The category's ID. Example: 1

post_type_id   integer  optional  

The listing type's ID. Example: 1

title   string   

The listing's title. Example: John Doe

description   string   

The listing's description. Example: Beatae placeat atque tempore consequatur animi magni omnis.

contact_name   string   

The listing's author name. Example: John Doe

auth_field   string   

The user's auth field ('email' or 'phone'). Example: email

phone   string  optional  

The listing's author mobile number (Required when 'auth_field' value is 'phone'). Example: +17656766467

phone_country   string   

The user's phone number's country code (Required when the 'phone' field is filled).

city_id   integer   

The city's ID. Example: 3

accept_terms   boolean   

Accept the website terms and conditions. Example: false

pictures   file[]   

The listing's pictures.

email   string  optional  

The listing's author email address (Required when 'auth_field' value is 'email'). Example: john.doe@domain.tld

country_code   string   

The code of the user's country. Example: US

admin_code   string  optional  

The administrative division's code. Example: 0

price   integer   

The price. Example: 5000

negotiable   boolean  optional  

Negotiable price or no. Example: false

phone_hidden   boolean  optional  

Mobile phone number will be hidden in public or no. Example: false

latest_update_ip   string  optional  

The listing's author IP address. Example: 127.0.0.1

accept_marketing_offers   boolean  optional  

Accept to receive marketing offers or no. Example: true

is_permanent   boolean  optional  

Is it permanent post or no. Example: false

tags   string  optional  

Comma-separated tags list. Example: car,automotive,tesla,cyber,truck

package_id   integer   

The package's ID. Example: 2

payment_method_id   integer  optional  

The payment method's ID (Required when the selected package's price is > 0). Example: 5

Delete listing(s)

requires authentication

Example request:
curl --request DELETE \
    "https://demo.laraclassifier.local/api/posts/laborum" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/posts/laborum"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/posts/laborum';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

DELETE api/posts/{ids}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

ids   string   

The ID or comma-separated IDs list of listing(s). Example: laborum

Email: Re-send link

Re-send email verification link to the user

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/posts/9398/verify/resend/email?entitySlug=users" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/posts/9398/verify/resend/email"
);

const params = {
    "entitySlug": "users",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/posts/9398/verify/resend/email';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'entitySlug' => 'users',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": false,
    "message": "Entity ID not found.",
    "result": null
}
 

Request      

GET api/posts/{id}/verify/resend/email

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

id   integer   

The ID of the post. Example: 9398

entityId   integer  optional  

The entity/model identifier (ID).

Query Parameters

entitySlug   string  optional  

The slug of the entity to verify ('users' or 'posts'). Example: users

SMS: Re-send code

Re-send mobile phone verification token by SMS

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/posts/9398/verify/resend/sms?entitySlug=users" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/posts/9398/verify/resend/sms"
);

const params = {
    "entitySlug": "users",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/posts/9398/verify/resend/sms';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'entitySlug' => 'users',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": false,
    "message": "Entity ID not found.",
    "result": null
}
 

Request      

GET api/posts/{id}/verify/resend/sms

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

id   integer   

The ID of the post. Example: 9398

entityId   integer  optional  

The entity/model identifier (ID).

Query Parameters

entitySlug   string  optional  

The slug of the entity to verify ('users' or 'posts'). Example: users

Verification

Verify the user's email address or mobile phone number

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/posts/verify/email/?entitySlug=users" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/posts/verify/email/"
);

const params = {
    "entitySlug": "users",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/posts/verify/email/';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'entitySlug' => 'users',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (400):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": false,
    "message": "The token or code to verify is empty.",
    "result": null
}
 

Request      

GET api/posts/verify/{field}/{token?}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

field   string   

The field to verify. Example: email

token   string  optional  

The verification token.

Query Parameters

entitySlug   string  optional  

The slug of the entity to verify ('users' or 'posts'). Example: users

Packages

List packages

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/packages/promotion?embed=&sort=-lft" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/packages/promotion"
);

const params = {
    "embed": "",
    "sort": "-lft",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/packages/promotion';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed' => '',
            'sort' => '-lft',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "data": [
            {
                "id": 1,
                "type": "promotion",
                "name": "Regular List",
                "short_name": "Free",
                "ribbon": "red",
                "has_badge": 1,
                "price": "0.00",
                "currency_code": "USD",
                "promotion_time": null,
                "interval": null,
                "listings_limit": null,
                "pictures_limit": null,
                "expiration_time": null,
                "description": "",
                "facebook_ads_duration": 0,
                "google_ads_duration": 0,
                "twitter_ads_duration": 0,
                "linkedin_ads_duration": 0,
                "recommended": 0,
                "active": 1,
                "parent_id": null,
                "lft": 2,
                "rgt": 3,
                "depth": 0,
                "period_start": "2024-10-14T00:00:00.000000Z",
                "period_end": "2024-11-13T23:59:59.999999Z",
                "description_array": [
                    "Up to 6 images allowed",
                    "Keep online for 30 days"
                ],
                "description_string": "Up to 6 images allowed. \nKeep online for 30 days",
                "price_formatted": "$0"
            },
            {
                "id": 2,
                "type": "promotion",
                "name": "Premium Listing",
                "short_name": "Premium",
                "ribbon": "orange",
                "has_badge": 1,
                "price": "7.50",
                "currency_code": "USD",
                "promotion_time": 7,
                "interval": null,
                "listings_limit": null,
                "pictures_limit": 10,
                "expiration_time": 60,
                "description": "Featured on the homepage\nFeatured in the category",
                "facebook_ads_duration": 0,
                "google_ads_duration": 0,
                "twitter_ads_duration": 0,
                "linkedin_ads_duration": 0,
                "recommended": 1,
                "active": 1,
                "parent_id": null,
                "lft": 4,
                "rgt": 5,
                "depth": 0,
                "period_start": "2024-10-14T00:00:00.000000Z",
                "period_end": "2024-10-21T23:59:59.999999Z",
                "description_array": [
                    "7 days of promotion",
                    "Up to 10 images allowed",
                    "Featured on the homepage",
                    "Featured in the category",
                    "Keep online for 60 days"
                ],
                "description_string": "7 days of promotion. \nUp to 10 images allowed. \nFeatured on the homepage. \nFeatured in the category. \nKeep online for 60 days",
                "price_formatted": "$7.50"
            },
            {
                "id": 3,
                "type": "promotion",
                "name": "Premium Listing (+)",
                "short_name": "Premium+",
                "ribbon": "green",
                "has_badge": 1,
                "price": "9.00",
                "currency_code": "USD",
                "promotion_time": 30,
                "interval": null,
                "listings_limit": null,
                "pictures_limit": 15,
                "expiration_time": 120,
                "description": "Featured on the homepage\nFeatured in the category",
                "facebook_ads_duration": 0,
                "google_ads_duration": 0,
                "twitter_ads_duration": 0,
                "linkedin_ads_duration": 0,
                "recommended": 0,
                "active": 1,
                "parent_id": null,
                "lft": 6,
                "rgt": 7,
                "depth": 0,
                "period_start": "2024-10-14T00:00:00.000000Z",
                "period_end": "2024-11-13T23:59:59.999999Z",
                "description_array": [
                    "30 days of promotion",
                    "Up to 15 images allowed",
                    "Featured on the homepage",
                    "Featured in the category",
                    "Keep online for 120 days"
                ],
                "description_string": "30 days of promotion. \nUp to 15 images allowed. \nFeatured on the homepage. \nFeatured in the category. \nKeep online for 120 days",
                "price_formatted": "$9"
            }
        ]
    }
}
 

Request      

GET api/packages/promotion

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

Query Parameters

embed   string  optional  

Comma-separated list of the package relationships for Eager Loading - Possible values: currency.

sort   string  optional  

The sorting parameter (Order by DESC with the given column. Use "-" as prefix to order by ASC). Possible values: lft. Example: -lft

List packages

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/packages/subscription?embed=&sort=-lft" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/packages/subscription"
);

const params = {
    "embed": "",
    "sort": "-lft",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/packages/subscription';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed' => '',
            'sort' => '-lft',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "data": [
            {
                "id": 4,
                "type": "subscription",
                "name": "Basic",
                "short_name": "Basic",
                "ribbon": null,
                "has_badge": 0,
                "price": "0.00",
                "currency_code": "USD",
                "promotion_time": null,
                "interval": "month",
                "listings_limit": null,
                "pictures_limit": null,
                "expiration_time": null,
                "description": "",
                "facebook_ads_duration": 0,
                "google_ads_duration": 0,
                "twitter_ads_duration": 0,
                "linkedin_ads_duration": 0,
                "recommended": 0,
                "active": 1,
                "parent_id": null,
                "lft": 8,
                "rgt": 9,
                "depth": 0,
                "period_start": "2024-10-14T00:00:00.000000Z",
                "period_end": "2024-11-14T23:59:59.999999Z",
                "description_array": [
                    "Up to 50 listings allowed",
                    "Add 6 pictures per listing",
                    "Keep listings online for 30 days"
                ],
                "description_string": "Up to 50 listings allowed. \nAdd 6 pictures per listing. \nKeep listings online for 30 days",
                "price_formatted": "$0"
            },
            {
                "id": 5,
                "type": "subscription",
                "name": "Premium",
                "short_name": "Premium",
                "ribbon": null,
                "has_badge": 0,
                "price": "9.00",
                "currency_code": "USD",
                "promotion_time": null,
                "interval": "month",
                "listings_limit": 100,
                "pictures_limit": 10,
                "expiration_time": 90,
                "description": "",
                "facebook_ads_duration": 0,
                "google_ads_duration": 0,
                "twitter_ads_duration": 0,
                "linkedin_ads_duration": 0,
                "recommended": 1,
                "active": 1,
                "parent_id": null,
                "lft": 10,
                "rgt": 11,
                "depth": 0,
                "period_start": "2024-10-14T00:00:00.000000Z",
                "period_end": "2024-11-14T23:59:59.999999Z",
                "description_array": [
                    "Publish up to 100 listings per month",
                    "Add 10 pictures per listing",
                    "Keep listings online for 90 days"
                ],
                "description_string": "Publish up to 100 listings per month. \nAdd 10 pictures per listing. \nKeep listings online for 90 days",
                "price_formatted": "$9"
            }
        ]
    }
}
 

Request      

GET api/packages/subscription

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

Query Parameters

embed   string  optional  

Comma-separated list of the package relationships for Eager Loading - Possible values: currency.

sort   string  optional  

The sorting parameter (Order by DESC with the given column. Use "-" as prefix to order by ASC). Possible values: lft. Example: -lft

Get package

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/packages/2?embed=currency" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/packages/2"
);

const params = {
    "embed": "currency",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/packages/2';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed' => 'currency',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "id": 2,
        "type": "promotion",
        "name": "Premium Listing",
        "short_name": "Premium",
        "ribbon": "orange",
        "has_badge": 1,
        "price": "7.50",
        "currency_code": "USD",
        "promotion_time": 7,
        "interval": null,
        "listings_limit": null,
        "pictures_limit": 10,
        "expiration_time": 60,
        "description": "Featured on the homepage\nFeatured in the category",
        "facebook_ads_duration": 0,
        "google_ads_duration": 0,
        "twitter_ads_duration": 0,
        "linkedin_ads_duration": 0,
        "recommended": 1,
        "active": 1,
        "parent_id": null,
        "lft": 4,
        "rgt": 5,
        "depth": 0,
        "period_start": "2024-10-14T00:00:00.000000Z",
        "period_end": "2024-10-21T23:59:59.999999Z",
        "description_array": [
            "7 days of promotion",
            "Up to 10 images allowed",
            "Featured on the homepage",
            "Featured in the category",
            "Keep online for 60 days"
        ],
        "description_string": "7 days of promotion. \nUp to 10 images allowed. \nFeatured on the homepage. \nFeatured in the category. \nKeep online for 60 days",
        "price_formatted": "$7.50",
        "currency": {
            "code": "USD",
            "name": "United States Dollar",
            "symbol": "$",
            "html_entities": "&#36;",
            "in_left": 1,
            "decimal_places": 2,
            "decimal_separator": ".",
            "thousand_separator": ","
        }
    }
}
 

Request      

GET api/packages/{id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

id   integer   

The package's ID. Example: 2

Query Parameters

embed   string  optional  

Comma-separated list of the package relationships for Eager Loading - Possible values: currency. Example: currency

Pages

List pages

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/pages?excludedFromFooter=&sort=-lft&perPage=2" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/pages"
);

const params = {
    "excludedFromFooter": "0",
    "sort": "-lft",
    "perPage": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/pages';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'excludedFromFooter' => '0',
            'sort' => '-lft',
            'perPage' => '2',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "data": [
            {
                "id": 4,
                "parent_id": null,
                "type": "standard",
                "name": "FAQ",
                "slug": "faq",
                "image_path": null,
                "title": "Frequently Asked Questions",
                "content": "<p><strong>How do I place an ad?</strong></p>\r\n<p>It's very easy to place an ad: click on the button \"Post free Ads\" above right.</p>\r\n<p><strong>What does it cost to advertise?</strong></p>\r\n<p>The publication is 100% free throughout the website.</p>\r\n<p><strong>If I post an listing, will I also get more spam e-mails?</strong></p>\r\n<p>Absolutely not because your email address is not visible on the website.</p>\r\n<p><strong>How long will my listing remain on the website?</strong></p>\r\n<p>In general, an listing is automatically deactivated from the website after 3 months. You will receive an email a week before D-Day and another on the day of deactivation. You have the ability to put them online in the following month by logging into your account on the site. After this delay, your listing will be automatically removed permanently from the website.</p>\r\n<p><strong>I sold my item. How do I delete my ad?</strong></p>\r\n<p>Once your product is sold or leased, log in to your account to remove your listing.</p>",
                "external_link": null,
                "name_color": null,
                "title_color": null,
                "target_blank": 0,
                "seo_title": "",
                "seo_description": "",
                "seo_keywords": "",
                "excluded_from_footer": 0,
                "active": 1,
                "lft": 2,
                "rgt": 3,
                "depth": 1,
                "image_url": null
            },
            {
                "id": 3,
                "parent_id": null,
                "type": "standard",
                "name": "Anti-Scam",
                "slug": "anti-scam",
                "image_path": null,
                "title": "Anti-Scam",
                "content": "<p><b>Protect yourself against Internet fraud!</b></p><p>The vast majority of listings are posted by honest people and trust. So you can do excellent business. Despite this, it is important to follow a few common sense rules following to prevent any attempt to scam.</p><p><b>Our advices</b></p><ul><li>Doing business with people you can meet in person.</li><li>Never send money by Western Union, MoneyGram or other anonymous payment systems.</li><li>Never send money or products abroad.</li><li>Do not accept checks.</li><li>Ask about the person you're dealing with another confirming source name, address and telephone number.</li><li>Keep copies of all correspondence (emails, listings, letters, etc.) and details of the person.</li><li>If a deal seems too good to be true, there is every chance that this is the case. Refrain.</li></ul><p><b>Recognize attempted scam</b></p><ul><li>The majority of scams have one or more of these characteristics:</li><li>The person is abroad or traveling abroad.</li><li>The person refuses to meet you in person.</li><li>Payment is made through Western Union, Money Gram or check.</li><li>The messages are in broken language (English or French or ...).</li><li>The texts seem to be copied and pasted.</li><li>The deal seems to be too good to be true.</li></ul>",
                "external_link": null,
                "name_color": null,
                "title_color": null,
                "target_blank": 0,
                "seo_title": "",
                "seo_description": "",
                "seo_keywords": "",
                "excluded_from_footer": 0,
                "active": 1,
                "lft": 4,
                "rgt": 5,
                "depth": 1,
                "image_url": null
            }
        ],
        "links": {
            "first": "https://demo.laraclassifier.local/api/pages?page=1",
            "last": "https://demo.laraclassifier.local/api/pages?page=2",
            "prev": null,
            "next": "https://demo.laraclassifier.local/api/pages?page=2"
        },
        "meta": {
            "current_page": 1,
            "from": 1,
            "last_page": 2,
            "links": [
                {
                    "url": null,
                    "label": "&laquo; Previous",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/pages?page=1",
                    "label": "1",
                    "active": true
                },
                {
                    "url": "https://demo.laraclassifier.local/api/pages?page=2",
                    "label": "2",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/pages?page=2",
                    "label": "Next &raquo;",
                    "active": false
                }
            ],
            "path": "https://demo.laraclassifier.local/api/pages",
            "per_page": 2,
            "to": 2,
            "total": 4
        }
    }
}
 

Request      

GET api/pages

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

Query Parameters

excludedFromFooter   boolean  optional  

Select or unselect pages that can list in footer. Example: false

sort   string  optional  

The sorting parameter (Order by DESC with the given column. Use "-" as prefix to order by ASC). Possible values: lft, created_at. Example: -lft

perPage   integer  optional  

Items per page. Can be defined globally from the admin settings. Cannot be exceeded 100. Example: 2

Get page

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/pages/terms" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/pages/terms"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/pages/terms';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "id": 1,
        "parent_id": null,
        "type": "terms",
        "name": "Terms",
        "slug": "terms",
        "image_path": null,
        "title": "Terms & Conditions",
        "content": "<h4><b>Definitions</b></h4><p>Each of the terms mentioned below have in these Conditions of Sale LaraClassifier Service (hereinafter the \"Conditions\") the following meanings:</p><ol><li>Announcement&nbsp;: refers to all the elements and data (visual, textual, sound, photographs, drawings), presented by an Advertiser editorial under his sole responsibility, in order to buy, rent or sell a product or service and broadcast on the Website and Mobile Site.</li><li>Advertiser&nbsp;: means any natural or legal person, a major, established in France, holds an account and having submitted an announcement, from it, on the Website. Any Advertiser must be connected to the Personal Account for deposit and or manage its listings. Add first deposit automatically entails the establishment of a Personal Account to the Advertiser.</li><li>Personal Account&nbsp;: refers to the free space than any Advertiser must create and which it should connect from the Website to disseminate, manage and view its listings.</li><li>LaraClassifier&nbsp;: means the company that publishes and operates the Website and Mobile Site {YourCompany}, registered at the Trade and Companies Register of {YourCity} under the number {YourCompany Registration Number} whose registered office is at {YourCompany Address}.</li><li>Customer Service&nbsp;: LaraClassifier means the department to which the Advertiser may obtain further information. This service can be contacted via email by clicking the link on the Website and Mobile Site.</li><li>LaraClassifier Service&nbsp;: LaraClassifier means the services made available to Users and Advertisers on the Website and Mobile Site.</li><li>Website&nbsp;: means the website operated by LaraClassifier accessed mainly from the URL <a href=\"https://laraclassifier.com\">https://laraclassifier.com</a> and allowing Users and Advertisers to access the Service via internet LaraClassifier.</li><li>Mobile Site&nbsp;: is the mobile site operated by LaraClassifier accessible from the URL <a href=\"https://laraclassifier.com\">https://laraclassifier.com</a> and allowing Users and Advertisers to access via their mobile phone service {YourSiteName}.</li><li>User&nbsp;: any visitor with access to LaraClassifier Service via the Website and Mobile Site and Consultant Service LaraClassifier accessible from different media.</li></ol><h4><b>Subject</b></h4><p>These Terms and Conditions Of Use establish the contractual conditions applicable to any subscription by an Advertiser connected to its Personal Account from the Website and Mobile Site.<br></p><h4><b>Acceptance</b></h4><p>Any use of the website by an Advertiser is full acceptance of the current Terms.<br></p><h4><b>Responsibility</b></h4><p>Responsibility for LaraClassifier can not be held liable for non-performance or improper performance of due control, either because of the Advertiser, or a case of major force.<br></p><h4><b>Modification of these terms</b></h4><p>LaraClassifier reserves the right, at any time, to modify all or part of the Terms and Conditions.</p><p>Advertisers are advised to consult the Terms to be aware of the changes.</p><h4><b>Miscellaneous</b></h4><p>If part of the Terms should be illegal, invalid or unenforceable for any reason whatsoever, the provisions in question would be deemed unwritten, without questioning the validity of the remaining provisions will continue to apply between Advertisers and LaraClassifier.</p><p>Any complaints should be addressed to Customer Service LaraClassifier.</p>",
        "external_link": null,
        "name_color": null,
        "title_color": null,
        "target_blank": 0,
        "seo_title": "",
        "seo_description": "",
        "seo_keywords": "",
        "excluded_from_footer": 0,
        "active": 1,
        "lft": 6,
        "rgt": 7,
        "depth": 1,
        "image_url": null
    }
}
 

Request      

GET api/pages/{slugOrId}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

slugOrId   string   

The slug or ID of the page. Example: terms

Payment Methods

List payment methods

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/paymentMethods?countryCode=US&sort=-lft" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/paymentMethods"
);

const params = {
    "countryCode": "US",
    "sort": "-lft",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/paymentMethods';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'countryCode' => 'US',
            'sort' => '-lft',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "data": [
            {
                "id": 1,
                "name": "paypal",
                "display_name": "PayPal",
                "description": "Payment with PayPal",
                "has_ccbox": 0,
                "is_compatible_api": 0,
                "countries": "",
                "active": 1,
                "lft": 0,
                "rgt": 0,
                "depth": 1,
                "parent_id": 0
            },
            {
                "id": 6,
                "name": "paystack",
                "display_name": "Paystack",
                "description": "Payment with Paystack",
                "has_ccbox": 0,
                "is_compatible_api": 0,
                "countries": "",
                "active": 1,
                "lft": 0,
                "rgt": 0,
                "depth": 1,
                "parent_id": 0
            },
            {
                "id": 9,
                "name": "cashfree",
                "display_name": "Cashfree",
                "description": "Payment with Cashfree",
                "has_ccbox": 1,
                "is_compatible_api": 0,
                "countries": "",
                "active": 1,
                "lft": 0,
                "rgt": 0,
                "depth": 1,
                "parent_id": 0
            },
            {
                "id": 10,
                "name": "adyen",
                "display_name": "Adyen",
                "description": "Payment with Adyen",
                "has_ccbox": 1,
                "is_compatible_api": 0,
                "countries": "",
                "active": 1,
                "lft": 0,
                "rgt": 0,
                "depth": 1,
                "parent_id": 0
            },
            {
                "id": 11,
                "name": "flutterwave",
                "display_name": "Flutterwave",
                "description": "Payment with Flutterwave",
                "has_ccbox": 1,
                "is_compatible_api": 0,
                "countries": "",
                "active": 1,
                "lft": 0,
                "rgt": 0,
                "depth": 1,
                "parent_id": 0
            },
            {
                "id": 2,
                "name": "stripe",
                "display_name": "Stripe",
                "description": "Payment with Stripe",
                "has_ccbox": 1,
                "is_compatible_api": 0,
                "countries": "",
                "active": 1,
                "lft": 2,
                "rgt": 2,
                "depth": 1,
                "parent_id": 0
            },
            {
                "id": 3,
                "name": "twocheckout",
                "display_name": "2Checkout",
                "description": "Payment with 2Checkout",
                "has_ccbox": 1,
                "is_compatible_api": 0,
                "countries": "",
                "active": 1,
                "lft": 3,
                "rgt": 3,
                "depth": 1,
                "parent_id": 0
            },
            {
                "id": 7,
                "name": "iyzico",
                "display_name": "iyzico",
                "description": "Payment with iyzico",
                "has_ccbox": 1,
                "is_compatible_api": 0,
                "countries": "",
                "active": 1,
                "lft": 3,
                "rgt": 3,
                "depth": 1,
                "parent_id": 0
            },
            {
                "id": 8,
                "name": "razorpay",
                "display_name": "Razorpay",
                "description": "Payment with Razorpay",
                "has_ccbox": 1,
                "is_compatible_api": 0,
                "countries": "",
                "active": 1,
                "lft": 3,
                "rgt": 3,
                "depth": 1,
                "parent_id": 0
            },
            {
                "id": 4,
                "name": "payu",
                "display_name": "PayU",
                "description": "Payment with PayU",
                "has_ccbox": 0,
                "is_compatible_api": 0,
                "countries": "",
                "active": 1,
                "lft": 4,
                "rgt": 4,
                "depth": 1,
                "parent_id": 0
            },
            {
                "id": 5,
                "name": "offlinepayment",
                "display_name": "Offline Payment",
                "description": null,
                "has_ccbox": 0,
                "is_compatible_api": 1,
                "countries": "",
                "active": 1,
                "lft": 5,
                "rgt": 5,
                "depth": 1,
                "parent_id": 0
            }
        ]
    }
}
 

Request      

GET api/paymentMethods

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

Query Parameters

countryCode   string  optional  

Country code. Select only the payment methods related to a country. Example: US

sort   string  optional  

The sorting parameter (Order by DESC with the given column. Use "-" as prefix to order by ASC). Possible values: lft. Example: -lft

Get payment method

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/paymentMethods/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/paymentMethods/1"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/paymentMethods/1';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": false,
    "message": "Payment method not found",
    "result": null,
    "error": "Payment method not found"
}
 

Request      

GET api/paymentMethods/{id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

id   integer   

Can be the ID (int) or name (string) of the payment method. Example: 1

Payments

List payments

requires authentication

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/payments/promotion?embed=&valid=&active=&sort=created_at&perPage=2" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/payments/promotion"
);

const params = {
    "embed": "",
    "valid": "0",
    "active": "0",
    "sort": "created_at",
    "perPage": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/payments/promotion';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed' => '',
            'valid' => '0',
            'active' => '0',
            'sort' => 'created_at',
            'perPage' => '2',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": false,
    "message": "Unauthenticated or Token Expired, Please Login.",
    "result": null,
    "error": "Unauthenticated or Token Expired, Please Login."
}
 

Request      

GET api/payments/promotion

Headers

Authorization      

Example: Bearer {YOUR_AUTH_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

Query Parameters

embed   string  optional  

Comma-separated list of the payment relationships for Eager Loading - Possible values: payable,paymentMethod,package,currency.

valid   boolean  optional  

Allow getting the valid payment list. Possible value: 0 or 1. Example: false

active   boolean  optional  

Allow getting the active payment list. Possible value: 0 or 1. Example: false

sort   string  optional  

The sorting parameter (Order by DESC with the given column. Use "-" as prefix to order by ASC). Possible values: created_at. Example: created_at

perPage   integer  optional  

Items per page. Can be defined globally from the admin settings. Cannot be exceeded 100. Example: 2

List payments

requires authentication

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/payments/subscription?embed=&valid=&active=&sort=created_at&perPage=2" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/payments/subscription"
);

const params = {
    "embed": "",
    "valid": "0",
    "active": "0",
    "sort": "created_at",
    "perPage": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/payments/subscription';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed' => '',
            'valid' => '0',
            'active' => '0',
            'sort' => 'created_at',
            'perPage' => '2',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": false,
    "message": "Unauthenticated or Token Expired, Please Login.",
    "result": null,
    "error": "Unauthenticated or Token Expired, Please Login."
}
 

Request      

GET api/payments/subscription

Headers

Authorization      

Example: Bearer {YOUR_AUTH_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

Query Parameters

embed   string  optional  

Comma-separated list of the payment relationships for Eager Loading - Possible values: payable,paymentMethod,package,currency.

valid   boolean  optional  

Allow getting the valid payment list. Possible value: 0 or 1. Example: false

active   boolean  optional  

Allow getting the active payment list. Possible value: 0 or 1. Example: false

sort   string  optional  

The sorting parameter (Order by DESC with the given column. Use "-" as prefix to order by ASC). Possible values: created_at. Example: created_at

perPage   integer  optional  

Items per page. Can be defined globally from the admin settings. Cannot be exceeded 100. Example: 2

List payments

requires authentication

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/payments/subscription/users/1/payments?embed=&valid=&active=&sort=created_at&perPage=2" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/payments/subscription/users/1/payments"
);

const params = {
    "embed": "",
    "valid": "0",
    "active": "0",
    "sort": "created_at",
    "perPage": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/payments/subscription/users/1/payments';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed' => '',
            'valid' => '0',
            'active' => '0',
            'sort' => 'created_at',
            'perPage' => '2',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": false,
    "message": "Unauthenticated or Token Expired, Please Login.",
    "result": null,
    "error": "Unauthenticated or Token Expired, Please Login."
}
 

Request      

GET api/payments/subscription/users/{userId}/payments

Headers

Authorization      

Example: Bearer {YOUR_AUTH_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

userId   integer   

Example: 1

Query Parameters

embed   string  optional  

Comma-separated list of the payment relationships for Eager Loading - Possible values: payable,paymentMethod,package,currency.

valid   boolean  optional  

Allow getting the valid payment list. Possible value: 0 or 1. Example: false

active   boolean  optional  

Allow getting the active payment list. Possible value: 0 or 1. Example: false

sort   string  optional  

The sorting parameter (Order by DESC with the given column. Use "-" as prefix to order by ASC). Possible values: created_at. Example: created_at

perPage   integer  optional  

Items per page. Can be defined globally from the admin settings. Cannot be exceeded 100. Example: 2

Get payment

requires authentication

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/payments/2?embed=" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/payments/2"
);

const params = {
    "embed": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/payments/2';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed' => '',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": false,
    "message": "Unauthenticated or Token Expired, Please Login.",
    "result": null,
    "error": "Unauthenticated or Token Expired, Please Login."
}
 

Request      

GET api/payments/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

id   integer   

The payment's ID. Example: 2

Query Parameters

embed   string  optional  

Comma-separated list of the payment relationships for Eager Loading - Possible values: payable,paymentMethod,package,currency.

Store payment

requires authentication

Note: This endpoint is only available for the multi steps form edition.

Example request:
curl --request POST \
    "https://demo.laraclassifier.local/api/payments?package=19" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --data "{
    \"country_code\": \"US\",
    \"payable_id\": 2,
    \"payable_type\": \"Post\",
    \"package_id\": 3,
    \"payment_method_id\": 5
}"
const url = new URL(
    "https://demo.laraclassifier.local/api/payments"
);

const params = {
    "package": "19",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

let body = {
    "country_code": "US",
    "payable_id": 2,
    "payable_type": "Post",
    "package_id": 3,
    "payment_method_id": 5
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/payments';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'package' => '19',
        ],
        'json' => [
            'country_code' => 'US',
            'payable_id' => 2,
            'payable_type' => 'Post',
            'package_id' => 3,
            'payment_method_id' => 5,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/payments

Headers

Authorization      

Example: Bearer {YOUR_AUTH_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

Query Parameters

package   integer  optional  

Selected package ID. Example: 19

Body Parameters

country_code   string   

The code of the user's country. Example: US

payable_id   integer   

The payable's ID (ID of the listing or user). Example: 2

payable_type   string   

The payable model's name - Possible values: Post,User. Example: Post

package_id   integer   

The package's ID (Auto filled when the query parameter 'package' is set). Example: 3

payment_method_id   integer  optional  

The payment method's ID (required when the selected package's price is > 0). Example: 5

Pictures

Get picture

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/pictures/298?embed=" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/pictures/298"
);

const params = {
    "embed": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/pictures/298';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed' => '',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "id": 298,
        "post_id": 95,
        "file_path": "files/us/95/a7706f64414627baffe24827ef84db83.jpg",
        "mime_type": "image/jpeg",
        "position": 1,
        "active": 1,
        "url": {
            "full": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
            "small": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
            "medium": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
            "large": "https://demo.laraclassifier.local/storage/app/default/picture.jpg"
        }
    }
}
 

Request      

GET api/pictures/{id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

id   integer   

The picture's ID. Example: 298

Query Parameters

embed   string  optional  

The list of the picture relationships separated by comma for Eager Loading.

Store picture

requires authentication

Note: This endpoint is only available for the multi steps post edition.

Example request:
curl --request POST \
    "https://demo.laraclassifier.local/api/pictures" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --form "country_code=US"\
    --form "count_packages=3"\
    --form "count_payment_methods=1"\
    --form "post_id=2"\
    --form "pictures[]=@/private/var/folders/r0/k0xbnx757k3fnz09_6g9rp6w0000gn/T/phptpPs99" 
const url = new URL(
    "https://demo.laraclassifier.local/api/pictures"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

const body = new FormData();
body.append('country_code', 'US');
body.append('count_packages', '3');
body.append('count_payment_methods', '1');
body.append('post_id', '2');
body.append('pictures[]', document.querySelector('input[name="pictures[]"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/pictures';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'multipart' => [
            [
                'name' => 'country_code',
                'contents' => 'US'
            ],
            [
                'name' => 'count_packages',
                'contents' => '3'
            ],
            [
                'name' => 'count_payment_methods',
                'contents' => '1'
            ],
            [
                'name' => 'post_id',
                'contents' => '2'
            ],
            [
                'name' => 'pictures[]',
                'contents' => fopen('/private/var/folders/r0/k0xbnx757k3fnz09_6g9rp6w0000gn/T/phptpPs99', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/pictures

Headers

Authorization      

Example: Bearer {YOUR_AUTH_TOKEN}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

Body Parameters

country_code   string   

The code of the user's country. Example: US

count_packages   integer   

The number of available packages. Example: 3

count_payment_methods   integer   

The number of available payment methods. Example: 1

post_id   integer   

The post's ID. Example: 2

pictures   file[]  optional  

The files to upload.

Delete picture

requires authentication

Note: This endpoint is only available for the multi steps form edition. For newly created listings, the post's ID needs to be added in the request input with the key 'new_post_id'. The 'new_post_id' and 'new_post_tmp_token' fields need to be removed or unset during the listing edition steps.

Example request:
curl --request DELETE \
    "https://demo.laraclassifier.local/api/pictures/1" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --data "{
    \"post_id\": 2
}"
const url = new URL(
    "https://demo.laraclassifier.local/api/pictures/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

let body = {
    "post_id": 2
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/pictures/1';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'json' => [
            'post_id' => 2,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

DELETE api/pictures/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

id   integer   

The ID of the picture. Example: 1

Body Parameters

post_id   integer   

The post's ID. Example: 2

Reorder pictures

requires authentication

Note: This endpoint is only available for the multi steps form edition.

Example request:
curl --request POST \
    "https://demo.laraclassifier.local/api/pictures/reorder" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --header "X-Action: bulk" \
    --data "{
    \"post_id\": 2,
    \"body\": \"unde\"
}"
const url = new URL(
    "https://demo.laraclassifier.local/api/pictures/reorder"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
    "X-Action": "bulk",
};

let body = {
    "post_id": 2,
    "body": "unde"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/pictures/reorder';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
            'X-Action' => 'bulk',
        ],
        'json' => [
            'post_id' => 2,
            'body' => 'unde',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/pictures/reorder

Headers

Authorization      

Example: Bearer {YOUR_AUTH_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

X-Action      

Example: bulk

Body Parameters

post_id   integer   

The post's ID. Example: 2

body   string   

Encoded json of the new pictures' positions array [['id' => 2, 'position' => 1], ['id' => 1, 'position' => 2], ...] Example: unde

List pictures

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/posts/9398/pictures?embed=&postId=1&latest=&sort=-position&perPage=2" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/posts/9398/pictures"
);

const params = {
    "embed": "",
    "postId": "1",
    "latest": "0",
    "sort": "-position",
    "perPage": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/posts/9398/pictures';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed' => '',
            'postId' => '1',
            'latest' => '0',
            'sort' => '-position',
            'perPage' => '2',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "data": [
            {
                "id": 1,
                "post_id": 1,
                "file_path": "files/us/1/6914bd9f80bd59bf5a00deab119511a9.jpg",
                "mime_type": "image/jpeg",
                "position": 1,
                "active": 1,
                "url": {
                    "full": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                    "small": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                    "medium": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                    "large": "https://demo.laraclassifier.local/storage/app/default/picture.jpg"
                }
            },
            {
                "id": 2,
                "post_id": 1,
                "file_path": "files/us/1/d6c3199f7c7656e01273b2e7adac1413.jpg",
                "mime_type": "image/jpeg",
                "position": 1,
                "active": 1,
                "url": {
                    "full": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                    "small": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                    "medium": "https://demo.laraclassifier.local/storage/app/default/picture.jpg",
                    "large": "https://demo.laraclassifier.local/storage/app/default/picture.jpg"
                }
            }
        ],
        "links": {
            "first": "https://demo.laraclassifier.local/api/posts/9398/pictures?page=1",
            "last": "https://demo.laraclassifier.local/api/posts/9398/pictures?page=1",
            "prev": null,
            "next": null
        },
        "meta": {
            "current_page": 1,
            "from": 1,
            "last_page": 1,
            "links": [
                {
                    "url": null,
                    "label": "&laquo; Previous",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/posts/9398/pictures?page=1",
                    "label": "1",
                    "active": true
                },
                {
                    "url": null,
                    "label": "Next &raquo;",
                    "active": false
                }
            ],
            "path": "https://demo.laraclassifier.local/api/posts/9398/pictures",
            "per_page": 2,
            "to": 2,
            "total": 2
        }
    }
}
 

Request      

GET api/posts/{postId}/pictures

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

postId   integer   

Example: 9398

Query Parameters

embed   string  optional  

The list of the picture relationships separated by comma for Eager Loading. Possible values: post.

postId   integer  optional  

List of pictures related to a listing (using the listing ID). Example: 1

latest   boolean  optional  

Get only the first picture after ordering (as object instead of collection). Possible value: 0 or 1. Example: false

sort   string  optional  

The sorting parameter (Order by DESC with the given column. Use "-" as prefix to order by ASC). Possible values: position, created_at. Example: -position

perPage   integer  optional  

Items per page. Can be defined globally from the admin settings. Cannot be exceeded 100. Example: 2

Reviews

List reviews

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/plugins/posts/25/reviews" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --data "{
    \"postId\": 2
}"
const url = new URL(
    "https://demo.laraclassifier.local/api/plugins/posts/25/reviews"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

let body = {
    "postId": 2
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/plugins/posts/25/reviews';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'json' => [
            'postId' => 2,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": "No reviews found",
    "result": {
        "data": [],
        "links": {
            "first": "https://demo.laraclassifier.local/api/plugins/posts/25/reviews?page=1",
            "last": "https://demo.laraclassifier.local/api/plugins/posts/25/reviews?page=1",
            "prev": null,
            "next": null
        },
        "meta": {
            "current_page": 1,
            "from": null,
            "last_page": 1,
            "links": [
                {
                    "url": null,
                    "label": "&laquo; Previous",
                    "active": false
                },
                {
                    "url": "https://demo.laraclassifier.local/api/plugins/posts/25/reviews?page=1",
                    "label": "1",
                    "active": true
                },
                {
                    "url": null,
                    "label": "Next &raquo;",
                    "active": false
                }
            ],
            "path": "https://demo.laraclassifier.local/api/plugins/posts/25/reviews",
            "per_page": 10,
            "to": null,
            "total": 0
        }
    }
}
 

Request      

GET api/plugins/posts/{postId}/reviews

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

postId   string   

Example: 25

Body Parameters

postId   integer   

The post's ID. Example: 2

Store review

requires authentication

Example request:
curl --request POST \
    "https://demo.laraclassifier.local/api/plugins/posts/2/reviews" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --data "{
    \"comment\": null,
    \"rating\": 4,
    \"post_id\": null,
    \"user_id\": null,
    \"captcha_key\": \"accusamus\"
}"
const url = new URL(
    "https://demo.laraclassifier.local/api/plugins/posts/2/reviews"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

let body = {
    "comment": null,
    "rating": 4,
    "post_id": null,
    "user_id": null,
    "captcha_key": "accusamus"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/plugins/posts/2/reviews';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'json' => [
            'comment' => null,
            'rating' => 4,
            'post_id' => null,
            'user_id' => null,
            'captcha_key' => 'accusamus',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/plugins/posts/{postId}/reviews

Headers

Authorization      

Example: Bearer {YOUR_AUTH_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

postId   integer   

The listing's ID. Example: 2

Body Parameters

comment   string   

The review's message.

rating   integer   

The review's rating. Example: 4

post_id   integer   

The listing's ID.

user_id   integer  optional  

The logged user's ID.

captcha_key   string  optional  

Key generated by the CAPTCHA endpoint calling (Required when the CAPTCHA verification is enabled from the Admin panel). Example: accusamus

Delete review(s)

requires authentication

NOTE: Let's consider that only the reviews of the same listings can be deleted in bulk.

Example request:
curl --request DELETE \
    "https://demo.laraclassifier.local/api/plugins/posts/2/reviews/voluptas" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/plugins/posts/2/reviews/voluptas"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/plugins/posts/2/reviews/voluptas';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

DELETE api/plugins/posts/{postId}/reviews/{ids}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

postId   integer   

The listing's ID. Example: 2

ids   string   

The ID or comma-separated IDs list of review(s). Example: voluptas

Saved Posts

Store/Delete saved listing

requires authentication

Save a post/listing in favorite, or remove it from favorite.

Example request:
curl --request POST \
    "https://demo.laraclassifier.local/api/savedPosts" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --data "{
    \"post_id\": 2
}"
const url = new URL(
    "https://demo.laraclassifier.local/api/savedPosts"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

let body = {
    "post_id": 2
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/savedPosts';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'json' => [
            'post_id' => 2,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/savedPosts

Headers

Authorization      

Example: Bearer {YOUR_AUTH_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

Body Parameters

post_id   integer   

The post/listing's ID. Example: 2

List saved listings

requires authentication

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/savedPosts?country_code=US&embed=&sort=created_at&perPage=2" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/savedPosts"
);

const params = {
    "country_code": "US",
    "embed": "",
    "sort": "created_at",
    "perPage": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/savedPosts';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'country_code' => 'US',
            'embed' => '',
            'sort' => 'created_at',
            'perPage' => '2',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": false,
    "message": "Unauthenticated or Token Expired, Please Login.",
    "result": null,
    "error": "Unauthenticated or Token Expired, Please Login."
}
 

Request      

GET api/savedPosts

Headers

Authorization      

Example: Bearer {YOUR_AUTH_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

Query Parameters

country_code   string   

The code of the user's country. Example: US

embed   string  optional  

The Comma-separated list of the category relationships for Eager Loading - Possible values: post,city,pictures,user.

sort   string  optional  

The sorting parameter (Order by DESC with the given column. Use "-" as prefix to order by ASC). Possible values: created_at. Example: created_at

perPage   integer  optional  

Items per page. Can be defined globally from the admin settings. Cannot be exceeded 100. Example: 2

Delete saved listing(s)

requires authentication

Example request:
curl --request DELETE \
    "https://demo.laraclassifier.local/api/savedPosts/reprehenderit" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/savedPosts/reprehenderit"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/savedPosts/reprehenderit';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

DELETE api/savedPosts/{ids}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

ids   string   

The ID or comma-separated IDs list of saved post/listing(s). Example: reprehenderit

Saved Searches

Store/Delete saved search

requires authentication

Save a search result in favorite, or remove it from favorite.

Example request:
curl --request POST \
    "https://demo.laraclassifier.local/api/savedSearches" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --data "{
    \"url\": \"https:\\/\\/demo.laraclassifier.com\\/search\\/?q=test&l=\",
    \"count_posts\": 29
}"
const url = new URL(
    "https://demo.laraclassifier.local/api/savedSearches"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

let body = {
    "url": "https:\/\/demo.laraclassifier.com\/search\/?q=test&l=",
    "count_posts": 29
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/savedSearches';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'json' => [
            'url' => 'https://demo.laraclassifier.com/search/?q=test&l=',
            'count_posts' => 29,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/savedSearches

Headers

Authorization      

Example: Bearer {YOUR_AUTH_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

Body Parameters

url   string   

Search URL to save. Example: https://demo.laraclassifier.com/search/?q=test&l=

count_posts   integer   

The number of posts found for the URL. Example: 29

List saved searches

requires authentication

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/savedSearches?embed=&sort=created_at&perPage=2" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/savedSearches"
);

const params = {
    "embed": "",
    "sort": "created_at",
    "perPage": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/savedSearches';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed' => '',
            'sort' => 'created_at',
            'perPage' => '2',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": false,
    "message": "Unauthenticated or Token Expired, Please Login.",
    "result": null,
    "error": "Unauthenticated or Token Expired, Please Login."
}
 

Request      

GET api/savedSearches

Headers

Authorization      

Example: Bearer {YOUR_AUTH_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

Query Parameters

embed   string  optional  

The Comma-separated list of the category relationships for Eager Loading - Possible values: user,country.

sort   string  optional  

The sorting parameter (Order by DESC with the given column. Use "-" as prefix to order by ASC). Possible values: created_at. Example: created_at

perPage   integer  optional  

Items per page. Can be defined globally from the admin settings. Cannot be exceeded 100. Example: 2

Get saved search

requires authentication

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/savedSearches/1?embed=" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/savedSearches/1"
);

const params = {
    "embed": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/savedSearches/1';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed' => '',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": false,
    "message": "Unauthenticated or Token Expired, Please Login.",
    "result": null,
    "error": "Unauthenticated or Token Expired, Please Login."
}
 

Request      

GET api/savedSearches/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

id   integer   

The ID of the saved search. Example: 1

Query Parameters

embed   string  optional  

The Comma-separated list of the category relationships for Eager Loading - Possible values: user,country,pictures,postType,category,city,country.

Delete saved search(es)

requires authentication

Example request:
curl --request DELETE \
    "https://demo.laraclassifier.local/api/savedSearches/velit" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/savedSearches/velit"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/savedSearches/velit';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

DELETE api/savedSearches/{ids}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

ids   string   

The ID or comma-separated IDs list of saved search(es). Example: velit

Settings

List settings

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/settings" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/settings"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/settings';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "app": {
            "app_name": "LaraClassifier",
            "slogan": "Classified Ads Web Application",
            "logo": "app/default/logo.png",
            "dark_mode": "1",
            "favicon": "app/default/ico/favicon.png",
            "show_countries_charts": "1",
            "latest_entries_limit": "10",
            "name": "LaraClassifier",
            "logo_dark": "app/default/logo-dark.png",
            "logo_light": "app/default/logo-light.png",
            "date_format": "YYYY-MM-DD",
            "datetime_format": "YYYY-MM-DD HH:mm",
            "date_from_now_modifier": "DIFF_RELATIVE_TO_NOW",
            "vector_charts_type": "morris_bar",
            "vector_charts_limit": 7,
            "countries_charts_limit": 5,
            "general_settings_as_submenu_in_sidebar": "1",
            "logo_url": "https://demo.laraclassifier.local/storage/app/default/logo.png",
            "logo_dark_url": "https://demo.laraclassifier.local/storage/app/default/logo-dark.png",
            "logo_light_url": "https://demo.laraclassifier.local/storage/app/default/logo-light.png",
            "favicon_url": "https://demo.laraclassifier.local/storage/app/default/ico/favicon.png"
        },
        "style": {
            "skin": "riverside",
            "page_width": "1200",
            "header_sticky": "1",
            "header_height": "60",
            "header_bottom_border_color": "#E8E8E8",
            "admin_logo_bg": "skin3",
            "admin_navbar_bg": "skin6",
            "admin_sidebar_type": "full",
            "admin_sidebar_bg": "skin5",
            "admin_sidebar_position": "1",
            "admin_header_position": "1",
            "logo_width": "216",
            "logo_height": "40",
            "logo_aspect_ratio": "1",
            "login_bg_image_path": "app/default/backend/login_bg_image.jpg",
            "login_bg_image_url": "https://demo.laraclassifier.local/storage/app/default/backend/thumbnails/1500x1500-login_bg_image.jpg"
        },
        "listing_form": {
            "publication_form_type": "2",
            "city_selection": "modal",
            "title_min_length": "2",
            "title_max_length": "150",
            "description_min_length": "5",
            "description_max_length": "6000",
            "picture_mandatory": "1",
            "listings_limit": "50",
            "pictures_limit": "6",
            "tags_limit": "15",
            "tags_min_length": "2",
            "tags_max_length": "30",
            "pricing_page_enabled": "2",
            "default_package_type": "promotion",
            "utf8mb4_enabled": "1",
            "show_listing_type": "1",
            "enable_post_uniqueness": "1",
            "cat_display_type": "c_bigIcon_list",
            "wysiwyg_editor": "tinymce",
            "remove_url_before": "1",
            "remove_url_after": "1",
            "remove_email_after": "1",
            "remove_phone_after": "1"
        },
        "listings_list": {
            "display_browse_listings_link": "1",
            "display_mode": "make-grid",
            "grid_view_cols": "4",
            "fake_locations_results": "1",
            "show_cats_in_top": "1",
            "show_category_icon": "7",
            "show_listings_tags": "1",
            "left_sidebar": "1",
            "max_price": "10000",
            "price_slider_step": "50",
            "date_from_now": "1",
            "enable_cities_autocompletion": "1",
            "cities_extended_searches": "1",
            "distance_calculation_formula": "ST_Distance_Sphere",
            "search_distance_default": "50",
            "search_distance_max": "500",
            "search_distance_interval": "100",
            "premium_first_category": "1",
            "premium_first_location": "1"
        },
        "listing_page": {
            "hide_phone_number": "1",
            "show_security_tips": "1",
            "date_from_now": "1",
            "guests_can_contact_authors": "1",
            "pictures_slider": "swiper-horizontal",
            "similar_listings": "1",
            "show_listing_on_googlemap": "1",
            "activation_facebook_comments": "1"
        },
        "mail": {
            "driver": "smtp",
            "sendmail_path": "/usr/sbin/sendmail -bs",
            "sendmail_email_sender": "noreply@laraclassifier.com",
            "smtp_host": "127.0.0.1",
            "smtp_port": "1025",
            "smtp_email_sender": "noreply@laraclassifier.com",
            "mailgun_email_sender": "noreply@laraclassifier.com",
            "postmark_email_sender": "noreply@laraclassifier.com",
            "ses_email_sender": "noreply@laraclassifier.com",
            "mandrill_email_sender": "noreply@laraclassifier.com",
            "sparkpost_email_sender": "noreply@laraclassifier.com",
            "email_verification": "1",
            "confirmation": "1"
        },
        "sms": {
            "phone_of_countries": "all",
            "driver": "twilio",
            "default_auth_field": "email",
            "phone_validator": "isPossiblePhoneNumber"
        },
        "upload": {
            "file_types": "pdf,doc,docx,rtf,rtx,ppt,pptx,odt,odp,wps,jpg,jpeg,gif,png,bmp,webp,tiff,tif",
            "max_file_size": 1500,
            "image_types": "jpg,jpeg,gif,png,bmp,webp,tiff,tif",
            "image_quality": "90",
            "client_image_types": "jpg,png",
            "max_image_size": 1500,
            "img_resize_width": 1500,
            "img_resize_height": 1500,
            "img_resize_ratio": "1",
            "img_resize_logo_width": 250,
            "img_resize_logo_height": 50,
            "img_resize_logo_ratio": "1",
            "img_resize_cat_width": 70,
            "img_resize_cat_height": 70,
            "img_resize_cat_ratio": "1",
            "img_resize_picture_sm_method": "resizeCanvas",
            "img_resize_picture_sm_width": 120,
            "img_resize_picture_sm_height": 90,
            "img_resize_picture_sm_ratio": "1",
            "img_resize_picture_sm_position": "center",
            "img_resize_picture_sm_bg_color": "#FFFFFF",
            "img_resize_picture_md_method": "fit",
            "img_resize_picture_md_width": 320,
            "img_resize_picture_md_height": 240,
            "img_resize_picture_md_ratio": "1",
            "img_resize_picture_md_position": "center",
            "img_resize_picture_md_bg_color": "#FFFFFF",
            "img_resize_picture_lg_method": "resize",
            "img_resize_picture_lg_width": 816,
            "img_resize_picture_lg_height": 460,
            "img_resize_picture_lg_ratio": "1",
            "img_resize_picture_lg_upsize": "1",
            "img_resize_picture_lg_position": "center",
            "img_resize_picture_lg_bg_color": "#FFFFFF",
            "img_resize_default_method": "resize",
            "img_resize_default_width": 1500,
            "img_resize_default_height": 1500,
            "img_resize_default_ratio": "1",
            "img_resize_default_position": "center",
            "img_resize_default_bgColor": "ffffff",
            "img_resize_logo_method": "resize",
            "img_resize_logo_position": "center",
            "img_resize_logo_bgColor": "rgba(0, 0, 0, 0)",
            "img_resize_logo_max_method": "resize",
            "img_resize_logo_max_width": 430,
            "img_resize_logo_max_height": 80,
            "img_resize_logo_max_ratio": "1",
            "img_resize_logo_max_position": "center",
            "img_resize_logo_max_bgColor": "rgba(0, 0, 0, 0)",
            "img_resize_favicon_method": "resize",
            "img_resize_favicon_width": 32,
            "img_resize_favicon_height": 32,
            "img_resize_favicon_ratio": "1",
            "img_resize_favicon_position": "center",
            "img_resize_favicon_bgColor": "rgba(0, 0, 0, 0)",
            "img_resize_cat_method": "resize",
            "img_resize_cat_position": "center",
            "img_resize_cat_bgColor": "rgba(0, 0, 0, 0)",
            "img_resize_bg_header_method": "resize",
            "img_resize_bg_header_width": 2000,
            "img_resize_bg_header_height": 1000,
            "img_resize_bg_header_ratio": "1",
            "img_resize_bg_header_position": "center",
            "img_resize_bg_header_bgColor": "ffffff",
            "img_resize_bg_body_method": "resize",
            "img_resize_bg_body_width": 2500,
            "img_resize_bg_body_height": 2500,
            "img_resize_bg_body_ratio": "1",
            "img_resize_bg_body_position": "center",
            "img_resize_bg_body_bgColor": "ffffff",
            "img_resize_picture_sm_bgColor": "ffffff",
            "img_resize_picture_md_bgColor": "ffffff",
            "img_resize_picture_lg_bgColor": "ffffff",
            "img_resize_avatar_method": "resize",
            "img_resize_avatar_width": 800,
            "img_resize_avatar_height": 800,
            "img_resize_avatar_ratio": "1",
            "img_resize_avatar_position": "center",
            "img_resize_avatar_bgColor": "ffffff",
            "img_resize_company_logo_method": "resize",
            "img_resize_company_logo_width": 800,
            "img_resize_company_logo_height": 800,
            "img_resize_company_logo_ratio": "1",
            "img_resize_company_logo_position": "center",
            "img_resize_company_logo_bgColor": "rgba(0, 0, 0, 0)"
        },
        "localization": {
            "default_country_code": "US",
            "show_country_flag": "in_next_logo",
            "country_flag_shape": "circle",
            "auto_detect_language": "disabled"
        },
        "security": {
            "csrf_protection": "1",
            "honeypot_enabled": "1",
            "honeypot_name_field_name": "entity_field",
            "honeypot_respond_to_spam_with": "blank_page",
            "honeypot_valid_from_field_name": "valid_field",
            "honeypot_amount_of_seconds": "3",
            "captcha_delay": "1500",
            "recaptcha_version": "v2",
            "login_open_in_modal": "1",
            "login_max_attempts": "5",
            "login_decay_minutes": "15",
            "password_min_length": "6",
            "password_max_length": "60",
            "email_validator_filter": "1"
        },
        "social_auth": {
            "social_login_activation": "1",
            "social_auth_enabled": true,
            "facebook_enabled": true,
            "linkedin_enabled": true,
            "twitter_oauth_1_enabled": true,
            "google_enabled": true
        },
        "social_link": {
            "facebook_page_url": "#",
            "twitter_url": "#",
            "linkedin_url": "#",
            "pinterest_url": "#",
            "instagram_url": "#",
            "tiktok_url": "#",
            "youtube_url": "#",
            "vimeo_url": "#",
            "vk_url": "#"
        },
        "social_share": {
            "facebook": "1",
            "twitter": "1",
            "linkedin": "1",
            "whatsapp": "1",
            "telegram": "1",
            "og_image_width": "1200",
            "og_image_height": "630"
        },
        "optimization": {
            "cache_driver": "file",
            "cache_expiration": "86400",
            "memcached_servers_1_host": "127.0.0.1",
            "memcached_servers_1_port": "11211",
            "queue_driver": "sync",
            "sqs_prefix": "https://sqs.us-east-1.amazonaws.com/your-account-id",
            "sqs_region": "us-east-1",
            "redis_client": "predis",
            "redis_cluster": "predis",
            "redis_host": "127.0.0.1",
            "redis_port": "6379"
        },
        "seo": {
            "google_site_verification": "0Phxx3nIjQwv96P7ysyMT18m1ePCzUJ7TskbZEyj_Ek",
            "robots_txt": "User-agent: *\nDisallow: /",
            "no_index_all": "1",
            "listing_permalink": "{slug}/{hashableId}",
            "listing_hashed_id_enabled": "1",
            "listing_hashed_id_seo_redirection": "1"
        },
        "pagination": {
            "similar_posts_limit": 8,
            "categories_limit": 50,
            "cities_limit": 50,
            "per_page": 10,
            "categories_per_page": 12,
            "cities_per_page": 40,
            "payments_per_page": 10,
            "posts_per_page": 12,
            "saved_posts_per_page": 10,
            "saved_search_per_page": 20,
            "subadmin1_per_page": 39,
            "subadmin2_per_page": 38,
            "subscriptions_per_page": 10,
            "threads_per_page": 20,
            "threads_messages_per_page": 10,
            "reviews_per_page": 10,
            "auto_complete_cities_limit": 25,
            "subadmin1_select_limit": 200,
            "subadmin2_select_limit": 5000,
            "cities_select_limit": 25
        },
        "other": {
            "cookie_consent_enabled": "1",
            "show_tips_messages": "1",
            "googlemaps_key": "AIzaSyD31p7CzP8EQHYBcquZtPm_el66o1xB0HE",
            "simditor_wysiwyg": "1",
            "cookie_expiration": "86400",
            "wysiwyg_editor": "tinymce"
        },
        "cron": {
            "unactivated_listings_expiration": "30",
            "activated_listings_expiration": "30",
            "archived_listings_expiration": "7",
            "manually_archived_listings_expiration": "90"
        },
        "footer": {
            "hide_payment_plugins_logos": "1"
        },
        "backup": {
            "disable_notifications": "1",
            "keep_all_backups_for_days": "7",
            "keep_daily_backups_for_days": "16",
            "keep_weekly_backups_for_weeks": "8",
            "keep_monthly_backups_for_months": "4",
            "keep_yearly_backups_for_years": "2",
            "maximum_storage_in_megabytes": "5000"
        },
        "watermark": {
            "watermark": "app/logo/watermark-66f839497b529.png",
            "width": "150",
            "height": "150",
            "percentage_reduction": "80",
            "opacity": "50",
            "position": "bottom-right",
            "position_x": "20",
            "position_y": "20"
        }
    }
}
 

Request      

GET api/settings

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

Get setting

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/settings/app" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/settings/app"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/settings/app';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "app_name": "LaraClassifier",
        "slogan": "Classified Ads Web Application",
        "logo": "app/default/logo.png",
        "dark_mode": "1",
        "favicon": "app/default/ico/favicon.png",
        "show_countries_charts": "1",
        "latest_entries_limit": "10",
        "name": "LaraClassifier",
        "logo_dark": "app/default/logo-dark.png",
        "logo_light": "app/default/logo-light.png",
        "date_format": "YYYY-MM-DD",
        "datetime_format": "YYYY-MM-DD HH:mm",
        "date_from_now_modifier": "DIFF_RELATIVE_TO_NOW",
        "vector_charts_type": "morris_bar",
        "vector_charts_limit": 7,
        "countries_charts_limit": 5,
        "general_settings_as_submenu_in_sidebar": "1",
        "logo_url": "https://demo.laraclassifier.local/storage/app/default/logo.png",
        "logo_dark_url": "https://demo.laraclassifier.local/storage/app/default/logo-dark.png",
        "logo_light_url": "https://demo.laraclassifier.local/storage/app/default/logo-light.png",
        "favicon_url": "https://demo.laraclassifier.local/storage/app/default/ico/favicon.png"
    }
}
 

Request      

GET api/settings/{key}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

key   string   

The setting's key. Example: app

Social Auth

Get target URL

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/auth/" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/auth/"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/auth/';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": false,
    "message": "API endpoint not found."
}
 

Request      

GET api/auth/{provider}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

provider   string   

The provider's name - Possible values: facebook, linkedin, or google.

Get user info

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/auth//callback" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/auth//callback"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/auth//callback';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": false,
    "message": "API endpoint not found."
}
 

Request      

GET api/auth/{provider}/callback

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

provider   string   

The provider's name - Possible values: facebook, linkedin, or google.

Threads

Store thread

Start a conversation. Creation of a new thread.

Example request:
curl --request POST \
    "https://demo.laraclassifier.local/api/threads" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --form "name=John Doe"\
    --form "auth_field=email"\
    --form "email=john.doe@domain.tld"\
    --form "phone=atque"\
    --form "phone_country="\
    --form "body=Modi temporibus voluptas expedita voluptatibus voluptas veniam."\
    --form "post_id=2"\
    --form "captcha_key=mollitia"\
    --form "file_path=@/private/var/folders/r0/k0xbnx757k3fnz09_6g9rp6w0000gn/T/phpTA6lTR" 
const url = new URL(
    "https://demo.laraclassifier.local/api/threads"
);

const headers = {
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
};

const body = new FormData();
body.append('name', 'John Doe');
body.append('auth_field', 'email');
body.append('email', 'john.doe@domain.tld');
body.append('phone', 'atque');
body.append('phone_country', '');
body.append('body', 'Modi temporibus voluptas expedita voluptatibus voluptas veniam.');
body.append('post_id', '2');
body.append('captcha_key', 'mollitia');
body.append('file_path', document.querySelector('input[name="file_path"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/threads';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
        ],
        'multipart' => [
            [
                'name' => 'name',
                'contents' => 'John Doe'
            ],
            [
                'name' => 'auth_field',
                'contents' => 'email'
            ],
            [
                'name' => 'email',
                'contents' => 'john.doe@domain.tld'
            ],
            [
                'name' => 'phone',
                'contents' => 'atque'
            ],
            [
                'name' => 'phone_country',
                'contents' => ''
            ],
            [
                'name' => 'body',
                'contents' => 'Modi temporibus voluptas expedita voluptatibus voluptas veniam.'
            ],
            [
                'name' => 'post_id',
                'contents' => '2'
            ],
            [
                'name' => 'captcha_key',
                'contents' => 'mollitia'
            ],
            [
                'name' => 'file_path',
                'contents' => fopen('/private/var/folders/r0/k0xbnx757k3fnz09_6g9rp6w0000gn/T/phpTA6lTR', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/threads

Headers

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

Authorization      

Example: Bearer {YOUR_AUTH_TOKEN}

Body Parameters

name   string   

The thread's creator name. Example: John Doe

auth_field   string   

The user's auth field ('email' or 'phone'). Example: email

email   string  optional  

The thread's creator email address (Required when 'auth_field' value is 'email'). Example: john.doe@domain.tld

phone   string  optional  

The thread's creator mobile phone number (Required when 'auth_field' value is 'phone'). Example: atque

phone_country   string   

The user's phone number's country code (Required when the 'phone' field is filled).

body   string   

The name of the user. Example: Modi temporibus voluptas expedita voluptatibus voluptas veniam.

post_id   integer   

The related post ID. Example: 2

file_path   file  optional  

The thread attached file. Example: /private/var/folders/r0/k0xbnx757k3fnz09_6g9rp6w0000gn/T/phpTA6lTR

captcha_key   string  optional  

Key generated by the CAPTCHA endpoint calling (Required when the CAPTCHA verification is enabled from the Admin panel). Example: mollitia

List threads

requires authentication

Get all logged user's threads. Filters:

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/threads?filter=unread&embed=&perPage=2" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/threads"
);

const params = {
    "filter": "unread",
    "embed": "",
    "perPage": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/threads';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'filter' => 'unread',
            'embed' => '',
            'perPage' => '2',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": false,
    "message": "Unauthenticated or Token Expired, Please Login.",
    "result": null,
    "error": "Unauthenticated or Token Expired, Please Login."
}
 

Request      

GET api/threads

Headers

Authorization      

Example: Bearer {YOUR_AUTH_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

Query Parameters

filter   string  optional  

Filter for the list - Possible value: unread, started or important. Example: unread

embed   string  optional  

Comma-separated list of the post relationships for Eager Loading - Possible values: post.

perPage   integer  optional  

Items per page. Can be defined globally from the admin settings. Cannot be exceeded 100. Example: 2

Get thread

requires authentication

Get a thread (owned by the logged user) details

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/threads/8?embed=" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/threads/8"
);

const params = {
    "embed": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/threads/8';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed' => '',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": false,
    "message": "Unauthenticated or Token Expired, Please Login.",
    "result": null,
    "error": "Unauthenticated or Token Expired, Please Login."
}
 

Request      

GET api/threads/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

id   integer   

The thread's ID. Example: 8

Query Parameters

embed   string  optional  

Comma-separated list of the post relationships for Eager Loading - Possible values: user,post,messages,participants.

Update thread

requires authentication

Example request:
curl --request PUT \
    "https://demo.laraclassifier.local/api/threads/12" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --form "body=Modi temporibus voluptas expedita voluptatibus voluptas veniam."\
    --form "file_path=@/private/var/folders/r0/k0xbnx757k3fnz09_6g9rp6w0000gn/T/phpZBMzUI" 
const url = new URL(
    "https://demo.laraclassifier.local/api/threads/12"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

const body = new FormData();
body.append('body', 'Modi temporibus voluptas expedita voluptatibus voluptas veniam.');
body.append('file_path', document.querySelector('input[name="file_path"]').files[0]);

fetch(url, {
    method: "PUT",
    headers,
    body,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/threads/12';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'multipart' => [
            [
                'name' => 'body',
                'contents' => 'Modi temporibus voluptas expedita voluptatibus voluptas veniam.'
            ],
            [
                'name' => 'file_path',
                'contents' => fopen('/private/var/folders/r0/k0xbnx757k3fnz09_6g9rp6w0000gn/T/phpZBMzUI', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

PUT api/threads/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_TOKEN}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

id   string   

The ID of the thread. Example: 12

Body Parameters

body   string   

The name of the user. Example: Modi temporibus voluptas expedita voluptatibus voluptas veniam.

file_path   file  optional  

The thread attached file. Example: /private/var/folders/r0/k0xbnx757k3fnz09_6g9rp6w0000gn/T/phpZBMzUI

Delete thread(s)

requires authentication

Example request:
curl --request DELETE \
    "https://demo.laraclassifier.local/api/threads/modi" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/threads/modi"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/threads/modi';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

DELETE api/threads/{ids}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

ids   string   

The ID or comma-separated IDs list of thread(s). Example: modi

Bulk updates

requires authentication

Example request:
curl --request POST \
    "https://demo.laraclassifier.local/api/threads/bulkUpdate/tempora?type=ipsa" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/threads/bulkUpdate/tempora"
);

const params = {
    "type": "ipsa",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/threads/bulkUpdate/tempora';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'type' => 'ipsa',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/threads/bulkUpdate/{ids?}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

ids   string   

The ID or comma-separated IDs list of thread(s). Example: tempora

Query Parameters

type   string   

The type of action to execute (markAsRead, markAsUnread, markAsImportant, markAsNotImportant or markAllAsRead). Example: ipsa

List messages

requires authentication

Get all thread's messages

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/threads/293/messages?embed=&sort=created_at&perPage=2" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/threads/293/messages"
);

const params = {
    "embed": "",
    "sort": "created_at",
    "perPage": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/threads/293/messages';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed' => '',
            'sort' => 'created_at',
            'perPage' => '2',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": false,
    "message": "Unauthenticated or Token Expired, Please Login.",
    "result": null,
    "error": "Unauthenticated or Token Expired, Please Login."
}
 

Request      

GET api/threads/{threadId}/messages

Headers

Authorization      

Example: Bearer {YOUR_AUTH_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

threadId   integer   

The thread's ID. Example: 293

Query Parameters

embed   string  optional  

Comma-separated list of the post relationships for Eager Loading - Possible values: user.

sort   string  optional  

The sorting parameter (Order by DESC with the given column. Use "-" as prefix to order by ASC). Possible values: created_at. Example: created_at

perPage   integer  optional  

Items per page. Can be defined globally from the admin settings. Cannot be exceeded 100. Example: 2

Get message

requires authentication

Get a thread's message (owned by the logged user) details

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/threads/293/messages/3545?embed=" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/threads/293/messages/3545"
);

const params = {
    "embed": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/threads/293/messages/3545';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed' => '',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": false,
    "message": "Unauthenticated or Token Expired, Please Login.",
    "result": null,
    "error": "Unauthenticated or Token Expired, Please Login."
}
 

Request      

GET api/threads/{threadId}/messages/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

threadId   integer   

The thread's ID. Example: 293

id   integer   

The thread's message's ID. Example: 3545

Query Parameters

embed   string  optional  

Comma-separated list of the post relationships for Eager Loading - Possible values: thread,user.

Users

List genders

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/genders" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/genders"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/genders';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "1": {
            "id": 1,
            "name": "MALE",
            "label": "Male",
            "title": "Mr."
        },
        "2": {
            "id": 2,
            "name": "FEMALE",
            "label": "Female",
            "title": "Mrs"
        }
    }
}
 

Request      

GET api/genders

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

Get gender

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/genders/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/genders/1"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/genders/1';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "id": 1,
        "name": "MALE",
        "label": "Male",
        "title": "Mr."
    }
}
 

Request      

GET api/genders/{id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

id   integer   

The gender's ID. Example: 1

List user types

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/userTypes" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/userTypes"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/userTypes';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "2": {
            "id": 2,
            "name": "INDIVIDUAL",
            "label": "Individual"
        },
        "1": {
            "id": 1,
            "name": "PROFESSIONAL",
            "label": "Professional"
        }
    }
}
 

Request      

GET api/userTypes

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

Get user type

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/userTypes/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/userTypes/1"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/userTypes/1';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "id": 1,
        "name": "PROFESSIONAL",
        "label": "Professional"
    }
}
 

Request      

GET api/userTypes/{id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

id   integer   

The user type's ID. Example: 1

List users

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/users" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/users"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/users';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (403):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": false,
    "message": "Forbidden",
    "result": null
}
 

Request      

GET api/users

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

Get user

requires authentication

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/users/3?embed=" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/users/3"
);

const params = {
    "embed": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/users/3';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'embed' => '',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": true,
    "message": null,
    "result": {
        "id": 3,
        "name": "User Demo",
        "username": null,
        "updated_at": "2024-07-04T17:04:35.000000Z",
        "original_updated_at": "2024-07-04 17:04:35",
        "original_last_activity": null,
        "created_at_formatted": "Apr 30th, 2024 at 23:02",
        "photo_url": "https://demo.laraclassifier.local/storage/avatars/us/3/thumbnails/800x800-88e9ab5e56578a08fde46348ce6e8100.jpg",
        "p_is_online": false,
        "country_flag_url": "https://demo.laraclassifier.local/images/flags/circle/16/us.png"
    }
}
 

Request      

GET api/users/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

id   integer   

The user's ID. Example: 3

Query Parameters

embed   string  optional  

Comma-separated list of the post relationships for Eager Loading - Possible values: country,userType,gender,countPostsViews,countPosts,countSavedPosts.

Store user

Example request:
curl --request POST \
    "https://demo.laraclassifier.local/api/users" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --form "name=John Doe"\
    --form "country_code=US"\
    --form "auth_field=email"\
    --form "phone=+17656766467"\
    --form "phone_country="\
    --form "password=js!X07$z61hLA"\
    --form "accept_terms=1"\
    --form "email=john.doe@domain.tld"\
    --form "language_code=en"\
    --form "user_type_id=1"\
    --form "gender_id=1"\
    --form "phone_hidden="\
    --form "username=john_doe"\
    --form "password_confirmation=js!X07$z61hLA"\
    --form "disable_comments=1"\
    --form "create_from_ip=127.0.0.1"\
    --form "accept_marketing_offers="\
    --form "time_zone=America/New_York"\
    --form "captcha_key=qui"\
    --form "photo_path=@/private/var/folders/r0/k0xbnx757k3fnz09_6g9rp6w0000gn/T/php9diwSR" 
const url = new URL(
    "https://demo.laraclassifier.local/api/users"
);

const headers = {
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

const body = new FormData();
body.append('name', 'John Doe');
body.append('country_code', 'US');
body.append('auth_field', 'email');
body.append('phone', '+17656766467');
body.append('phone_country', '');
body.append('password', 'js!X07$z61hLA');
body.append('accept_terms', '1');
body.append('email', 'john.doe@domain.tld');
body.append('language_code', 'en');
body.append('user_type_id', '1');
body.append('gender_id', '1');
body.append('phone_hidden', '');
body.append('username', 'john_doe');
body.append('password_confirmation', 'js!X07$z61hLA');
body.append('disable_comments', '1');
body.append('create_from_ip', '127.0.0.1');
body.append('accept_marketing_offers', '');
body.append('time_zone', 'America/New_York');
body.append('captcha_key', 'qui');
body.append('photo_path', document.querySelector('input[name="photo_path"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/users';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'multipart' => [
            [
                'name' => 'name',
                'contents' => 'John Doe'
            ],
            [
                'name' => 'country_code',
                'contents' => 'US'
            ],
            [
                'name' => 'auth_field',
                'contents' => 'email'
            ],
            [
                'name' => 'phone',
                'contents' => '+17656766467'
            ],
            [
                'name' => 'phone_country',
                'contents' => ''
            ],
            [
                'name' => 'password',
                'contents' => 'js!X07$z61hLA'
            ],
            [
                'name' => 'accept_terms',
                'contents' => '1'
            ],
            [
                'name' => 'email',
                'contents' => 'john.doe@domain.tld'
            ],
            [
                'name' => 'language_code',
                'contents' => 'en'
            ],
            [
                'name' => 'user_type_id',
                'contents' => '1'
            ],
            [
                'name' => 'gender_id',
                'contents' => '1'
            ],
            [
                'name' => 'phone_hidden',
                'contents' => ''
            ],
            [
                'name' => 'username',
                'contents' => 'john_doe'
            ],
            [
                'name' => 'password_confirmation',
                'contents' => 'js!X07$z61hLA'
            ],
            [
                'name' => 'disable_comments',
                'contents' => '1'
            ],
            [
                'name' => 'create_from_ip',
                'contents' => '127.0.0.1'
            ],
            [
                'name' => 'accept_marketing_offers',
                'contents' => ''
            ],
            [
                'name' => 'time_zone',
                'contents' => 'America/New_York'
            ],
            [
                'name' => 'captcha_key',
                'contents' => 'qui'
            ],
            [
                'name' => 'photo_path',
                'contents' => fopen('/private/var/folders/r0/k0xbnx757k3fnz09_6g9rp6w0000gn/T/php9diwSR', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/users

Headers

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

Body Parameters

name   string   

The name of the user. Example: John Doe

country_code   string   

The code of the user's country. Example: US

auth_field   string   

The user's auth field ('email' or 'phone'). Example: email

phone   string  optional  

The mobile phone number of the user (Required when 'auth_field' value is 'phone'). Example: +17656766467

phone_country   string   

The user's phone number's country code (Required when the 'phone' field is filled).

password   string   

The user's password. Example: js!X07$z61hLA

accept_terms   boolean   

Field to allow user to accept or not the website terms. Example: true

email   string  optional  

The user's email address (Required when 'auth_field' value is 'email'). Example: john.doe@domain.tld

language_code   string  optional  

The code of the user's spoken language. Example: en

user_type_id   integer  optional  

The ID of user type. Example: 1

gender_id   integer  optional  

The ID of gender. Example: 1

photo_path   file  optional  

The file of user photo. Example: /private/var/folders/r0/k0xbnx757k3fnz09_6g9rp6w0000gn/T/php9diwSR

phone_hidden   boolean  optional  

Field to hide or show the user phone number in public. Example: false

username   string  optional  

The user's username. Example: john_doe

password_confirmation   string   

The confirmation of the user's password. Example: js!X07$z61hLA

disable_comments   boolean  optional  

Field to disable or enable comments on the user's listings. Example: true

create_from_ip   string   

The user's IP address. Example: 127.0.0.1

accept_marketing_offers   boolean  optional  

Field to allow user to accept or not marketing offers sending. Example: false

time_zone   string  optional  

The user's time zone. Example: America/New_York

captcha_key   string  optional  

Key generated by the CAPTCHA endpoint calling (Required when the CAPTCHA verification is enabled from the Admin panel). Example: qui

User's mini stats

requires authentication

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/users/3/stats" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/users/3/stats"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/users/3/stats';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": false,
    "message": "Unauthenticated or Token Expired, Please Login.",
    "result": null,
    "error": "Unauthenticated or Token Expired, Please Login."
}
 

Request      

GET api/users/{id}/stats

Headers

Authorization      

Example: Bearer {YOUR_AUTH_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

id   integer   

The user's ID. Example: 3

Delete user's photo

requires authentication

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/users/1/photo/delete" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/users/1/photo/delete"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/users/1/photo/delete';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": false,
    "message": "Unauthenticated or Token Expired, Please Login.",
    "result": null,
    "error": "Unauthenticated or Token Expired, Please Login."
}
 

Request      

GET api/users/{id}/photo/delete

Headers

Authorization      

Example: Bearer {YOUR_AUTH_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

id   integer   

The ID of the user. Example: 1

userId   integer   

The user's ID. Example: 3

Update user's photo

requires authentication

Example request:
curl --request PUT \
    "https://demo.laraclassifier.local/api/users/1/photo" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --form "latest_update_ip=127.0.0.1"\
    --form "photo_path=@/private/var/folders/r0/k0xbnx757k3fnz09_6g9rp6w0000gn/T/php7BAJJI" 
const url = new URL(
    "https://demo.laraclassifier.local/api/users/1/photo"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

const body = new FormData();
body.append('latest_update_ip', '127.0.0.1');
body.append('photo_path', document.querySelector('input[name="photo_path"]').files[0]);

fetch(url, {
    method: "PUT",
    headers,
    body,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/users/1/photo';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'multipart' => [
            [
                'name' => 'latest_update_ip',
                'contents' => '127.0.0.1'
            ],
            [
                'name' => 'photo_path',
                'contents' => fopen('/private/var/folders/r0/k0xbnx757k3fnz09_6g9rp6w0000gn/T/php7BAJJI', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

PUT api/users/{id}/photo

Headers

Authorization      

Example: Bearer {YOUR_AUTH_TOKEN}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

id   integer   

The ID of the user. Example: 1

userId   integer   

The user's ID. Example: 3

Body Parameters

photo_path   file   

Must be a file. Must be at least 0 kilobytes. Must not be greater than 1500 kilobytes. Example: /private/var/folders/r0/k0xbnx757k3fnz09_6g9rp6w0000gn/T/php7BAJJI

latest_update_ip   string   

The user's IP address. Example: 127.0.0.1

Update user's settings

requires authentication

Example request:
curl --request PUT \
    "https://demo.laraclassifier.local/api/users/1/settings" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --data "{
    \"password\": \"js!X07$z61hLA\",
    \"password_confirmation\": \"js!X07$z61hLA\",
    \"disable_comments\": true,
    \"latest_update_ip\": \"127.0.0.1\",
    \"accept_terms\": true,
    \"accept_marketing_offers\": false,
    \"time_zone\": \"America\\/New_York\"
}"
const url = new URL(
    "https://demo.laraclassifier.local/api/users/1/settings"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

let body = {
    "password": "js!X07$z61hLA",
    "password_confirmation": "js!X07$z61hLA",
    "disable_comments": true,
    "latest_update_ip": "127.0.0.1",
    "accept_terms": true,
    "accept_marketing_offers": false,
    "time_zone": "America\/New_York"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/users/1/settings';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'json' => [
            'password' => 'js!X07$z61hLA',
            'password_confirmation' => 'js!X07$z61hLA',
            'disable_comments' => true,
            'latest_update_ip' => '127.0.0.1',
            'accept_terms' => true,
            'accept_marketing_offers' => false,
            'time_zone' => 'America/New_York',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

PUT api/users/{id}/settings

Headers

Authorization      

Example: Bearer {YOUR_AUTH_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

id   integer   

The ID of the user. Example: 1

Body Parameters

password   string   

The user's password. Example: js!X07$z61hLA

password_confirmation   string   

The confirmation of the user's password. Example: js!X07$z61hLA

disable_comments   boolean  optional  

Field to disable or enable comments on the user's listings. Example: true

latest_update_ip   string   

The user's IP address. Example: 127.0.0.1

accept_terms   boolean   

Field to allow user to accept or not the website terms. Example: true

accept_marketing_offers   boolean  optional  

Field to allow user to accept or not marketing offers sending. Example: false

time_zone   string  optional  

The user's time zone. Example: America/New_York

Update the user's dark mode option

Example request:
curl --request PUT \
    "https://demo.laraclassifier.local/api/users/1/dark-mode" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/users/1/dark-mode"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/users/1/dark-mode';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

PUT api/users/{id}/dark-mode

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

id   integer   

The ID of the user. Example: 1

Update user

requires authentication

Example request:
curl --request PUT \
    "https://demo.laraclassifier.local/api/users/1" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs" \
    --form "name=John Doe"\
    --form "auth_field=email"\
    --form "phone=+17656766467"\
    --form "phone_country="\
    --form "username=john_doe"\
    --form "email=john.doe@domain.tld"\
    --form "country_code=US"\
    --form "language_code=en"\
    --form "user_type_id=1"\
    --form "gender_id=1"\
    --form "remove_photo=0"\
    --form "phone_hidden="\
    --form "password=js!X07$z61hLA"\
    --form "password_confirmation=js!X07$z61hLA"\
    --form "disable_comments=1"\
    --form "latest_update_ip=127.0.0.1"\
    --form "accept_terms=1"\
    --form "accept_marketing_offers="\
    --form "time_zone=America/New_York"\
    --form "photo_path=@/private/var/folders/r0/k0xbnx757k3fnz09_6g9rp6w0000gn/T/php8hStK9" 
const url = new URL(
    "https://demo.laraclassifier.local/api/users/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

const body = new FormData();
body.append('name', 'John Doe');
body.append('auth_field', 'email');
body.append('phone', '+17656766467');
body.append('phone_country', '');
body.append('username', 'john_doe');
body.append('email', 'john.doe@domain.tld');
body.append('country_code', 'US');
body.append('language_code', 'en');
body.append('user_type_id', '1');
body.append('gender_id', '1');
body.append('remove_photo', '0');
body.append('phone_hidden', '');
body.append('password', 'js!X07$z61hLA');
body.append('password_confirmation', 'js!X07$z61hLA');
body.append('disable_comments', '1');
body.append('latest_update_ip', '127.0.0.1');
body.append('accept_terms', '1');
body.append('accept_marketing_offers', '');
body.append('time_zone', 'America/New_York');
body.append('photo_path', document.querySelector('input[name="photo_path"]').files[0]);

fetch(url, {
    method: "PUT",
    headers,
    body,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/users/1';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'multipart' => [
            [
                'name' => 'name',
                'contents' => 'John Doe'
            ],
            [
                'name' => 'auth_field',
                'contents' => 'email'
            ],
            [
                'name' => 'phone',
                'contents' => '+17656766467'
            ],
            [
                'name' => 'phone_country',
                'contents' => ''
            ],
            [
                'name' => 'username',
                'contents' => 'john_doe'
            ],
            [
                'name' => 'email',
                'contents' => 'john.doe@domain.tld'
            ],
            [
                'name' => 'country_code',
                'contents' => 'US'
            ],
            [
                'name' => 'language_code',
                'contents' => 'en'
            ],
            [
                'name' => 'user_type_id',
                'contents' => '1'
            ],
            [
                'name' => 'gender_id',
                'contents' => '1'
            ],
            [
                'name' => 'remove_photo',
                'contents' => '0'
            ],
            [
                'name' => 'phone_hidden',
                'contents' => ''
            ],
            [
                'name' => 'password',
                'contents' => 'js!X07$z61hLA'
            ],
            [
                'name' => 'password_confirmation',
                'contents' => 'js!X07$z61hLA'
            ],
            [
                'name' => 'disable_comments',
                'contents' => '1'
            ],
            [
                'name' => 'latest_update_ip',
                'contents' => '127.0.0.1'
            ],
            [
                'name' => 'accept_terms',
                'contents' => '1'
            ],
            [
                'name' => 'accept_marketing_offers',
                'contents' => ''
            ],
            [
                'name' => 'time_zone',
                'contents' => 'America/New_York'
            ],
            [
                'name' => 'photo_path',
                'contents' => fopen('/private/var/folders/r0/k0xbnx757k3fnz09_6g9rp6w0000gn/T/php8hStK9', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

PUT api/users/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_TOKEN}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

id   integer   

The ID of the user. Example: 1

Body Parameters

name   string   

The name of the user. Example: John Doe

auth_field   string   

The user's auth field ('email' or 'phone'). Example: email

phone   string  optional  

The mobile phone number of the user (Required when 'auth_field' value is 'phone'). Example: +17656766467

phone_country   string   

The user's phone number's country code (Required when the 'phone' field is filled).

username   string  optional  

The user's username. Example: john_doe

email   string   

The user's email address (Required when 'auth_field' value is 'email'). Example: john.doe@domain.tld

country_code   string   

The code of the user's country. Example: US

language_code   string  optional  

The code of the user's spoken language. Example: en

user_type_id   integer  optional  

The ID of user type. Example: 1

gender_id   integer  optional  

The ID of gender. Example: 1

photo_path   file  optional  

The file of user photo. Example: /private/var/folders/r0/k0xbnx757k3fnz09_6g9rp6w0000gn/T/php8hStK9

remove_photo   integer  optional  

Enable the user photo removal ('0' or '1'). When its value is '1' the user's photo file will be removed and the 'photo_path' column will be empty. Example: 0

phone_hidden   boolean  optional  

Field to hide or show the user phone number in public. Example: false

password   string   

The user's password. Example: js!X07$z61hLA

password_confirmation   string   

The confirmation of the user's password. Example: js!X07$z61hLA

disable_comments   boolean  optional  

Field to disable or enable comments on the user's listings. Example: true

latest_update_ip   string   

The user's IP address. Example: 127.0.0.1

accept_terms   boolean   

Field to allow user to accept or not the website terms. Example: true

accept_marketing_offers   boolean  optional  

Field to allow user to accept or not marketing offers sending. Example: false

time_zone   string  optional  

The user's time zone. Example: America/New_York

Delete user

requires authentication

Example request:
curl --request DELETE \
    "https://demo.laraclassifier.local/api/users/1" \
    --header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/users/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/users/1';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

DELETE api/users/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

id   integer   

The ID of the user. Example: 1

Email: Re-send link

Re-send email verification link to the user

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/users/1/verify/resend/email?entitySlug=users" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/users/1/verify/resend/email"
);

const params = {
    "entitySlug": "users",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/users/1/verify/resend/email';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'entitySlug' => 'users',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": false,
    "message": "Your Email Address is already verified.",
    "result": null,
    "extra": {
        "emailVerificationSent": false
    }
}
 

Request      

GET api/users/{id}/verify/resend/email

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

id   integer   

The ID of the user. Example: 1

entityId   integer  optional  

The entity/model identifier (ID).

Query Parameters

entitySlug   string  optional  

The slug of the entity to verify ('users' or 'posts'). Example: users

SMS: Re-send code

Re-send mobile phone verification token by SMS

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/users/1/verify/resend/sms?entitySlug=users" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/users/1/verify/resend/sms"
);

const params = {
    "entitySlug": "users",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/users/1/verify/resend/sms';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'entitySlug' => 'users',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": false,
    "message": "Your Phone Number is already verified.",
    "result": null,
    "extra": {
        "phoneVerificationSent": false
    }
}
 

Request      

GET api/users/{id}/verify/resend/sms

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

id   integer   

The ID of the user. Example: 1

entityId   integer  optional  

The entity/model identifier (ID).

Query Parameters

entitySlug   string  optional  

The slug of the entity to verify ('users' or 'posts'). Example: users

Verification

Verify the user's email address or mobile phone number

Example request:
curl --request GET \
    --get "https://demo.laraclassifier.local/api/users/verify/email/?entitySlug=users" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "Content-Language: en" \
    --header "X-AppApiToken: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=" \
    --header "X-AppType: docs"
const url = new URL(
    "https://demo.laraclassifier.local/api/users/verify/email/"
);

const params = {
    "entitySlug": "users",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Content-Language": "en",
    "X-AppApiToken": "Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=",
    "X-AppType": "docs",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://demo.laraclassifier.local/api/users/verify/email/';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Content-Language' => 'en',
            'X-AppApiToken' => 'Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=',
            'X-AppType' => 'docs',
        ],
        'query' => [
            'entitySlug' => 'users',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (400):

Show headers
content-type: application/json; charset=UTF-8
cache-control: no-cache, private
vary: Origin
 

{
    "success": false,
    "message": "The token or code to verify is empty.",
    "result": null
}
 

Request      

GET api/users/verify/{field}/{token?}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Content-Language      

Example: en

X-AppApiToken      

Example: Uk1DSFlVUVhIRXpHbWt6d2pIZjlPTG15akRPN2tJTUs=

X-AppType      

Example: docs

URL Parameters

field   string   

The field to verify. Example: email

token   string  optional  

The verification token.

Query Parameters

entitySlug   string  optional  

The slug of the entity to verify ('users' or 'posts'). Example: users