About this endpoint
What it does
Returns a paginated list of job positions as a JSON object. You can filter the list by name and control pagination with per_page; setting include_related to true includes related job positions in each result item.
Query Parameter(s)
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| name | String | No | Filters job positions by name. |
| per_page | Integer | No | Number of items returned per page. Default: 1. |
| include_related | Boolean | No | Whether to include related job positions in each result item. Default: false. |
Response
Returns a JSON object with data, meta, and links fields. data is an array of job position objects, meta is an object containing pagination details, and links is an object containing pagination URLs.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| data | Object Array | Yes | Array of job position objects. Each item includes id (UUID), name, and slug. When include_related is true, each item may also include related_job_positions, an array of related job position objects with id (UUID), name, slug, and weight. |
| data[].id | String | Yes | Unique identifier of the job position. Format: UUID. |
| data[].name | String | Yes | Name of the job position. |
| data[].slug | String | Yes | URL-friendly slug for the job position. |
| data[].related_job_positions | Object Array | No | Related job positions with their relevancy weights. Only populated when include_related is set to true. |
| data[].related_job_positions[].id | String | Yes | Unique identifier of the related job position. Format: UUID. |
| data[].related_job_positions[].name | String | Yes | Name of the related job position. |
| data[].related_job_positions[].slug | String | Yes | URL-friendly slug for the related job position. |
| data[].related_job_positions[].weight | Number | Yes | Relevancy weight of the related job position. |
| meta | Object | Yes | Pagination metadata object. |
| meta.to | Integer | No | The index of the last item on the current page. |
| meta.from | Integer | No | The index of the first item on the current page. |
| meta.path | String | Yes | The base path used for pagination links. Format: URI. |
| meta.links | Object Array | Yes | List of pagination links for navigation UI. |
| meta.links[].url | String | No | URL for this pagination link, or null if not applicable. Format: URI. |
| meta.links[].label | String | Yes | Display label for this pagination link. |
| meta.links[].active | Boolean | Yes | Whether this pagination link corresponds to the current page. |
| meta.total | Integer | Yes | The total number of items across all pages. |
| meta.per_page | Integer | Yes | The number of items returned per page. |
| meta.last_page | Integer | Yes | The total number of pages. |
| meta.current_page | Integer | Yes | The current page number. |
| links | Object | Yes | Pagination navigation URLs object. |
| links.last | String | No | URL to the last page of results. Format: URI. |
| links.next | String | No | URL to the next page of results, or null if on the last page. Format: URI. |
| links.prev | String | No | URL to the previous page of results, or null if on the first page. Format: URI. |
| links.first | String | No | URL to the first page of results. Format: URI. |