Skip to content

API – Requests

Paths are under https://api.innovanet.com. Header Authorization: Bearer inv_mcp_…. The innovanet() helper is in API.

Form fields differ by request type. Load the forms and their fields first.

GET /api/requests/forms

$res = innovanet('GET', '/api/requests/forms');

Response 200 – data is the list of forms (id, name). An unknown form on later calls returns 404.

Fields: GET /api/requests/forms/4/inputs. Each field has id and type. Request values are an object keyed by field id.

My requests: GET /api/requests/forms/4/requests?year=2026.

{
  "success": true,
  "data": [
    {
      "id": 18,
      "form_id": 4,
      "date_created": "2026-11-05 11:00:00",
      "price": 120,
      "status": "pending"
    }
  ]
}

Detail: GET /api/requests/requests/18.

POST /api/requests/forms/{formId}/requests

Field Type Required Description
values object yes field id → value
price number no amount, when the form has one

Request

{
  "values": {
    "12": "New monitor",
    "13": "for the designer"
  },
  "price": 350
}

PHP

$res = innovanet('POST', '/api/requests/forms/4/requests', [
    'values' => [
        '12' => 'New monitor',
        '13' => 'for the designer',
    ],
    'price' => 350,
]);

Response 201

{
  "success": true,
  "message": "Žiadosť bola vytvorená",
  "data": { "id": 18 }
}

A missing required field returns 422 and errors. Attachment fields go as multipart file_{fieldId}, not in JSON.

Other paths

Each path below belongs to this module. Field names are the ones the API reads. A downloaded file is not JSON.

GET /api/requests/forms/{formId}/years

No body.

Response 200 – Envelope { "success": true, "data": ... }.

GET /api/requests/forms/{formId}/limit

Parameters

Field Type Required
year string no

The API reads these fields. A field is required when the table says yes.

Response 200 – Envelope { "success": true, "data": ... }.

GET /api/requests/forms/{formId}/limits-overview

Parameters

Field Type Required
year string no

The API reads these fields. A field is required when the table says yes.

Response 200 – Envelope { "success": true, "data": ... }.

GET /api/requests/forms/{formId}/requests/managed/export

Parameters

Field Type Required
year string no

The API reads these fields. A field is required when the table says yes.

Response – The response is a file, not JSON.

GET /api/requests/forms/{formId}/requests/managed

Parameters

Field Type Required
year string no

The API reads these fields. A field is required when the table says yes.

Response 200 – Envelope { "success": true, "data": ... }.

GET /api/requests/requests/{requestId}/attachments/download

Only paths stored by the server when the attachment of this request was uploaded (<tenant>/requests/...) are served; paths sent by the client are ignored when a request is created.

Parameters

Field Type Required
path string no

The API reads these fields. A field is required when the table says yes.

Response – The response is a file, not JSON.

GET /api/request-forms

No body.

Response 200 – Envelope { "success": true, "data": ... }.

GET /api/request-forms/{id}

No body.

Response 200 – Envelope { "success": true, "data": ... }.

POST /api/request-forms

Body

Field Type Required
name string yes
description string no
description2 string no
approver string no
has_limit string no
hide_limit boolean no
boss_approval boolean no
team_leader_approval boolean no
boss_perm boolean no
attachment boolean no
user_id integer no
viewers string no
hr_info boolean no
order integer no
{
  "name": "text",
  "description": "text",
  "description2": "text",
  "approver": "text",
  "has_limit": "text",
  "hide_limit": true,
  "boss_approval": true,
  "team_leader_approval": true,
  "boss_perm": true,
  "attachment": true,
  "user_id": 1,
  "viewers": "text",
  "hr_info": true,
  "order": 1
}
$res = innovanet('POST', '/api/request-forms', [
    'name' => 'text',
    'description' => 'text',
    'description2' => 'text',
    'approver' => 'text',
    'has_limit' => 'text',
    'hide_limit' => true,
    'boss_approval' => true,
    'team_leader_approval' => true,
    'boss_perm' => true,
    'attachment' => true,
    'user_id' => 1,
    'viewers' => 'text',
    'hr_info' => true,
    'order' => 1,
]);

Response 201 – Envelope { "success": true, "data": ... }.

