MENU navbar-image

Introduction

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

Base URL

https://demo.icore.intelekt.net.pl

Authenticating requests

This API is authenticated by sending an Authorization header with the value "Bearer {YOUR_ACCESS_TOKEN}" or by sending cookie session credentials with Referer/Origin header from stateful domain.

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

You can retrieve your token by visiting tokens tab in your profile and clicking Create API token or sending authentication request via API.

Authenticated user

Routes:

/routes/vendor/icore/api/user.php

Controller:

N1ebieski\ICore\Http\Controllers\Api\Auth\UserController

Show user

requires authentication

Show authenticated User resource

Example request:
curl --request GET \
    --get "https://demo.icore.intelekt.net.pl/api/user" \
    --header "Authorization: Bearer {YOUR_ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://demo.icore.intelekt.net.pl/api/user"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://demo.icore.intelekt.net.pl/api/user',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://demo.icore.intelekt.net.pl/api/user'
headers = {
  'Authorization': 'Bearer {YOUR_ACCESS_TOKEN}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "data": {
        "id": 117,
        "name": "Petra Lang",
        "status": {
            "value": 1,
            "label": "active"
        },
        "created_at": "2022-10-06T12:22:25.000000Z",
        "updated_at": "2022-10-06T12:22:25.000000Z",
        "roles": [
            {
                "id": 3,
                "name": "user",
                "created_at": "2021-01-06T17:27:36.000000Z",
                "updated_at": "2022-04-23T22:28:13.000000Z"
            }
        ]
    }
}
 

Request      

GET api/user

Response

Response Fields

id  integer  

name  string  

ip  string  

(available only for admin.users.view).

email  string  

(available only for admin.users.view or owner).

status  object  

Contains int value and string label

marketing  object  

Email marketing consent, contains int value and string label (available only for admin.users.view or owner).

created_at  string  

updated_at  string  

roles  object[]  

Contains relationships Roles.

socialites  object[]  

Contains relationships Socialites (available only for admin.users.view or owner).

Authentication

Routes:

/routes/vendor/icore/api/auth.php

Controllers:

N1ebieski\ICore\Http\Controllers\Api\Auth\RegisterController
N1ebieski\ICore\Http\Controllers\Api\Auth\TokenController

Token

Create access token and (optional) refresh token.

