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": 124,
        "name": "Dewitt Hessel",
        "status": {
            "value": 1,
            "label": "active"
        },
        "created_at": "2022-03-20T13:00:19.000000Z",
        "updated_at": "2022-03-20T13:00:19.000000Z",
        "roles": [
            {
                "id": 3,
                "name": "user",
                "created_at": "2021-01-06T17:27:36.000000Z",
                "updated_at": "2021-01-06T17:27:36.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": 121,
        "name": "Victoria Boehm",
        "status": {
            "value": 1,
            "label": "active"
        },
        "created_at": "2022-03-20T13:00:18.000000Z",
        "updated_at": "2022-03-20T13:00:18.000000Z",
        "roles": [
            {
                "id": 3,
                "name": "user",
                "created_at": "2021-01-06T17:27:36.000000Z",
                "updated_at": "2021-01-06T17:27:36.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": 1091,
            "name": "Velit quasi",
            "slug": "velit-quasi",
            "icon": null,
            "status": {
                "value": 1,
                "label": "active"
            },
            "real_depth": 0,
            "created_at": "2022-03-20T13:00:19.000000Z",
            "updated_at": "2022-03-20T13:00:19.000000Z"
        },
        {
            "id": 1092,
            "name": "Hic cum",
            "slug": "hic-cum",
            "icon": null,
            "status": {
                "value": 1,
                "label": "active"
            },
            "real_depth": 0,
            "created_at": "2022-03-20T13:00:19.000000Z",
            "updated_at": "2022-03-20T13:00:19.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": 1089,
            "name": "Expedita qui",
            "slug": "expedita-qui",
            "icon": null,
            "status": {
                "value": 1,
                "label": "active"
            },
            "real_depth": 0,
            "created_at": "2022-03-20T13:00:19.000000Z",
            "updated_at": "2022-03-20T13:00:19.000000Z"
        },
        {
            "id": 1090,
            "name": "Nam non",
            "slug": "nam-non",
            "icon": null,
            "status": {
                "value": 1,
                "label": "active"
            },
            "real_depth": 0,
            "created_at": "2022-03-20T13:00:19.000000Z",
            "updated_at": "2022-03-20T13:00:19.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": 173,
            "slug": "hic-voluptatem-qui-dignissimos-est-sint",
            "title": "Hic voluptatem qui dignissimos est sint.",
            "short_content": "Ipsam quia porro et amet id laborum reprehenderit. Sint alias ipsa aliquid incidunt suscipit. Vero quia iure quo. Ut ut adipisci fuga sit perferendis. Id est cupiditate consequatur eaque. Minus enim possimus reiciendis aut esse itaque laboriosam nesciunt. Ducimus natus porro natus. Amet velit doloribus ut. Illo voluptatem saepe et et consequuntur et. Nam iste odio id magnam. Ab quisquam quo dignissimos qui doloribus quam. Voluptates quas enim voluptatum voluptate repellat. Ducimus et enim labore",
            "content": "Ipsam quia porro et amet id laborum reprehenderit. Sint alias ipsa aliquid incidunt suscipit. Vero quia iure quo. Ut ut adipisci fuga sit perferendis. Id est cupiditate consequatur eaque. Minus enim possimus reiciendis aut esse itaque laboriosam nesciunt. Ducimus natus porro natus. Amet velit doloribus ut. Illo voluptatem saepe et et consequuntur et. Nam iste odio id magnam. Ab quisquam quo dignissimos qui doloribus quam. Voluptates quas enim voluptatum voluptate repellat. Ducimus et enim labore rem molestiae quia. Eligendi eum et non provident nobis iure et. Sed quo assumenda voluptatem omnis et et. Nihil distinctio aut voluptatibus at quod. Veritatis sint nesciunt deleniti nisi optio eligendi et. Et odit at amet velit qui odio. Beatae ut quasi vel unde est eos. Rerum enim autem accusamus. Et repellat dolore fugiat consequatur ut ducimus. Dicta sit laborum modi aut. Non eius minus qui est perspiciatis et ad maxime. Earum sed reprehenderit assumenda. Voluptas quia atque praesentium quis. Molestiae ut voluptas iure. Iure nulla eos impedit eos reprehenderit distinctio. Tenetur officia unde alias dicta totam tempora non quidem. Reiciendis atque aut libero nesciunt et reiciendis. Modi debitis placeat iusto id porro sapiente. Eius hic cumque dolor eos neque quidem. Qui laudantium veritatis temporibus corrupti pariatur. In id assumenda non aut tempore ipsa. Numquam aut tempora cum ducimus quia nulla. Quibusdam quam est aut magnam. Dolorem ea quidem quia voluptatem aperiam dolor enim. Repellendus et quas dolores velit tempora ut. Iusto hic fuga doloremque quia omnis explicabo amet. Sit architecto ut qui culpa omnis. Ex harum ipsa illo hic a. Sit omnis dolorem voluptate. Temporibus sequi sed ea est amet atque perspiciatis voluptate. Sint aut et qui voluptatem corporis. Qui aut esse ipsa at. Suscipit enim deserunt molestiae vero. Aut non sint esse architecto. Nesciunt eos quam id laborum sed deserunt. Similique occaecati voluptates at iusto.",
            "content_html": "<p>Ipsam quia porro et amet id laborum reprehenderit. Sint alias ipsa aliquid incidunt suscipit. Vero quia iure quo. Ut ut adipisci fuga sit perferendis. Id est cupiditate consequatur eaque. Minus enim possimus reiciendis aut esse itaque laboriosam nesciunt. Ducimus natus porro natus. Amet velit doloribus ut. Illo voluptatem saepe et et consequuntur et. Nam iste odio id magnam. Ab quisquam quo dignissimos qui doloribus quam. Voluptates quas enim voluptatum voluptate repellat. Ducimus et enim labore rem molestiae quia. Eligendi eum et non provident nobis iure et. Sed quo assumenda voluptatem omnis et et. Nihil distinctio aut voluptatibus at quod. Veritatis sint nesciunt deleniti nisi optio eligendi et. Et odit at amet velit qui odio. Beatae ut quasi vel unde est eos. Rerum enim autem accusamus. Et repellat dolore fugiat consequatur ut ducimus. Dicta sit laborum modi aut. Non eius minus qui est perspiciatis et ad maxime. Earum sed reprehenderit assumenda. Voluptas quia atque praesentium quis. Molestiae ut voluptas iure. Iure nulla eos impedit eos reprehenderit distinctio. Tenetur officia unde alias dicta totam tempora non quidem. Reiciendis atque aut libero nesciunt et reiciendis. Modi debitis placeat iusto id porro sapiente. Eius hic cumque dolor eos neque quidem. Qui laudantium veritatis temporibus corrupti pariatur. In id assumenda non aut tempore ipsa. Numquam aut tempora cum ducimus quia nulla. Quibusdam quam est aut magnam. Dolorem ea quidem quia voluptatem aperiam dolor enim. Repellendus et quas dolores velit tempora ut. Iusto hic fuga doloremque quia omnis explicabo amet. Sit architecto ut qui culpa omnis. Ex harum ipsa illo hic a. Sit omnis dolorem voluptate. Temporibus sequi sed ea est amet atque perspiciatis voluptate. Sint aut et qui voluptatem corporis. Qui aut esse ipsa at. Suscipit enim deserunt molestiae vero. Aut non sint esse architecto. Nesciunt eos quam id laborum sed deserunt. Similique occaecati voluptates at iusto.</p>",
            "no_more_content_html": "<p>Ipsam quia porro et amet id laborum reprehenderit. Sint alias ipsa aliquid incidunt suscipit. Vero quia iure quo. Ut ut adipisci fuga sit perferendis. Id est cupiditate consequatur eaque. Minus enim possimus reiciendis aut esse itaque laboriosam nesciunt. Ducimus natus porro natus. Amet velit doloribus ut. Illo voluptatem saepe et et consequuntur et. Nam iste odio id magnam. Ab quisquam quo dignissimos qui doloribus quam. Voluptates quas enim voluptatum voluptate repellat. Ducimus et enim labore rem molestiae quia. Eligendi eum et non provident nobis iure et. Sed quo assumenda voluptatem omnis et et. Nihil distinctio aut voluptatibus at quod. Veritatis sint nesciunt deleniti nisi optio eligendi et. Et odit at amet velit qui odio. Beatae ut quasi vel unde est eos. Rerum enim autem accusamus. Et repellat dolore fugiat consequatur ut ducimus. Dicta sit laborum modi aut. Non eius minus qui est perspiciatis et ad maxime. Earum sed reprehenderit assumenda. Voluptas quia atque praesentium quis. Molestiae ut voluptas iure. Iure nulla eos impedit eos reprehenderit distinctio. Tenetur officia unde alias dicta totam tempora non quidem. Reiciendis atque aut libero nesciunt et reiciendis. Modi debitis placeat iusto id porro sapiente. Eius hic cumque dolor eos neque quidem. Qui laudantium veritatis temporibus corrupti pariatur. In id assumenda non aut tempore ipsa. Numquam aut tempora cum ducimus quia nulla. Quibusdam quam est aut magnam. Dolorem ea quidem quia voluptatem aperiam dolor enim. Repellendus et quas dolores velit tempora ut. Iusto hic fuga doloremque quia omnis explicabo amet. Sit architecto ut qui culpa omnis. Ex harum ipsa illo hic a. Sit omnis dolorem voluptate. Temporibus sequi sed ea est amet atque perspiciatis voluptate. Sint aut et qui voluptatem corporis. Qui aut esse ipsa at. Suscipit enim deserunt molestiae vero. Aut non sint esse architecto. Nesciunt eos quam id laborum sed deserunt. Similique occaecati voluptates at iusto.</p>",
            "less_content_html": "<p>Ipsam quia porro et amet id laborum reprehenderit. Sint alias ipsa aliquid incidunt suscipit. Vero quia iure quo. Ut ut adipisci fuga sit perferendis. Id est cupiditate consequatur eaque. Minus enim possimus reiciendis aut esse itaque laboriosam nesciunt. Ducimus natus porro natus. Amet velit doloribus ut. Illo voluptatem saepe et et consequuntur et. Nam iste odio id magnam. Ab quisquam quo dignissimos qui doloribus quam. Voluptates quas enim voluptatum voluptate repellat. Ducimus et enim labore rem molestiae quia. Eligendi eum et non provident nobis iure et. Sed quo assumenda voluptatem omnis et et. Nihil distinctio aut voluptatibus at quod. Veritatis sint nesciunt deleniti nisi optio eligendi et. Et odit at amet velit qui odio. Beatae ut quasi vel unde est eos. Rerum enim autem accusamus. Et repellat dolore fugiat consequatur ut ducimus. Dicta sit laborum modi aut. Non eius minus qui est perspiciatis et ad maxime. Earum sed reprehenderit assumenda. Voluptas quia atque praesentium quis. Molestiae ut voluptas iure. Iure nulla eos impedit eos reprehenderit distinctio. Tenetur officia unde alias dicta totam tempora non quidem. Reiciendis atque aut libero nesciunt et reiciendis. Modi debitis placeat iusto id porro sapiente. Eius hic cumque dolor eos neque quidem. Qui laudantium veritatis temporibus corrupti pariatur. In id assumenda non aut tempore ipsa. Numquam aut tempora cum ducimus quia nulla. Quibusdam quam est aut magnam. Dolorem ea quidem quia voluptatem aperiam dolor enim. Repellendus et quas dolores velit tempora ut. Iusto hic fuga doloremque quia omnis explicabo amet. Sit architecto ut qui culpa omnis. Ex harum ipsa illo hic a. Sit omnis dolorem voluptate. Temporibus sequi sed ea est amet atque perspiciatis voluptate. Sint aut et qui voluptatem corporis. Qui aut esse ipsa at. Suscipit enim deserunt molestiae vero. Aut non sint esse architecto. Nesciunt eos quam id laborum sed deserunt. Similique occaecati voluptates at iusto.</p>",
            "seo_title": null,
            "meta_title": "Hic voluptatem qui dignissimos est sint.",
            "seo_desc": "Architecto error rerum accusantium reprehenderit. Id aut ullam repellat et. Nihil veritatis velit et blanditiis molestiae rem sed. Quo est esse ratione.",
            "meta_desc": "Architecto error rerum accusantium reprehenderit. Id aut ullam repellat et. Nihil veritatis velit et blanditiis molestiae rem sed. Quo est esse ratione.",
            "seo_noindex": false,
            "seo_nofollow": false,
            "status": {
                "value": 1,
                "label": "active"
            },
            "comment": true,
            "first_image": null,
            "published_at": "2021-10-29T14:29:09.000000Z",
            "created_at": "2022-03-20T13:00:19.000000Z",
            "updated_at": "2022-03-20T13:00:19.000000Z",
            "user": {
                "id": 122,
                "name": "Alysson Lesch",
                "status": {
                    "value": 0,
                    "label": "inactive"
                },
                "created_at": "2022-03-20T13:00:19.000000Z",
                "updated_at": "2022-03-20T13:00:19.000000Z"
            },
            "links": {
                "web": "http://demo.icore.intelekt.net.pl/posts/hic-voluptatem-qui-dignissimos-est-sint"
            }
        },
        {
            "id": 174,
            "slug": "aut-placeat-ab-debitis-laudantium-nihil",
            "title": "Aut placeat ab debitis laudantium nihil.",
            "short_content": "Voluptatem amet voluptatum voluptatem numquam perspiciatis ut voluptatibus. Omnis autem qui tempora atque molestiae culpa rerum. Aliquam earum voluptatibus ea consequatur quasi. Et sit deserunt et nam incidunt odio. Rerum velit ut quia totam minus. Sit sequi voluptatem quia soluta enim mollitia. Quam ducimus sit quisquam ea aut voluptatem amet. Eligendi praesentium beatae sed magni qui magnam. Sapiente dolorum perspiciatis pariatur et. Quia et quos ut aut adipisci. Ratione dignissimos saepe dict",
            "content": "Voluptatem amet voluptatum voluptatem numquam perspiciatis ut voluptatibus. Omnis autem qui tempora atque molestiae culpa rerum. Aliquam earum voluptatibus ea consequatur quasi. Et sit deserunt et nam incidunt odio. Rerum velit ut quia totam minus. Sit sequi voluptatem quia soluta enim mollitia. Quam ducimus sit quisquam ea aut voluptatem amet. Eligendi praesentium beatae sed magni qui magnam. Sapiente dolorum perspiciatis pariatur et. Quia et quos ut aut adipisci. Ratione dignissimos saepe dicta eveniet. Et inventore aut earum explicabo accusamus. Perferendis tenetur occaecati est pariatur occaecati sunt est laboriosam. Aliquam et sed praesentium vel voluptas et. Rem sint et facilis et non reiciendis aut. Reprehenderit explicabo consequuntur inventore. Ut quo mollitia occaecati fugit deserunt dolor dolor. Aliquam explicabo totam eos qui. Doloribus natus placeat tenetur qui voluptas minima incidunt. Ut dolor omnis commodi ab delectus possimus aut. Officia occaecati rerum impedit minus. Quibusdam esse aut molestiae fugit voluptas. Beatae nemo in saepe est ratione dolorum. Qui quisquam deleniti aliquid sit dolores molestiae. Est nulla natus et aut consequatur sit optio. Ea consequatur aut eos quod dolores nihil laboriosam est. Sapiente molestias soluta et esse velit deleniti unde saepe. Magni eum dolor magni dicta fuga laborum. Necessitatibus in labore in velit aut porro. Nostrum eum natus beatae esse odit ratione placeat. Incidunt qui molestiae sunt enim qui. Nisi accusamus nihil quod. Quae ut dolore ex officiis. Nisi vel natus in necessitatibus qui deserunt sunt ab. Consequatur ipsum in voluptas pariatur. Dolorum odit molestias aperiam amet eum aut. Sequi ut amet porro quisquam molestias. Et ea praesentium molestiae enim est quis aut. Aliquid qui voluptatem consequatur esse quidem sint dolorem distinctio. Odit qui rerum laudantium dolor aut distinctio. Optio voluptatem aliquid et impedit sit.",
            "content_html": "<p>Voluptatem amet voluptatum voluptatem numquam perspiciatis ut voluptatibus. Omnis autem qui tempora atque molestiae culpa rerum. Aliquam earum voluptatibus ea consequatur quasi. Et sit deserunt et nam incidunt odio. Rerum velit ut quia totam minus. Sit sequi voluptatem quia soluta enim mollitia. Quam ducimus sit quisquam ea aut voluptatem amet. Eligendi praesentium beatae sed magni qui magnam. Sapiente dolorum perspiciatis pariatur et. Quia et quos ut aut adipisci. Ratione dignissimos saepe dicta eveniet. Et inventore aut earum explicabo accusamus. Perferendis tenetur occaecati est pariatur occaecati sunt est laboriosam. Aliquam et sed praesentium vel voluptas et. Rem sint et facilis et non reiciendis aut. Reprehenderit explicabo consequuntur inventore. Ut quo mollitia occaecati fugit deserunt dolor dolor. Aliquam explicabo totam eos qui. Doloribus natus placeat tenetur qui voluptas minima incidunt. Ut dolor omnis commodi ab delectus possimus aut. Officia occaecati rerum impedit minus. Quibusdam esse aut molestiae fugit voluptas. Beatae nemo in saepe est ratione dolorum. Qui quisquam deleniti aliquid sit dolores molestiae. Est nulla natus et aut consequatur sit optio. Ea consequatur aut eos quod dolores nihil laboriosam est. Sapiente molestias soluta et esse velit deleniti unde saepe. Magni eum dolor magni dicta fuga laborum. Necessitatibus in labore in velit aut porro. Nostrum eum natus beatae esse odit ratione placeat. Incidunt qui molestiae sunt enim qui. Nisi accusamus nihil quod. Quae ut dolore ex officiis. Nisi vel natus in necessitatibus qui deserunt sunt ab. Consequatur ipsum in voluptas pariatur. Dolorum odit molestias aperiam amet eum aut. Sequi ut amet porro quisquam molestias. Et ea praesentium molestiae enim est quis aut. Aliquid qui voluptatem consequatur esse quidem sint dolorem distinctio. Odit qui rerum laudantium dolor aut distinctio. Optio voluptatem aliquid et impedit sit.</p>",
            "no_more_content_html": "<p>Voluptatem amet voluptatum voluptatem numquam perspiciatis ut voluptatibus. Omnis autem qui tempora atque molestiae culpa rerum. Aliquam earum voluptatibus ea consequatur quasi. Et sit deserunt et nam incidunt odio. Rerum velit ut quia totam minus. Sit sequi voluptatem quia soluta enim mollitia. Quam ducimus sit quisquam ea aut voluptatem amet. Eligendi praesentium beatae sed magni qui magnam. Sapiente dolorum perspiciatis pariatur et. Quia et quos ut aut adipisci. Ratione dignissimos saepe dicta eveniet. Et inventore aut earum explicabo accusamus. Perferendis tenetur occaecati est pariatur occaecati sunt est laboriosam. Aliquam et sed praesentium vel voluptas et. Rem sint et facilis et non reiciendis aut. Reprehenderit explicabo consequuntur inventore. Ut quo mollitia occaecati fugit deserunt dolor dolor. Aliquam explicabo totam eos qui. Doloribus natus placeat tenetur qui voluptas minima incidunt. Ut dolor omnis commodi ab delectus possimus aut. Officia occaecati rerum impedit minus. Quibusdam esse aut molestiae fugit voluptas. Beatae nemo in saepe est ratione dolorum. Qui quisquam deleniti aliquid sit dolores molestiae. Est nulla natus et aut consequatur sit optio. Ea consequatur aut eos quod dolores nihil laboriosam est. Sapiente molestias soluta et esse velit deleniti unde saepe. Magni eum dolor magni dicta fuga laborum. Necessitatibus in labore in velit aut porro. Nostrum eum natus beatae esse odit ratione placeat. Incidunt qui molestiae sunt enim qui. Nisi accusamus nihil quod. Quae ut dolore ex officiis. Nisi vel natus in necessitatibus qui deserunt sunt ab. Consequatur ipsum in voluptas pariatur. Dolorum odit molestias aperiam amet eum aut. Sequi ut amet porro quisquam molestias. Et ea praesentium molestiae enim est quis aut. Aliquid qui voluptatem consequatur esse quidem sint dolorem distinctio. Odit qui rerum laudantium dolor aut distinctio. Optio voluptatem aliquid et impedit sit.</p>",
            "less_content_html": "<p>Voluptatem amet voluptatum voluptatem numquam perspiciatis ut voluptatibus. Omnis autem qui tempora atque molestiae culpa rerum. Aliquam earum voluptatibus ea consequatur quasi. Et sit deserunt et nam incidunt odio. Rerum velit ut quia totam minus. Sit sequi voluptatem quia soluta enim mollitia. Quam ducimus sit quisquam ea aut voluptatem amet. Eligendi praesentium beatae sed magni qui magnam. Sapiente dolorum perspiciatis pariatur et. Quia et quos ut aut adipisci. Ratione dignissimos saepe dicta eveniet. Et inventore aut earum explicabo accusamus. Perferendis tenetur occaecati est pariatur occaecati sunt est laboriosam. Aliquam et sed praesentium vel voluptas et. Rem sint et facilis et non reiciendis aut. Reprehenderit explicabo consequuntur inventore. Ut quo mollitia occaecati fugit deserunt dolor dolor. Aliquam explicabo totam eos qui. Doloribus natus placeat tenetur qui voluptas minima incidunt. Ut dolor omnis commodi ab delectus possimus aut. Officia occaecati rerum impedit minus. Quibusdam esse aut molestiae fugit voluptas. Beatae nemo in saepe est ratione dolorum. Qui quisquam deleniti aliquid sit dolores molestiae. Est nulla natus et aut consequatur sit optio. Ea consequatur aut eos quod dolores nihil laboriosam est. Sapiente molestias soluta et esse velit deleniti unde saepe. Magni eum dolor magni dicta fuga laborum. Necessitatibus in labore in velit aut porro. Nostrum eum natus beatae esse odit ratione placeat. Incidunt qui molestiae sunt enim qui. Nisi accusamus nihil quod. Quae ut dolore ex officiis. Nisi vel natus in necessitatibus qui deserunt sunt ab. Consequatur ipsum in voluptas pariatur. Dolorum odit molestias aperiam amet eum aut. Sequi ut amet porro quisquam molestias. Et ea praesentium molestiae enim est quis aut. Aliquid qui voluptatem consequatur esse quidem sint dolorem distinctio. Odit qui rerum laudantium dolor aut distinctio. Optio voluptatem aliquid et impedit sit.</p>",
            "seo_title": "Unde est animi consequatur numquam ipsa.",
            "meta_title": "Unde est animi consequatur numquam ipsa.",
            "seo_desc": "Fuga nam at dicta fugiat sapiente et id. Ut sunt dolores iste aut cum. Reprehenderit neque necessitatibus iusto deserunt animi. Blanditiis culpa maxime aut esse harum.",
            "meta_desc": "Fuga nam at dicta fugiat sapiente et id. Ut sunt dolores iste aut cum. Reprehenderit neque necessitatibus iusto deserunt animi. Blanditiis culpa maxime aut esse harum.",
            "seo_noindex": false,
            "seo_nofollow": false,
            "status": {
                "value": 1,
                "label": "active"
            },
            "comment": true,
            "first_image": null,
            "published_at": "2021-11-11T14:26:03.000000Z",
            "created_at": "2022-03-20T13:00:19.000000Z",
            "updated_at": "2022-03-20T13:00:19.000000Z",
            "user": {
                "id": 123,
                "name": "Kenton Hamill",
                "status": {
                    "value": 1,
                    "label": "active"
                },
                "created_at": "2022-03-20T13:00:19.000000Z",
                "updated_at": "2022-03-20T13:00:19.000000Z"
            },
            "links": {
                "web": "http://demo.icore.intelekt.net.pl/posts/aut-placeat-ab-debitis-laudantium-nihil"
            }
        }
    ]
}
 

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": 180,
            "name": "Ut",
            "slug": "ut",
            "created_at": "2022-03-20T13:00:19.000000Z",
            "updated_at": "2022-03-20T13:00:19.000000Z"
        },
        {
            "id": 181,
            "name": "Amet",
            "slug": "amet",
            "created_at": "2022-03-20T13:00:19.000000Z",
            "updated_at": "2022-03-20T13:00:19.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}

URL Parameters

token  integer  

The token ID.

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\": \"created_at|asc\",
        \"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": "created_at|asc",
        "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' => 'created_at|asc',
                '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": "created_at|asc",
        "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": 125,
            "name": "Evie DuBuque",
            "status": {
                "value": 1,
                "label": "active"
            },
            "created_at": "2022-03-20T13:00:19.000000Z",
            "updated_at": "2022-03-20T13:00:19.000000Z",
            "roles": [
                {
                    "id": 3,
                    "name": "user",
                    "created_at": "2021-01-06T17:27:36.000000Z",
                    "updated_at": "2021-01-06T17:27:36.000000Z"
                }
            ]
        },
        {
            "id": 126,
            "name": "Arvid McGlynn",
            "status": {
                "value": 1,
                "label": "active"
            },
            "created_at": "2022-03-20T13:00:19.000000Z",
            "updated_at": "2022-03-20T13:00:19.000000Z",
            "roles": [
                {
                    "id": 3,
                    "name": "user",
                    "created_at": "2021-01-06T17:27:36.000000Z",
                    "updated_at": "2021-01-06T17:27:36.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 relationship Roles.

socialites  object[]  

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

meta  object  

Paging, filtering and sorting information.