PUT /api/request-forms/{id}

Body

Field Type Required
name string no
description string no
description2 string no
approver string no
has_limit string no
hide_limit boolean no
boss_approval boolean no
team_leader_approval boolean no
boss_perm boolean no
attachment boolean no
user_id integer no
viewers string no
hr_info boolean no
order integer no
{
  "name": "text",
  "description": "text",
  "description2": "text",
  "approver": "text",
  "has_limit": "text",
  "hide_limit": true,
  "boss_approval": true,
  "team_leader_approval": true,
  "boss_perm": true,
  "attachment": true,
  "user_id": 1,
  "viewers": "text",
  "hr_info": true,
  "order": 1
}
$res = innovanet('PUT', '/api/request-forms/1', [
    'name' => 'text',
    'description' => 'text',
    'description2' => 'text',
    'approver' => 'text',
    'has_limit' => 'text',
    'hide_limit' => true,
    'boss_approval' => true,
    'team_leader_approval' => true,
    'boss_perm' => true,
    'attachment' => true,
    'user_id' => 1,
    'viewers' => 'text',
    'hr_info' => true,
    'order' => 1,
]);

Response 200 – Envelope { "success": true, "data": ... }.

DELETE /api/request-forms/{id}

No body.

Response 200 – Envelope { "success": true, "data": ... }.

GET /api/request-forms/{id}/inputs

No body.

Response 200 – Envelope { "success": true, "data": ... }.

POST /api/request-forms/{id}/inputs

Body

Field Type Required
name string yes
type date yes
required boolean no
options string no
visible boolean no
order integer no
{
  "name": "text",
  "type": "2026-11-05",
  "required": true,
  "options": "text",
  "visible": true,
  "order": 1
}
$res = innovanet('POST', '/api/request-forms/1/inputs', [
    'name' => 'text',
    'type' => 'text',
    'required' => true,
    'options' => 'text',
    'visible' => true,
    'order' => 1,
]);

Response 201 – Envelope { "success": true, "data": ... }.

PUT /api/request-forms/{formId}/inputs/{inputId}

Body

Field Type Required
name string no
type date no
required boolean no
options string no
visible boolean no
order integer no
{
  "name": "text",
  "type": "2026-11-05",
  "required": true,
  "options": "text",
  "visible": true,
  "order": 1
}
$res = innovanet('PUT', '/api/request-forms/1/inputs/1', [
    'name' => 'text',
    'type' => 'text',
    'required' => true,
    'options' => 'text',
    'visible' => true,
    'order' => 1,
]);

Response 200 – Envelope { "success": true, "data": ... }.

DELETE /api/request-forms/{formId}/inputs/{inputId}

No body.

Response 200 – Envelope { "success": true, "data": ... }.

GET /api/request-forms/{id}/limits

Parameters

Field Type Required
year string no

The API reads these fields. A field is required when the table says yes.

Response 200 – Envelope { "success": true, "data": ... }.

PUT /api/request-forms/{id}/limits/group

Body

Field Type Required
annual_limit number yes
{
  "annual_limit": 1
}
$res = innovanet('PUT', '/api/request-forms/1/limits/group', [
    'annual_limit' => 1,
]);

Response 200 – Envelope { "success": true, "data": ... }.

POST /api/request-forms/{id}/limits/user

Body

Field Type Required
user_id integer yes
annual_limit number yes
year integer no
{
  "user_id": 1,
  "annual_limit": 1,
  "year": 1
}
$res = innovanet('POST', '/api/request-forms/1/limits/user', [
    'user_id' => 1,
    'annual_limit' => 1,
    'year' => 1,
]);

Response 200 – Envelope { "success": true, "data": ... }.

POST /api/request-forms/{id}/limits/group-user

Body

Field Type Required
user_id integer yes
{
  "user_id": 1
}
$res = innovanet('POST', '/api/request-forms/1/limits/group-user', [
    'user_id' => 1,
]);

Response 200 – Envelope { "success": true, "data": ... }.

DELETE /api/request-forms/{id}/limits/user/{userId}

Parameters

Field Type Required
year string no

The API reads these fields. A field is required when the table says yes.

Response 200 – Envelope { "success": true, "data": ... }.


Want to try this feature? Start your innovanet trial →