Example request:
curl --request POST \
    "https://demo.icore.intelekt.net.pl/api/token" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"kontakt@demo.icore.intelekt.net.pl\",
    \"password\": \"demo1234\",
    \"remember\": true
}"
const url = new URL(
    "https://demo.icore.intelekt.net.pl/api/token"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "email": "kontakt@demo.icore.intelekt.net.pl",
    "password": "demo1234",
    "remember": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.icore.intelekt.net.pl/api/token',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'email' => 'kontakt@demo.icore.intelekt.net.pl',
            'password' => 'demo1234',
            'remember' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://demo.icore.intelekt.net.pl/api/token'
payload = {
    "email": "kontakt@demo.icore.intelekt.net.pl",
    "password": "demo1234",
    "remember": true
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (201, success):


{
    "access_token": "1|LN8Gmqe6cRHQpPr5X5GW9wFXuqHVK09L8FSb7Ju9",
    "refresh_token": "2|hVHAhrgiBmSbyYjbVAC17wjwAJyKK8TQmhglBAtM"
}
 

Request      

POST api/token

Body Parameters

email  string  

password  string  

remember  boolean optional  

Response

Response Fields

access_token  string  

refresh_token  string  

(only if remember param was true)

Refresh token

requires authentication

Create new access token and refresh token.

Example request:
curl --request POST \
    "https://demo.icore.intelekt.net.pl/api/refresh" \
    --header "Authorization: Bearer {YOUR_REFRESH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://demo.icore.intelekt.net.pl/api/refresh"
);

const headers = {
    "Authorization": "Bearer {YOUR_REFRESH_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.icore.intelekt.net.pl/api/refresh',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_REFRESH_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://demo.icore.intelekt.net.pl/api/refresh'
headers = {
  'Authorization': 'Bearer {YOUR_REFRESH_TOKEN}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Example response (201, success):


{
    "access_token": "3|LN8Gmqe6cRHQpPr5X5GW9wFXuqHVK09L8FSb7Ju9",
    "refresh_token": "4|hVHAhrgiBmSbyYjbVAC17wjwAJyKK8TQmhglBAtM"
}
 

Request      

POST api/refresh

Response

Response Fields

access_token  string  

refresh_token  string  

Revoke token

requires authentication

Revoke access token and refresh token.

Example request:
curl --request POST \
    "https://demo.icore.intelekt.net.pl/api/revoke" \
    --header "Authorization: Bearer {YOUR_ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://demo.icore.intelekt.net.pl/api/revoke"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.icore.intelekt.net.pl/api/revoke',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://demo.icore.intelekt.net.pl/api/revoke'
headers = {
  'Authorization': 'Bearer {YOUR_ACCESS_TOKEN}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Example response (204, success):

[Empty response]
 

Request      

POST api/revoke

Register

Create user and send email verification notification

Example request:
curl --request POST \
    "https://demo.icore.intelekt.net.pl/api/register" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"N1ebieski\",
    \"email\": \"example@example.pl\",
    \"password\": \"demo1234\",
    \"password_confirmation\": \"demo1234\",
    \"privacy_agreement\": true,
    \"contact_agreement\": true,
    \"marketing_agreement\": true
}"
const url = new URL(
    "https://demo.icore.intelekt.net.pl/api/register"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "N1ebieski",
    "email": "example@example.pl",
    "password": "demo1234",
    "password_confirmation": "demo1234",
    "privacy_agreement": true,
    "contact_agreement": true,
    "marketing_agreement": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.icore.intelekt.net.pl/api/register',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'N1ebieski',
            'email' => 'example@example.pl',
            'password' => 'demo1234',
            'password_confirmation' => 'demo1234',
            'privacy_agreement' => true,
            'contact_agreement' => true,
            'marketing_agreement' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://demo.icore.intelekt.net.pl/api/register'
payload = {
    "name": "N1ebieski",
    "email": "example@example.pl",
    "password": "demo1234",
    "password_confirmation": "demo1234",
    "privacy_agreement": true,
    "contact_agreement": true,
    "marketing_agreement": true
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "data": {
        "id": 114,
        "name": "Guy Metz",
        "status": {
            "value": 1,
            "label": "active"
        },
        "created_at": "2022-10-06T12:22:24.000000Z",
        "updated_at": "2022-10-06T12:22:24.000000Z",
        "roles": [
            {
                "id": 3,
                "name": "user",
                "created_at": "2021-01-06T17:27:36.000000Z",
                "updated_at": "2022-04-23T22:28:13.000000Z"
            }
        ]
    }
}
 

Request      

POST api/register

Body Parameters

name  string  

email  string  

password  string  

password_confirmation  string  

privacy_agreement  boolean  

Acceptance of privacy policy

contact_agreement  boolean  

Acceptance of receiving e-mail system notifications

marketing_agreement  boolean optional  

Acceptance of receiving marketing information notifications

Response

Response Fields

id  integer  

name  string  

ip  string  

(available only for admin.users.view).

email  string  

(available only for admin.users.view or owner).

status  object  

Contains int value and string label

marketing  object  

Email marketing consent, contains int value and string label (available only for admin.users.view or owner).

created_at  string  

updated_at  string  

roles  object[]  

Contains relationships Roles.

socialites  object[]  

Contains relationships Socialites (available only for admin.users.view or owner).

Categories

Routes:

/routes/vendor/icore/api/categories.php

Controller:

N1ebieski\ICore\Http\Controllers\Api\Category\CategoryController
N1ebieski\ICore\Http\Controllers\Api\Category\Post\CategoryController

Resource:

N1ebieski\ICore\Http\Resources\Category\CategoryResource

Permissions:

Index of post's categories

Example request:
curl --request POST \
    "https://demo.icore.intelekt.net.pl/api/categories/post/index" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page\": 1,
    \"filter\": {
        \"except\": [],
        \"search\": \"\",
        \"status\": 1,
        \"parent\": \"\",
        \"orderby\": \"\",
        \"paginate\": \"\"
    }
}"
const url = new URL(
    "https://demo.icore.intelekt.net.pl/api/categories/post/index"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page": 1,
    "filter": {
        "except": [],
        "search": "",
        "status": 1,
        "parent": "",
        "orderby": "",
        "paginate": ""
    }
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.icore.intelekt.net.pl/api/categories/post/index',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'page' => 1,
            'filter' => [
                'except' => [],
                'search' => '',
                'status' => 1,
                'parent' => '',
                'orderby' => '',
                'paginate' => '',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://demo.icore.intelekt.net.pl/api/categories/post/index'
payload = {
    "page": 1,
    "filter": {
        "except": [],
        "search": "",
        "status": 1,
        "parent": "",
        "orderby": "",
        "paginate": ""
    }
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "data": [
        {
            "id": 1152,
            "name": "Qui qui",
            "slug": "qui-qui",
            "icon": null,
            "status": {
                "value": 1,
                "label": "active"
            },
            "real_depth": 0,
            "created_at": "2022-10-06T12:22:24.000000Z",
            "updated_at": "2022-10-06T12:22:24.000000Z"
        },
        {
            "id": 1153,
            "name": "Qui aliquam",
            "slug": "qui-aliquam",
            "icon": null,
            "status": {
                "value": 1,
                "label": "active"
            },
            "real_depth": 0,
            "created_at": "2022-10-06T12:22:24.000000Z",
            "updated_at": "2022-10-06T12:22:24.000000Z"
        }
    ]
}
 

Request      

POST api/categories/post/index

GET api/categories/post/index

Body Parameters

page  integer optional  

filter  object optional  

filter.except  integer[] optional  

Array containing IDs, excluding records from the list.

filter.search  string optional  

Search by keyword. Must be at least 3 characters. Must not be greater than 255 characters.

filter.status  integer optional  

Must be one of 1 or 0 (available only for admin.categories.view).

filter.parent  integer optional  

ID of category parent. If 0, shows only roots.

filter.orderby  string optional  

Sorting the result list. Must be one of created_at|asc, created_at|desc, updated_at|asc, updated_at|desc, name|asc, name|desc, position|asc, position|desc, real_depth|asc, or real_depth|desc.

filter.paginate  integer optional  

Number of records in the list. Must be one of 25, 50, or 100.

Response

Response Fields

id  integer  

name  string  

slug  string  

icon  string  

Class of icon.

status  object  

Contains int value and string label.

real_depth  integer  

Level of hierarchy.

created_at  string  

updated_at  string  

ancestors  object[]  

Contains relationship Category ancestors (parent and higher).

meta  object  

Paging, filtering and sorting information.

Index of all categories

Example request:
curl --request POST \
    "https://demo.icore.intelekt.net.pl/api/categories/index" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page\": 1,
    \"filter\": {
        \"except\": [],
        \"search\": \"\",
        \"status\": 1,
        \"parent\": \"\",
        \"orderby\": \"\",
        \"paginate\": \"\"
    }
}"
const url = new URL(
    "https://demo.icore.intelekt.net.pl/api/categories/index"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page": 1,
    "filter": {
        "except": [],
        "search": "",
        "status": 1,
        "parent": "",
        "orderby": "",
        "paginate": ""
    }
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.icore.intelekt.net.pl/api/categories/index',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'page' => 1,
            'filter' => [
                'except' => [],
                'search' => '',
                'status' => 1,
                'parent' => '',
                'orderby' => '',
                'paginate' => '',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://demo.icore.intelekt.net.pl/api/categories/index'
payload = {
    "page": 1,
    "filter": {
        "except": [],
        "search": "",
        "status": 1,
        "parent": "",
        "orderby": "",
        "paginate": ""
    }
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "data": [
        {
            "id": 1150,
            "name": "Nulla maiores",
            "slug": "nulla-maiores",
            "icon": null,
            "status": {
                "value": 1,
                "label": "active"
            },
            "real_depth": 0,
            "created_at": "2022-10-06T12:22:24.000000Z",
            "updated_at": "2022-10-06T12:22:24.000000Z"
        },
        {
            "id": 1151,
            "name": "Velit dolor",
            "slug": "velit-dolor",
            "icon": null,
            "status": {
                "value": 1,
                "label": "active"
            },
            "real_depth": 0,
            "created_at": "2022-10-06T12:22:24.000000Z",
            "updated_at": "2022-10-06T12:22:24.000000Z"
        }
    ]
}
 

Request      

POST api/categories/index

GET api/categories/index

Body Parameters

page  integer optional  

filter  object optional  

filter.except  integer[] optional  

Array containing IDs, excluding records from the list.

filter.search  string optional  

Search by keyword. Must be at least 3 characters. Must not be greater than 255 characters.

filter.status  integer optional  

Must be one of 1 or 0 (available only for admin.categories.view).

filter.parent  integer optional  

ID of category parent. If 0, shows only roots.

filter.orderby  string optional  

Sorting the result list. Must be one of created_at|asc, created_at|desc, updated_at|asc, updated_at|desc, name|asc, name|desc, position|asc, position|desc, real_depth|asc, or real_depth|desc.

filter.paginate  integer optional  

Number of records in the list. Must be one of 25, 50, or 100.

Response

Response Fields

id  integer  

name  string  

slug  string  

icon  string  

Class of icon.

status  object  

Contains int value and string label.

real_depth  integer  

Level of hierarchy.

created_at  string  

updated_at  string  

ancestors  object[]  

Contains relationship Category ancestors (parent and higher).

meta  object  

Paging, filtering and sorting information.

Posts

Routes:

/routes/vendor/icore/api/posts.php

Controller:

N1ebieski\ICore\Http\Controllers\Api\Post\PostController

Resource:

N1ebieski\ICore\Http\Resources\Post\PostResource

Permissions:

Index of posts

requires authentication

Example request:
curl --request POST \
    "https://demo.icore.intelekt.net.pl/api/posts/index" \
    --header "Authorization: Bearer {YOUR_ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page\": 1,
    \"filter\": {
        \"except\": [],
        \"search\": \"\",
        \"status\": 1,
        \"category\": \"\",
        \"orderby\": \"\",
        \"paginate\": \"\"
    }
}"
const url = new URL(
    "https://demo.icore.intelekt.net.pl/api/posts/index"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page": 1,
    "filter": {
        "except": [],
        "search": "",
        "status": 1,
        "category": "",
        "orderby": "",
        "paginate": ""
    }
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.icore.intelekt.net.pl/api/posts/index',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'page' => 1,
            'filter' => [
                'except' => [],
                'search' => '',
                'status' => 1,
                'category' => '',
                'orderby' => '',
                'paginate' => '',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://demo.icore.intelekt.net.pl/api/posts/index'
payload = {
    "page": 1,
    "filter": {
        "except": [],
        "search": "",
        "status": 1,
        "category": "",
        "orderby": "",
        "paginate": ""
    }
}
headers = {
  'Authorization': 'Bearer {YOUR_ACCESS_TOKEN}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "data": [
        {
            "id": 176,
            "slug": "consequatur-tenetur-quis-possimus-ut-debitis",
            "title": "Consequatur tenetur quis possimus ut debitis.",
            "short_content": "Dicta accusantium non corporis quam in quia molestiae. Est occaecati occaecati tenetur blanditiis. Et voluptas rem soluta magnam. Hic rem id at et. Et voluptatum facere et. Voluptatem dolorem ratione repellat dolor voluptatem et asperiores similique. Tempore est consequatur esse. Magni sunt voluptatem qui voluptatem dolorem dolorem. Eius vitae earum optio dolorem explicabo in. Ad ipsa quis quisquam ea. Aut et molestiae consequatur nam est consequuntur quaerat error. Eveniet aliquam rerum volupta",
            "content": "Dicta accusantium non corporis quam in quia molestiae. Est occaecati occaecati tenetur blanditiis. Et voluptas rem soluta magnam. Hic rem id at et. Et voluptatum facere et. Voluptatem dolorem ratione repellat dolor voluptatem et asperiores similique. Tempore est consequatur esse. Magni sunt voluptatem qui voluptatem dolorem dolorem. Eius vitae earum optio dolorem explicabo in. Ad ipsa quis quisquam ea. Aut et molestiae consequatur nam est consequuntur quaerat error. Eveniet aliquam rerum voluptatum aut non. Dolores autem beatae cumque ad quod. Ab numquam aut maxime magnam ut id. Aliquam deleniti hic in itaque. Aspernatur incidunt ut id natus voluptas officiis earum. Adipisci ipsum corrupti ipsam dolores vel possimus. Voluptate molestiae et nam est est vel. Illo esse quaerat dolor et recusandae soluta error. Nisi sed cupiditate laudantium porro id. Nisi quam non quis quisquam minus. A quaerat hic quia molestiae qui. Expedita beatae ut enim qui esse necessitatibus. Est et culpa at amet qui ducimus ad. Et quo voluptates voluptas sunt repudiandae quasi consequatur. Recusandae accusantium sint ut omnis nobis. Enim libero fugit impedit ipsa ut inventore voluptatibus. Repudiandae sint natus veniam voluptate sunt et. Sunt minima natus dolorum molestiae et cupiditate. Et animi autem quo magni dolores. Et consequatur enim reiciendis et consequatur non facere. Est iusto mollitia ad animi possimus facere et aliquam. Quas et in in amet et. Nobis enim accusantium et et aut. Exercitationem illum temporibus est reprehenderit. Harum commodi ipsa expedita quia et voluptas. Natus consequuntur qui vel quisquam aut error nam. Cum ut ut quam ducimus eveniet ducimus exercitationem. Id quas ratione voluptatum. Perferendis modi voluptatem iste dolores natus provident aliquid. Et perspiciatis ullam quaerat consectetur nihil. Qui cupiditate est quaerat. Eos fugiat dolor adipisci. Facilis et perferendis voluptatem. Consequatur fuga soluta natus aliquam qui qui error.",
            "content_html": "<p>Dicta accusantium non corporis quam in quia molestiae. Est occaecati occaecati tenetur blanditiis. Et voluptas rem soluta magnam. Hic rem id at et. Et voluptatum facere et. Voluptatem dolorem ratione repellat dolor voluptatem et asperiores similique. Tempore est consequatur esse. Magni sunt voluptatem qui voluptatem dolorem dolorem. Eius vitae earum optio dolorem explicabo in. Ad ipsa quis quisquam ea. Aut et molestiae consequatur nam est consequuntur quaerat error. Eveniet aliquam rerum voluptatum aut non. Dolores autem beatae cumque ad quod. Ab numquam aut maxime magnam ut id. Aliquam deleniti hic in itaque. Aspernatur incidunt ut id natus voluptas officiis earum. Adipisci ipsum corrupti ipsam dolores vel possimus. Voluptate molestiae et nam est est vel. Illo esse quaerat dolor et recusandae soluta error. Nisi sed cupiditate laudantium porro id. Nisi quam non quis quisquam minus. A quaerat hic quia molestiae qui. Expedita beatae ut enim qui esse necessitatibus. Est et culpa at amet qui ducimus ad. Et quo voluptates voluptas sunt repudiandae quasi consequatur. Recusandae accusantium sint ut omnis nobis. Enim libero fugit impedit ipsa ut inventore voluptatibus. Repudiandae sint natus veniam voluptate sunt et. Sunt minima natus dolorum molestiae et cupiditate. Et animi autem quo magni dolores. Et consequatur enim reiciendis et consequatur non facere. Est iusto mollitia ad animi possimus facere et aliquam. Quas et in in amet et. Nobis enim accusantium et et aut. Exercitationem illum temporibus est reprehenderit. Harum commodi ipsa expedita quia et voluptas. Natus consequuntur qui vel quisquam aut error nam. Cum ut ut quam ducimus eveniet ducimus exercitationem. Id quas ratione voluptatum. Perferendis modi voluptatem iste dolores natus provident aliquid. Et perspiciatis ullam quaerat consectetur nihil. Qui cupiditate est quaerat. Eos fugiat dolor adipisci. Facilis et perferendis voluptatem. Consequatur fuga soluta natus aliquam qui qui error.</p>",
            "no_more_content_html": "<p>Dicta accusantium non corporis quam in quia molestiae. Est occaecati occaecati tenetur blanditiis. Et voluptas rem soluta magnam. Hic rem id at et. Et voluptatum facere et. Voluptatem dolorem ratione repellat dolor voluptatem et asperiores similique. Tempore est consequatur esse. Magni sunt voluptatem qui voluptatem dolorem dolorem. Eius vitae earum optio dolorem explicabo in. Ad ipsa quis quisquam ea. Aut et molestiae consequatur nam est consequuntur quaerat error. Eveniet aliquam rerum voluptatum aut non. Dolores autem beatae cumque ad quod. Ab numquam aut maxime magnam ut id. Aliquam deleniti hic in itaque. Aspernatur incidunt ut id natus voluptas officiis earum. Adipisci ipsum corrupti ipsam dolores vel possimus. Voluptate molestiae et nam est est vel. Illo esse quaerat dolor et recusandae soluta error. Nisi sed cupiditate laudantium porro id. Nisi quam non quis quisquam minus. A quaerat hic quia molestiae qui. Expedita beatae ut enim qui esse necessitatibus. Est et culpa at amet qui ducimus ad. Et quo voluptates voluptas sunt repudiandae quasi consequatur. Recusandae accusantium sint ut omnis nobis. Enim libero fugit impedit ipsa ut inventore voluptatibus. Repudiandae sint natus veniam voluptate sunt et. Sunt minima natus dolorum molestiae et cupiditate. Et animi autem quo magni dolores. Et consequatur enim reiciendis et consequatur non facere. Est iusto mollitia ad animi possimus facere et aliquam. Quas et in in amet et. Nobis enim accusantium et et aut. Exercitationem illum temporibus est reprehenderit. Harum commodi ipsa expedita quia et voluptas. Natus consequuntur qui vel quisquam aut error nam. Cum ut ut quam ducimus eveniet ducimus exercitationem. Id quas ratione voluptatum. Perferendis modi voluptatem iste dolores natus provident aliquid. Et perspiciatis ullam quaerat consectetur nihil. Qui cupiditate est quaerat. Eos fugiat dolor adipisci. Facilis et perferendis voluptatem. Consequatur fuga soluta natus aliquam qui qui error.</p>",
            "less_content_html": "<p>Dicta accusantium non corporis quam in quia molestiae. Est occaecati occaecati tenetur blanditiis. Et voluptas rem soluta magnam. Hic rem id at et. Et voluptatum facere et. Voluptatem dolorem ratione repellat dolor voluptatem et asperiores similique. Tempore est consequatur esse. Magni sunt voluptatem qui voluptatem dolorem dolorem. Eius vitae earum optio dolorem explicabo in. Ad ipsa quis quisquam ea. Aut et molestiae consequatur nam est consequuntur quaerat error. Eveniet aliquam rerum voluptatum aut non. Dolores autem beatae cumque ad quod. Ab numquam aut maxime magnam ut id. Aliquam deleniti hic in itaque. Aspernatur incidunt ut id natus voluptas officiis earum. Adipisci ipsum corrupti ipsam dolores vel possimus. Voluptate molestiae et nam est est vel. Illo esse quaerat dolor et recusandae soluta error. Nisi sed cupiditate laudantium porro id. Nisi quam non quis quisquam minus. A quaerat hic quia molestiae qui. Expedita beatae ut enim qui esse necessitatibus. Est et culpa at amet qui ducimus ad. Et quo voluptates voluptas sunt repudiandae quasi consequatur. Recusandae accusantium sint ut omnis nobis. Enim libero fugit impedit ipsa ut inventore voluptatibus. Repudiandae sint natus veniam voluptate sunt et. Sunt minima natus dolorum molestiae et cupiditate. Et animi autem quo magni dolores. Et consequatur enim reiciendis et consequatur non facere. Est iusto mollitia ad animi possimus facere et aliquam. Quas et in in amet et. Nobis enim accusantium et et aut. Exercitationem illum temporibus est reprehenderit. Harum commodi ipsa expedita quia et voluptas. Natus consequuntur qui vel quisquam aut error nam. Cum ut ut quam ducimus eveniet ducimus exercitationem. Id quas ratione voluptatum. Perferendis modi voluptatem iste dolores natus provident aliquid. Et perspiciatis ullam quaerat consectetur nihil. Qui cupiditate est quaerat. Eos fugiat dolor adipisci. Facilis et perferendis voluptatem. Consequatur fuga soluta natus aliquam qui qui error.</p>",
            "seo_title": "Eum et id harum reiciendis sed.",
            "meta_title": "Eum et id harum reiciendis sed.",
            "seo_desc": "Vitae ducimus ut molestias sed mollitia tempora dolores. Numquam expedita repellendus sit cumque id. Nam facilis quae et. A earum a a porro fugit.",
            "meta_desc": "Vitae ducimus ut molestias sed mollitia tempora dolores. Numquam expedita repellendus sit cumque id. Nam facilis quae et. A earum a a porro fugit.",
            "seo_noindex": 0,
            "seo_nofollow": 1,
            "status": {
                "value": 1,
                "label": "active"
            },
            "comment": 0,
            "first_image": null,
            "published_at": "2022-05-19T10:22:45.000000Z",
            "created_at": "2022-10-06T12:22:24.000000Z",
            "updated_at": "2022-10-06T12:22:24.000000Z",
            "user": {
                "id": 115,
                "name": "Jeff Harris",
                "status": {
                    "value": 0,
                    "label": "inactive"
                },
                "created_at": "2022-10-06T12:22:24.000000Z",
                "updated_at": "2022-10-06T12:22:24.000000Z"
            },
            "links": {
                "web": "http://demo.icore.intelekt.net.pl/posts/consequatur-tenetur-quis-possimus-ut-debitis"
            }
        },
        {
            "id": 177,
            "slug": "omnis-natus-ut-dicta-reiciendis-quo",
            "title": "Omnis natus ut dicta reiciendis quo.",
            "short_content": "Consequatur ut qui suscipit eum et voluptatibus nisi. Architecto excepturi omnis aut voluptates. Odio laboriosam deserunt dolor perspiciatis. Aliquid sunt non dolores non reprehenderit fugiat. Ab illo eveniet rerum commodi mollitia rem. Velit aut dolorum impedit sit. Ea et nemo voluptate quod eum cum. Quod consequuntur debitis exercitationem error sit eligendi. Est quo voluptates minus aut dolor praesentium. Neque reiciendis magni atque tenetur et. Harum voluptas earum praesentium autem sit libe",
            "content": "Consequatur ut qui suscipit eum et voluptatibus nisi. Architecto excepturi omnis aut voluptates. Odio laboriosam deserunt dolor perspiciatis. Aliquid sunt non dolores non reprehenderit fugiat. Ab illo eveniet rerum commodi mollitia rem. Velit aut dolorum impedit sit. Ea et nemo voluptate quod eum cum. Quod consequuntur debitis exercitationem error sit eligendi. Est quo voluptates minus aut dolor praesentium. Neque reiciendis magni atque tenetur et. Harum voluptas earum praesentium autem sit libero sint. Laudantium enim quia voluptatem cumque ut expedita asperiores. Ab voluptate quasi et rerum dolorem tempora. Error expedita voluptatem asperiores voluptas occaecati non neque inventore. Omnis natus aut recusandae et incidunt. A iste dolore minus aut qui eos. Dolore maiores quas praesentium veniam. Omnis libero repellendus odio unde ducimus ut fuga. Quia facilis molestias atque ad ex aut fugiat. Voluptas amet sit voluptatibus omnis consequatur rerum voluptatum non. Deserunt distinctio quia maxime enim expedita nulla. Reprehenderit atque deleniti molestias labore. Voluptas qui ea vero ut sed. At quo tempore ullam est eligendi. Sed dolorem consectetur quia repellat voluptas. Incidunt aperiam enim eligendi exercitationem dignissimos cupiditate harum. Dolor ut qui quod itaque dolores itaque. Delectus minima aspernatur necessitatibus. Aliquid perferendis voluptates eos quas. Provident quas minus laboriosam perferendis et ipsam. Asperiores iure reprehenderit ducimus omnis saepe quisquam ut. Non dicta saepe a. Nam aut quas sequi commodi amet ut. Culpa illo neque consequatur perspiciatis. Quia sed laudantium repudiandae exercitationem sit et. Quae iusto ut qui dicta. Labore aspernatur mollitia magni id esse sint. Non ex et et non rerum in. Ea animi perferendis ut eligendi excepturi. Temporibus sit est repellendus dolores nihil et exercitationem. Quos voluptas in beatae nisi ullam. Occaecati quisquam rerum magnam optio laudantium.",
            "content_html": "<p>Consequatur ut qui suscipit eum et voluptatibus nisi. Architecto excepturi omnis aut voluptates. Odio laboriosam deserunt dolor perspiciatis. Aliquid sunt non dolores non reprehenderit fugiat. Ab illo eveniet rerum commodi mollitia rem. Velit aut dolorum impedit sit. Ea et nemo voluptate quod eum cum. Quod consequuntur debitis exercitationem error sit eligendi. Est quo voluptates minus aut dolor praesentium. Neque reiciendis magni atque tenetur et. Harum voluptas earum praesentium autem sit libero sint. Laudantium enim quia voluptatem cumque ut expedita asperiores. Ab voluptate quasi et rerum dolorem tempora. Error expedita voluptatem asperiores voluptas occaecati non neque inventore. Omnis natus aut recusandae et incidunt. A iste dolore minus aut qui eos. Dolore maiores quas praesentium veniam. Omnis libero repellendus odio unde ducimus ut fuga. Quia facilis molestias atque ad ex aut fugiat. Voluptas amet sit voluptatibus omnis consequatur rerum voluptatum non. Deserunt distinctio quia maxime enim expedita nulla. Reprehenderit atque deleniti molestias labore. Voluptas qui ea vero ut sed. At quo tempore ullam est eligendi. Sed dolorem consectetur quia repellat voluptas. Incidunt aperiam enim eligendi exercitationem dignissimos cupiditate harum. Dolor ut qui quod itaque dolores itaque. Delectus minima aspernatur necessitatibus. Aliquid perferendis voluptates eos quas. Provident quas minus laboriosam perferendis et ipsam. Asperiores iure reprehenderit ducimus omnis saepe quisquam ut. Non dicta saepe a. Nam aut quas sequi commodi amet ut. Culpa illo neque consequatur perspiciatis. Quia sed laudantium repudiandae exercitationem sit et. Quae iusto ut qui dicta. Labore aspernatur mollitia magni id esse sint. Non ex et et non rerum in. Ea animi perferendis ut eligendi excepturi. Temporibus sit est repellendus dolores nihil et exercitationem. Quos voluptas in beatae nisi ullam. Occaecati quisquam rerum magnam optio laudantium.</p>",
            "no_more_content_html": "<p>Consequatur ut qui suscipit eum et voluptatibus nisi. Architecto excepturi omnis aut voluptates. Odio laboriosam deserunt dolor perspiciatis. Aliquid sunt non dolores non reprehenderit fugiat. Ab illo eveniet rerum commodi mollitia rem. Velit aut dolorum impedit sit. Ea et nemo voluptate quod eum cum. Quod consequuntur debitis exercitationem error sit eligendi. Est quo voluptates minus aut dolor praesentium. Neque reiciendis magni atque tenetur et. Harum voluptas earum praesentium autem sit libero sint. Laudantium enim quia voluptatem cumque ut expedita asperiores. Ab voluptate quasi et rerum dolorem tempora. Error expedita voluptatem asperiores voluptas occaecati non neque inventore. Omnis natus aut recusandae et incidunt. A iste dolore minus aut qui eos. Dolore maiores quas praesentium veniam. Omnis libero repellendus odio unde ducimus ut fuga. Quia facilis molestias atque ad ex aut fugiat. Voluptas amet sit voluptatibus omnis consequatur rerum voluptatum non. Deserunt distinctio quia maxime enim expedita nulla. Reprehenderit atque deleniti molestias labore. Voluptas qui ea vero ut sed. At quo tempore ullam est eligendi. Sed dolorem consectetur quia repellat voluptas. Incidunt aperiam enim eligendi exercitationem dignissimos cupiditate harum. Dolor ut qui quod itaque dolores itaque. Delectus minima aspernatur necessitatibus. Aliquid perferendis voluptates eos quas. Provident quas minus laboriosam perferendis et ipsam. Asperiores iure reprehenderit ducimus omnis saepe quisquam ut. Non dicta saepe a. Nam aut quas sequi commodi amet ut. Culpa illo neque consequatur perspiciatis. Quia sed laudantium repudiandae exercitationem sit et. Quae iusto ut qui dicta. Labore aspernatur mollitia magni id esse sint. Non ex et et non rerum in. Ea animi perferendis ut eligendi excepturi. Temporibus sit est repellendus dolores nihil et exercitationem. Quos voluptas in beatae nisi ullam. Occaecati quisquam rerum magnam optio laudantium.</p>",
            "less_content_html": "<p>Consequatur ut qui suscipit eum et voluptatibus nisi. Architecto excepturi omnis aut voluptates. Odio laboriosam deserunt dolor perspiciatis. Aliquid sunt non dolores non reprehenderit fugiat. Ab illo eveniet rerum commodi mollitia rem. Velit aut dolorum impedit sit. Ea et nemo voluptate quod eum cum. Quod consequuntur debitis exercitationem error sit eligendi. Est quo voluptates minus aut dolor praesentium. Neque reiciendis magni atque tenetur et. Harum voluptas earum praesentium autem sit libero sint. Laudantium enim quia voluptatem cumque ut expedita asperiores. Ab voluptate quasi et rerum dolorem tempora. Error expedita voluptatem asperiores voluptas occaecati non neque inventore. Omnis natus aut recusandae et incidunt. A iste dolore minus aut qui eos. Dolore maiores quas praesentium veniam. Omnis libero repellendus odio unde ducimus ut fuga. Quia facilis molestias atque ad ex aut fugiat. Voluptas amet sit voluptatibus omnis consequatur rerum voluptatum non. Deserunt distinctio quia maxime enim expedita nulla. Reprehenderit atque deleniti molestias labore. Voluptas qui ea vero ut sed. At quo tempore ullam est eligendi. Sed dolorem consectetur quia repellat voluptas. Incidunt aperiam enim eligendi exercitationem dignissimos cupiditate harum. Dolor ut qui quod itaque dolores itaque. Delectus minima aspernatur necessitatibus. Aliquid perferendis voluptates eos quas. Provident quas minus laboriosam perferendis et ipsam. Asperiores iure reprehenderit ducimus omnis saepe quisquam ut. Non dicta saepe a. Nam aut quas sequi commodi amet ut. Culpa illo neque consequatur perspiciatis. Quia sed laudantium repudiandae exercitationem sit et. Quae iusto ut qui dicta. Labore aspernatur mollitia magni id esse sint. Non ex et et non rerum in. Ea animi perferendis ut eligendi excepturi. Temporibus sit est repellendus dolores nihil et exercitationem. Quos voluptas in beatae nisi ullam. Occaecati quisquam rerum magnam optio laudantium.</p>",
            "seo_title": "Id ut est tenetur.",
            "meta_title": "Id ut est tenetur.",
            "seo_desc": "Ipsa ex distinctio non repellendus sed est. Rerum esse est ut vel minus a corrupti. Alias necessitatibus aut est blanditiis ut dolore inventore.",
            "meta_desc": "Ipsa ex distinctio non repellendus sed est. Rerum esse est ut vel minus a corrupti. Alias necessitatibus aut est blanditiis ut dolore inventore.",
            "seo_noindex": 0,
            "seo_nofollow": 0,
            "status": {
                "value": 1,
                "label": "active"
            },
            "comment": 1,
            "first_image": null,
            "published_at": "2022-03-13T21:08:54.000000Z",
            "created_at": "2022-10-06T12:22:24.000000Z",
            "updated_at": "2022-10-06T12:22:24.000000Z",
            "user": {
                "id": 116,
                "name": "Yasmin Boyer Jr.",
                "status": {
                    "value": 1,
                    "label": "active"
                },
                "created_at": "2022-10-06T12:22:24.000000Z",
                "updated_at": "2022-10-06T12:22:24.000000Z"
            },
            "links": {
                "web": "http://demo.icore.intelekt.net.pl/posts/omnis-natus-ut-dicta-reiciendis-quo"
            }
        }
    ]
}
 

Request      

POST api/posts/index

GET api/posts/index

Body Parameters

page  integer optional  

filter  object optional  

filter.except  integer[] optional  

Array containing IDs, excluding records from the list.

filter.search  string optional  

Search by keyword. Must be at least 3 characters. Must not be greater than 255 characters.

filter.status  integer optional  

Must be one of 1 or (available only for admin.categories.view) 0, 2.

filter.category  integer optional  

ID of category contains posts.

filter.orderby  string optional  

Sorting the result list. Must be one of created_at|asc, created_at|desc, updated_at|asc, updated_at|desc, title|asc, title|desc, view|desc, or view|asc.

filter.paginate  integer optional  

Number of records in the list. Must be one of 25, 50, or 100.

Response

Response Fields

id  integer  

title  string  

slug  string  

short_content  string  

A shortened version of the post without HTML formatting.

content  string  

Post without HTML formatting.

content_html  string  

Post with HTML formatting.

no_more_content_html  string  

Post with HTML formatting without "show more" button.

less_content_html  string  

Post with HTML formatting with "show more" button.

seo_title  string  

Title for SEO.

meta_title  string  

Title for META.

seo_desc  string  

Description for SEO.

meta_desc  string  

Description for META.

seo_noindex  boolean  

Value for META.

seo_nofollow  boolean  

Value for META.

status  object  

Contains int value and string label.

comment  boolean  

Determines whether comments are allowed.

first_image  string  

Address of the first image in the post for META.

published_at  string  

created_at  string  

updated_at  string  

user  object  

Contains relationship User author.

links  object  

Contains links to resources on the website and in the administration panel.

meta  object  

Paging, filtering and sorting information.

Tags

Routes:

/routes/vendor/icore/api/tags.php

Controller:

N1ebieski\ICore\Http\Controllers\Api\Tag\TagController

Resource:

N1ebieski\ICore\Http\Resources\Tag\TagResource

Permissions:

Index of tags

Example request:
curl --request POST \
    "https://demo.icore.intelekt.net.pl/api/tags/index" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page\": 1,
    \"filter\": {
        \"except\": [],
        \"search\": \"\",
        \"orderby\": \"\",
        \"paginate\": \"\"
    }
}"
const url = new URL(
    "https://demo.icore.intelekt.net.pl/api/tags/index"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page": 1,
    "filter": {
        "except": [],
        "search": "",
        "orderby": "",
        "paginate": ""
    }
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.icore.intelekt.net.pl/api/tags/index',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'page' => 1,
            'filter' => [
                'except' => [],
                'search' => '',
                'orderby' => '',
                'paginate' => '',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://demo.icore.intelekt.net.pl/api/tags/index'
payload = {
    "page": 1,
    "filter": {
        "except": [],
        "search": "",
        "orderby": "",
        "paginate": ""
    }
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "data": [
        {
            "id": 179,
            "name": "Necessitatibus",
            "slug": "necessitatibus",
            "created_at": "2022-10-06T12:22:25.000000Z",
            "updated_at": "2022-10-06T12:22:25.000000Z"
        },
        {
            "id": 180,
            "name": "Esse",
            "slug": "esse",
            "created_at": "2022-10-06T12:22:25.000000Z",
            "updated_at": "2022-10-06T12:22:25.000000Z"
        }
    ]
}
 

Request      

POST api/tags/index

GET api/tags/index

Body Parameters

page  integer optional  

filter  object optional  

filter.except  integer[] optional  

Array containing IDs, excluding records from the list.

filter.search  string optional  

Search by keyword. Must be at least 3 characters. Must not be greater than 255 characters.

filter.orderby  string optional  

Sorting the result list. Must be one of created_at|asc, created_at|desc, updated_at|asc, updated_at|desc, sum|asc, or sum|desc.

filter.paginate  integer optional  

Number of records in the list. Must be one of 25, 50, or 100.

Response

Response Fields

id  integer  

name  string  

slug  string  

created_at  string  

updated_at  string  

meta  object  

Paging, filtering and sorting information.

Tokens

Routes:

/routes/vendor/icore/api/tokens.php

Controller:

N1ebieski\ICore\Http\Controllers\Api\Token\TokenController

Permissions:

Create token

requires authentication

Create personal access token.

Example request:
curl --request POST \
    "https://demo.icore.intelekt.net.pl/api/tokens" \
    --header "Authorization: Bearer {YOUR_ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Access\",
    \"expiration\": 7,
    \"abilities\": [
        \"api.*\"
    ]
}"
const url = new URL(
    "https://demo.icore.intelekt.net.pl/api/tokens"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Access",
    "expiration": 7,
    "abilities": [
        "api.*"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.icore.intelekt.net.pl/api/tokens',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'Access',
            'expiration' => 7,
            'abilities' => [
                'api.*',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://demo.icore.intelekt.net.pl/api/tokens'
payload = {
    "name": "Access",
    "expiration": 7,
    "abilities": [
        "api.*"
    ]
}
headers = {
  'Authorization': 'Bearer {YOUR_ACCESS_TOKEN}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (201, success):


{
    "access_token": "1|LN8Gmqe6cRHQpPr5X5GW9wFXuqHVK09L8FSb7Ju9"
}
 

Request      

POST api/tokens

Body Parameters

name  string  

Must be between 3 and 255 characters.

expiration  integer optional  

Token expiration time on days. If null is unlimited. Must not be greater than 1000.

abilities  string[]  

Array containing scopes. Wildcard supported. Must be one of api.*, api.users.*, api.users.view, api.categories.*, api.categories.view, api.tags.*, api.tags.view, api.posts.*, api.posts.view, api.tokens.*, api.tokens.create, or api.tokens.delete.

Response

Response Fields

access_token  string  

Delete token

requires authentication

Delete personal access token.

Example request:
curl --request DELETE \
    "https://demo.icore.intelekt.net.pl/api/tokens/" \
    --header "Authorization: Bearer {YOUR_ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://demo.icore.intelekt.net.pl/api/tokens/"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://demo.icore.intelekt.net.pl/api/tokens/',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://demo.icore.intelekt.net.pl/api/tokens/'
headers = {
  'Authorization': 'Bearer {YOUR_ACCESS_TOKEN}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request      

DELETE api/tokens/{token_id}

URL Parameters

token_id  integer  

The ID of the token.

Users

Routes:

/routes/vendor/icore/api/users.php

Controller:

N1ebieski\ICore\Http\Controllers\Api\User\UserController

Resource:

N1ebieski\ICore\Http\Resources\User\UserResource

Permissions:

Index of users

requires authentication

Example request:
curl --request POST \
    "https://demo.icore.intelekt.net.pl/api/users/index" \
    --header "Authorization: Bearer {YOUR_ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page\": 1,
    \"filter\": {
        \"except\": [],
        \"search\": \"\",
        \"status\": 1,
        \"role\": \"\",
        \"orderby\": \"updated_at|desc\",
        \"paginate\": \"\"
    }
}"
const url = new URL(
    "https://demo.icore.intelekt.net.pl/api/users/index"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page": 1,
    "filter": {
        "except": [],
        "search": "",
        "status": 1,
        "role": "",
        "orderby": "updated_at|desc",
        "paginate": ""
    }
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://demo.icore.intelekt.net.pl/api/users/index',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'page' => 1,
            'filter' => [
                'except' => [],
                'search' => '',
                'status' => 1,
                'role' => '',
                'orderby' => 'updated_at|desc',
                'paginate' => '',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://demo.icore.intelekt.net.pl/api/users/index'
payload = {
    "page": 1,
    "filter": {
        "except": [],
        "search": "",
        "status": 1,
        "role": "",
        "orderby": "updated_at|desc",
        "paginate": ""
    }
}
headers = {
  'Authorization': 'Bearer {YOUR_ACCESS_TOKEN}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "data": [
        {
            "id": 118,
            "name": "Mrs. Autumn Harber IV",
            "status": {
                "value": 1,
                "label": "active"
            },
            "created_at": "2022-10-06T12:22:25.000000Z",
            "updated_at": "2022-10-06T12:22:25.000000Z",
            "roles": [
                {
                    "id": 3,
                    "name": "user",
                    "created_at": "2021-01-06T17:27:36.000000Z",
                    "updated_at": "2022-04-23T22:28:13.000000Z"
                }
            ]
        },
        {
            "id": 119,
            "name": "Vivianne Treutel",
            "status": {
                "value": 1,
                "label": "active"
            },
            "created_at": "2022-10-06T12:22:25.000000Z",
            "updated_at": "2022-10-06T12:22:25.000000Z",
            "roles": [
                {
                    "id": 3,
                    "name": "user",
                    "created_at": "2021-01-06T17:27:36.000000Z",
                    "updated_at": "2022-04-23T22:28:13.000000Z"
                }
            ]
        }
    ]
}
 

Request      

POST api/users/index

GET api/users/index

Body Parameters

page  integer optional  

filter  object optional  

filter.except  integer[] optional  

Array containing IDs, excluding records from the list.

filter.search  string optional  

Search by keyword. Must be at least 3 characters. Must not be greater than 255 characters.

filter.status  integer optional  

Must be one of 1 or 0 (available only for admin.users.view).

filter.role  integer optional  

filter.orderby  string optional  

Sorting the result list. Must be one of created_at|asc, created_at|desc, updated_at|asc, or updated_at|desc.

filter.paginate  integer optional  

Number of records in the list. Must be one of 25, 50, or 100.

Response

Response Fields

id  integer  

name  string  

ip  string  

(available only for admin.users.view).

email  string  

(available only for admin.users.view or owner).

status  object  

Contains int value and string label

marketing  object  

Email marketing consent, contains int value and string label (available only for admin.users.view or owner).

created_at  string  

updated_at  string  

roles  object[]  

Contains relationships Roles.

socialites  object[]  

Contains relationships Socialites (available only for admin.users.view or owner).

meta  object  

Paging, filtering and sorting information.