# Primo Documentation: English Developers API Reference ## API Reference - [English / Developers / API Reference / Devices (49 pages)](https://docs.getprimo.com/_llms/en/developers/api-reference/devices.txt): Get all devices (deprecated), Create a device, Update several devices, Export devices as CSV, Export the device and employee inventory as CSV, Get the device search filter catalog, Get a device by ID, Delete a device, Update a device, Lock a device, Unlock a device, Wipe a device, Run a script on one device, List a device's script history, Retire a device, Reboot a device, Disenroll a device, Move a device to stock, Move a device to in-use, Put a device back in stock, Update a device owner, Update device tags, Get device events, List local user accounts on a device, List local user accounts on multiple devices, Get device code history, Get device reachability, Get code history for multiple devices, Get device custom fields, Get custom fields for multiple devices, Set a device custom field value, Clear a device custom field value, Get devices, optionally narrowed by a filter, Count devices for up to 20 filters in one call, Set device custom field values in batch, List software on a device, List the MDM controls that apply to a device, Get software install logs on a device, Install a software on a device, Uninstall a software from a device, Sync a device software state, List past activities for a device, List upcoming activities for a device, Cancel a queued activity on a device, Resend one MDM control's configuration profile to one device, Refresh Primo's record of a device from the MDM, Ask a device to report its state back to the MDM, List MDM commands for a device, Get results for an MDM command. ### Admins - [Get all admins](https://docs.getprimo.com/api-reference/admins/get-all-admins.md): Return the list of admin users for your company, with their first and last names when known. Each entry is either an employee (with an id) or an external user (with its userId, the id a ticket carries for an EXTERNAL_ADMIN actor). roleName is the Clerk role key. - [Email the company admins](https://docs.getprimo.com/api-reference/admins/email-the-company-admins.md): Send an email to the admins of your company. Recipients can only be admins of your own company: either the ones named in adminIds, or all of them when adminIds is omitted. There is no way to email any other address. - [Email an admin a recap](https://docs.getprimo.com/api-reference/admins/email-an-admin-a-recap.md): Send the admins of your company a recap email, by default the digest of one AI dashboard. Primo draws its fixed recap email from the blocks you fill in (numbers, actions, list, breakdown, insight, agents); the title and the footer are added by Primo, and the dashboard button appears when dashboardId… ### Company - [Get the authenticated company](https://docs.getprimo.com/api-reference/company/get-the-authenticated-company.md): Return the company associated with the API key: its id, name and dates, and `appleMdm`, the state of its Apple MDM. `appleMdm.apnsTopicId` is the identifier of the push topic of the installed APNs (Apple Push Notification) certificate, the uuid of `com.apple.mgmt.External.`; the cockpit shows… - [Get the company metrics report](https://docs.getprimo.com/api-reference/company/get-the-company-metrics-report.md): Return the KPI report of the authenticated company as JSON: use it to summarise the company's situation, build a report or answer how-many questions at a glance. `report` holds the headline counts (devices in use, assigned or not, and in stock; employees to enroll or enrolled; devices with MDM on, o… - [Get the company's Setup](https://docs.getprimo.com/api-reference/company/get-the-companys-setup.md): Return the company's Setup, the checklist that takes a new customer from signing to running Primo: `upNext`, the tasks to do first, and `sections`, every task by product with its status (TODO, IN_PROGRESS, DONE or SKIPPED), who moved it, why Primo AI skipped it, whether it can start, and `names`, th… ### CustomFields - [List custom fields](https://docs.getprimo.com/api-reference/customfields/list-custom-fields.md): Return a paginated list of custom field definitions for your company — definitions only, without the values stored on entities. To read or write the values on a specific entity, use `getDeviceCustomFields`/`getDevicesCustomFields` (devices) or `getAccessoryCustomFields` (accessories). Defaults to AC… - [Create a custom field](https://docs.getprimo.com/api-reference/customfields/create-a-custom-field.md): Create a new custom field definition. Labels are not constrained to be unique. Options are only allowed for SELECT and MULTI_SELECT field types. - [Get a custom field by ID](https://docs.getprimo.com/api-reference/customfields/get-a-custom-field-by-id.md): Return the custom field definition for the given custom field ID — the definition only, not the values stored on entities. To read or write values, use the per-entity endpoints (`getDeviceCustomFields`, `getAccessoryCustomFields`, …). - [Update a custom field](https://docs.getprimo.com/api-reference/customfields/update-a-custom-field.md): Update label, applyTo (widen-only), optionsToAdd, or optionsToRename on a custom field. At least one field must be provided. Archived fields cannot be updated. - [Archive a custom field](https://docs.getprimo.com/api-reference/customfields/archive-a-custom-field.md): Archive a custom field definition. Archived fields are no longer offered for new values but remain readable. Returns 409 if the field has active consumers (related entities must be cleared first). ### Workspace - [Get all companies in the workspace](https://docs.getprimo.com/api-reference/workspace/get-all-companies-in-the-workspace.md): Return the list of companies in your workspace. Only accessible with a Workspace API key or through the Workspace MCP. - [Create a company in the workspace](https://docs.getprimo.com/api-reference/workspace/create-a-company-in-the-workspace.md): Create a company in your workspace as a draft. Nothing is provisioned yet: configure its options, then activate it. The name must be unique across Primo and the domain unique within your workspace. Only accessible with a Workspace API key or through the Workspace MCP. - [Get a company by ID](https://docs.getprimo.com/api-reference/workspace/get-a-company-by-id.md): Return the company details for the given company ID, including its status and its subscription options. Answers for a company that is still a draft. Only accessible with a Workspace API key or through the Workspace MCP. - [Update the options of a draft company](https://docs.getprimo.com/api-reference/workspace/update-the-options-of-a-draft-company.md): Update the subscription options of a company that has not been activated yet. Only the fields you send are changed. Activation closes this endpoint: an activated company answers 409 and its configuration is then managed from the Primo cockpit. Only accessible with a Workspace API key or through the… - [Activate a draft company](https://docs.getprimo.com/api-reference/workspace/activate-a-draft-company.md): Activate a draft company: it becomes usable, its administrators are granted access, and it starts being billed according to its options. Irreversible, and the options can no longer be changed through the API afterwards. Only accessible with a Workspace API key or through the Workspace MCP. ### WorkspaceCatalog - [Create products in the workspace catalog](https://docs.getprimo.com/api-reference/workspacecatalog/create-products-in-the-workspace-catalog.md): Create up to 100 products in the catalog of your workspace in one call. Every product is checked before anything is created: if one is invalid, the call answers 400 with the position of the product in the issue path (products.2.countries.0...) and nothing is created. The valid products are then crea… ### Scripts - [List the saved scripts](https://docs.getprimo.com/api-reference/scripts/list-the-saved-scripts.md): Return your company's saved scripts as JSON — id, name, and the platforms each one can run on. Use this to discover a `scriptId` before calling `runScript` or `runDeviceScript`. To add the ready-made scripts Primo maintains for a known issue, use `addRemediationKit`. - [List script runs](https://docs.getprimo.com/api-reference/scripts/list-script-runs.md): Return the paginated history of script runs, newest first — what was run, on which target, by whom, and how many devices are in each execution status. Use this to answer "what scripts have been run recently?". - [Run a script on a target](https://docs.getprimo.com/api-reference/scripts/run-a-script-on-a-target.md): Run a script on all devices, on one or more device groups, or on an explicit list of devices — intersected with the given platforms. Pass `{ "scriptId": 12 }` to run a saved script (see `getScripts`), or `{ "contents": "..." }` to send the source inline. An inline run may only target a single device… - [Count the devices a script run would reach](https://docs.getprimo.com/api-reference/scripts/count-the-devices-a-script-run-would-reach.md): Return how many devices a run with this target and these platforms would resolve to, using exactly the same resolution as `runScript`. Nothing is executed. Call this before `runScript` to check the blast radius, especially with `target.type = "all"`. - [List the per-device results of a script run](https://docs.getprimo.com/api-reference/scripts/list-the-per-device-results-of-a-script-run.md): Return the paginated executions of one script run — one per targeted device, each with its status, output, exit code and runtime. Use this to see which devices succeeded and read the script output. - [Get a script run](https://docs.getprimo.com/api-reference/scripts/get-a-script-run.md): Return one script run: the script as executed (including its source), the resolved target, and the count of executions in each status. This is the endpoint to poll after `runScript` to follow progress. - [Get a saved script and its source](https://docs.getprimo.com/api-reference/scripts/get-a-saved-script-and-its-source.md): Return one saved script with its full source. Use this to review what a script does before running it. To list the available scripts, use `getScripts`. - [Add a Primo remediation kit to Fleet](https://docs.getprimo.com/api-reference/scripts/add-a-primo-remediation-kit-to-fleet.md): Put in place everything a kit Primo maintains for a known issue needs: its scripts in your script library, and its reports in Fleet, which each computer runs every hour to tell what is left to fix. Returns each script with its `scriptId`, its purpose (`check`, `remediate` or `manual`) and the platfo… - [Read what a remediation kit's reports found on each device](https://docs.getprimo.com/api-reference/scripts/read-what-a-remediation-kits-reports-found-on-each-device.md): Return what each computer last reported to a kit's Fleet reports, refreshed every hour without running anything: a count of devices per kind of finding, the devices with something left to fix (paginated, narrowed by `platform` or `status`), and the enrolled computers that have not reported yet. A co… ### MdmControls - [Get all MDM controls](https://docs.getprimo.com/api-reference/mdmcontrols/get-all-mdm-controls.md): Return the list of MDM controls configured for your company — the device policies deployed to your fleet (disk encryption, screen lock, OS restrictions, installed profiles…) — with id, name, type, platform, tags, enabled, and target method. Use `getMdmControl` for one control's full configuration an… - [Create an MDM control](https://docs.getprimo.com/api-reference/mdmcontrols/create-an-mdm-control.md): Create a new MDM control of the given `type` with its `configurationPayload` and targeting. Discover creatable types and their config JSON Schema via GET /mdm-controls/catalog. `name` is optional — when omitted, the catalog default name for the type is used; supply a name to create several controls… - [Get the MDM control type catalog](https://docs.getprimo.com/api-reference/mdmcontrols/get-the-mdm-control-type-catalog.md): Return the catalog of all creatable MDM control types with their name, description, platform, category, activation status, and JSON Schema for the configuration payload. Intended for AI/MCP agents to discover which control types exist and how to configure them. - [Get an MDM control by ID](https://docs.getprimo.com/api-reference/mdmcontrols/get-an-mdm-control-by-id.md): Return MDM control details for the given control ID, including target details and configuration payload. - [Delete an MDM control](https://docs.getprimo.com/api-reference/mdmcontrols/delete-an-mdm-control.md): Delete an MDM control by ID. Removing the control undeploys it from every targeted device. An unknown ID returns 404. Demo companies are not allowed to delete MDM controls (403). - [Update an MDM control](https://docs.getprimo.com/api-reference/mdmcontrols/update-an-mdm-control.md): Partially update an existing MDM control by ID. Send only the fields you want to change — any omitted field is left unchanged. `type` is required and must match the control (it selects the config schema). Editable fields: `name`, `enabled`, `configurationPayload`, and targeting. `configurationPayloa… - [Update an MDM control's tags](https://docs.getprimo.com/api-reference/mdmcontrols/update-an-mdm-controls-tags.md): Replace the full set of tags on an MDM control. Send the complete desired tag list — any existing tag not included is removed. An unknown control ID returns 404. ### DeviceGroups - [Get all device groups](https://docs.getprimo.com/api-reference/devicegroups/get-all-device-groups.md): Return the list of device groups for your company (id, name). - [Create a device group](https://docs.getprimo.com/api-reference/devicegroups/create-a-device-group.md): Create a device group with a `name` and a `target` filter. `name` must be unique per company — a conflicting name is rejected with 409; `getDeviceGroups` (`GET /device-groups`) lists the existing names. Build the `target` from `getDeviceGroupFiltersOptions` (`GET /device-groups/filters-options`); `v… - [Get what uses a device group](https://docs.getprimo.com/api-reference/devicegroups/get-what-uses-a-device-group.md): List the softwares and MDM controls that target this device group. A group can only be deleted once both lists are empty — call this before DELETE to discover (and then remove) what still references it, or to explain a 409. - [Get the device group filter catalog](https://docs.getprimo.com/api-reference/devicegroups/get-the-device-group-filter-catalog.md): Return every criterion (native device attributes plus custom fields) that may target a device group, with its live company values inline. Use this to build a valid device-group target. This is a deliberately narrower set than the device **search** catalog (`getDeviceFilterCatalog`): a group targetin… - [Get a device group by ID](https://docs.getprimo.com/api-reference/devicegroups/get-a-device-group-by-id.md): Return the device group: its `target` filter (the same shape create/update accept) plus the device IDs that filter currently resolves to. Read the `target` here before a PUT to change one field while preserving the rest of the targeting. - [Update a device group](https://docs.getprimo.com/api-reference/devicegroups/update-a-device-group.md): Replace a device group's `name` and `target` filter. Both fields are required — send the full desired state, not a partial patch. `name` must be unique per company (a conflicting name is rejected with 409). Build the `target` from the `GET /device-groups/filters-options` catalog and check it with `v… - [Delete a device group](https://docs.getprimo.com/api-reference/devicegroups/delete-a-device-group.md): Delete a device group by ID. A group that is still targeted by an MDM control or a software is rejected with 409 — call `GET /device-groups/:deviceGroupId/relations` to see what references it and remove those first. An unknown ID returns 404; deleting an already-deleted group is a no-op that still r… - [Check a device group target before creating the group](https://docs.getprimo.com/api-reference/devicegroups/check-a-device-group-target-before-creating-the-group.md): Validate a device group `target` without persisting anything: it reports whether the target is well-formed, whether every criterion is device-group-targetable (build it from `getDeviceGroupFiltersOptions`), and how many devices it currently matches — so a target that is valid but matches nothing is… ### Employees - [Get employees, optionally narrowed by a search](https://docs.getprimo.com/api-reference/employees/get-employees-optionally-narrowed-by-a-search.md): Return your company's employees as a paginated list. Pass `search` to turn a name or an email into the employee it refers to instead of paging: free text over first and last name, full name in either order, any of their email addresses, ignoring case and accents, plus text and URL custom field value… - [Create an employee](https://docs.getprimo.com/api-reference/employees/create-an-employee.md): Create a new employee in your company, with every email address known for them in `emails` (`email` is deprecated). This only creates the record: it never starts an onboarding. To onboard the joiner (ticket, email, SaaS provisioning and equipment steps), call `createOnboarding` with the returned emp… - [Get an employee by ID](https://docs.getprimo.com/api-reference/employees/get-an-employee-by-id.md): Return the full details for one employee, including their personal address — use it as the HOME shipping address when ordering equipment for a remote employee. For office addresses, use `getCompanyAddresses` instead. It carries the same fields as `getEmployees` — `teams`, `jobs` and the MDM enrollme… - [Update an employee](https://docs.getprimo.com/api-reference/employees/update-an-employee.md): Update an employee: name, email addresses (`emails`, replaced whole; `email` and `personalEmail` are deprecated), phone, gender, picture, manager, employment type, job title, teams, work location, legal entity, home address, start date and termination date. Only the provided fields are changed; omit… - [Get employee custom fields](https://docs.getprimo.com/api-reference/employees/get-employee-custom-fields.md): Return all Active custom field definitions for the employee, each paired with the current stored value (or null when unset). For SELECT / MULTI_SELECT fields the `options` catalog is included so you can map option ids to labels. - [Hide an employee](https://docs.getprimo.com/api-reference/employees/hide-an-employee.md): Hide an employee from the company directory. Their onboarding and offboarding records are removed. - [Set an employee custom field value](https://docs.getprimo.com/api-reference/employees/set-an-employee-custom-field-value.md): Set or overwrite a custom field value on an employee. Idempotent. Returns the updated field (definition + value). For SELECT supply the option id (string); for MULTI_SELECT supply an array of option ids. Option ids can be read from the `getEmployeeCustomFields` endpoint. - [Clear an employee custom field value](https://docs.getprimo.com/api-reference/employees/clear-an-employee-custom-field-value.md): Remove the stored value for a custom field on an employee. Returns the updated field (value reset to null). - [Unhide an employee](https://docs.getprimo.com/api-reference/employees/unhide-an-employee.md): Make a previously hidden employee visible again in the company directory. - [Send an MDM enrollment request to an employee](https://docs.getprimo.com/api-reference/employees/send-an-mdm-enrollment-request-to-an-employee.md): Trigger the Primo-branded MDM enrollment invitation for the employee. It is sent to the employee's communication address. Refused with 409 `EMPLOYEE_HAS_ENROLLED_DEVICE` when every device assigned to the employee already has MDM on, and with 409 `EMPLOYEE_OFFBOARDED` when the employee is offboarded.… ### EquipmentPolicy - [Get the equipment policy](https://docs.getprimo.com/api-reference/equipmentpolicy/get-the-equipment-policy.md): Return the company equipment policy: the editable draft text, the published text (what the agent sees at runtime, or null if never published), and the publication status. Read this before updating so you can re-send the full, edited body and diff draft against published. Requires the marketplace to… - [Get the computed equipment policy result](https://docs.getprimo.com/api-reference/equipmentpolicy/get-the-computed-equipment-policy-result.md): Return the computed equipment policy result: the recommended device and accessory product IDs per country, each country compute status (computing / ready / failed), and whether a policy is set up. The compute is asynchronous and fanned out per country, so a country can be `computing` while others ar… ### PurchasingPolicy - [Get the purchasing policy](https://docs.getprimo.com/api-reference/purchasingpolicy/get-the-purchasing-policy.md): Return the company purchasing policy: the editable draft text, the published text (what the agent sees at runtime, or null if never published), and the publication status. Read this before updating so you can re-send the full, edited body and diff draft against published. Requires the marketplace to… ### Accessories - [Get accessories, optionally narrowed to stock and to one type](https://docs.getprimo.com/api-reference/accessories/get-accessories-optionally-narrowed-to-stock-and-to-one-type.md): Return the list of accessories for your company. Pass `unassigned: true` to see only what is in stock — nobody owns it, so it can be handed out — and `type` to keep only one kind of accessory, so a request for a spare keyboard does not page through the whole inventory. The two combine: `unassigned:… - [Create an accessory](https://docs.getprimo.com/api-reference/accessories/create-an-accessory.md): Create an accessory for your company. - [Get an accessory by ID](https://docs.getprimo.com/api-reference/accessories/get-an-accessory-by-id.md): Return the accessory details for the given accessory ID. - [Update an accessory](https://docs.getprimo.com/api-reference/accessories/update-an-accessory.md): Update an existing accessory for your company. - [Get accessory custom fields](https://docs.getprimo.com/api-reference/accessories/get-accessory-custom-fields.md): Return all Active custom field definitions for the accessory, each paired with the current stored value (or null when unset). For SELECT / MULTI_SELECT fields the `options` catalog is included so you can map option ids to labels. - [Set an accessory custom field value](https://docs.getprimo.com/api-reference/accessories/set-an-accessory-custom-field-value.md): Set or overwrite a custom field value on an accessory. Idempotent. Returns the updated field (definition + value). For SELECT supply the option id (string); for MULTI_SELECT supply an array of option ids. Option ids can be read from the `getAccessoryCustomFields` endpoint. - [Clear an accessory custom field value](https://docs.getprimo.com/api-reference/accessories/clear-an-accessory-custom-field-value.md): Remove the stored value for a custom field on an accessory. Returns the updated field (value reset to null). - [Assign an accessory to an employee](https://docs.getprimo.com/api-reference/accessories/assign-an-accessory-to-an-employee.md): Assign an accessory to an employee. Pass ownerId as null to unassign the current owner. - [Archive an accessory](https://docs.getprimo.com/api-reference/accessories/archive-an-accessory.md): Archive (soft-delete) an accessory. The accessory is unassigned from its current owner and marked as deleted. ### Compliance - [Get all active compliance alerts](https://docs.getprimo.com/api-reference/compliance/get-all-active-compliance-alerts.md): Return the paginated list of active compliance alerts — one per (device, compliance rule) pair currently in a non-compliant status (e.g. not enrolled, offline, disk not encrypted). Each alert carries its device (`deviceId`, `deviceName`, `devicePlatform`, `owner`), its rule (`complianceRuleId`, `rul… - [Get compliance alerts, optionally narrowed by a filter](https://docs.getprimo.com/api-reference/compliance/get-compliance-alerts-optionally-narrowed-by-a-filter.md): Return the paginated list of active compliance alerts, narrowed by a `filter` — use it to answer any targeted question about non-compliance ("which macOS devices are not encrypted", "who owns the offline devices"). Send an empty body to list everything. Every `filter` entry is keyed by a `key` from… - [Get the full remediation context of one compliance alert](https://docs.getprimo.com/api-reference/compliance/get-the-full-remediation-context-of-one-compliance-alert.md): Return everything needed to diagnose and remediate one compliance alert (from `getComplianceAlerts`): the alert, the MDM control behind it with its configuration in clear, the device on both sides (`device.fleet` for the live MDM state — enrollment, last check-in, delivered profiles, failing checks;… - [Get the full remediation context of several compliance alerts](https://docs.getprimo.com/api-reference/compliance/get-the-full-remediation-context-of-several-compliance-alerts.md): Return, for MULTIPLE compliance alerts in one call, the same payload as `getComplianceAlertDetails` — the alert, its MDM control with the configuration in clear, the device on both sides and the `enforcement` facets — as `items`, in the order of `alertIds` (up to 25 per call, from `getComplianceAler… - [Get the compliance alert a ticket was opened for, with its full remediation context](https://docs.getprimo.com/api-reference/compliance/get-the-compliance-alert-a-ticket-was-opened-for-with-its-full-remediation-context.md): Start here when working a compliance ticket: it answers what this ticket is about. Return the same payload as `getComplianceAlertDetails` — the alert, its MDM control with the configuration in clear, the device on both sides and the `enforcement` facets to remediate — for the alert that opened the t… - [Get the compliance alert filter catalog](https://docs.getprimo.com/api-reference/compliance/get-the-compliance-alert-filter-catalog.md): Return every criterion a compliance alert filter accepts — each with its `key`, `valueType`, allowed operations and live company values (the devices, platforms and owners that currently have an alert). This is the vocabulary for `searchComplianceAlerts`: use a criterion `key` as the filter key and o… - [Get all compliance alert rules](https://docs.getprimo.com/api-reference/compliance/get-all-compliance-alert-rules.md): Return the compliance rules of your company — the "Issue Triggers" page of the cockpit. One rule per compliance type (e.g. MDM_ENROLLMENT, MDM_ONLINE, MDM_CONTROL_ENCRYPTION); for each of its statuses, the cockpit shows Off, Create Issue or Create Issue and Ticket: a status in `nonCompliantStatus` r… - [Create or upsert a compliance alert rule](https://docs.getprimo.com/api-reference/compliance/create-or-upsert-a-compliance-alert-rule.md): Create a compliance alert rule for the given type. Each (company, type) pair is unique — calling this for an existing type overwrites its `nonCompliantStatus`, and its `ticketCreationStatus` when you send one. Every rule type already exists once a device was checked, so prefer `updateComplianceAlert… - [Update a compliance alert rule](https://docs.getprimo.com/api-reference/compliance/update-a-compliance-alert-rule.md): Set, per status of one compliance rule, what the cockpit shows as Off / Create Issue / Create Issue and Ticket: `nonCompliantStatus` lists every status that raises an issue, `ticketCreationStatus` the ones among them that also open a ticket. Send the full lists — read the rule with `getComplianceAle… ### Tasks - [Get all tasks](https://docs.getprimo.com/api-reference/tasks/get-all-tasks.md): Return a paginated list of tasks (child tickets) for your company. Pass a task id to getTicket to fetch that single task. - [Create a task](https://docs.getprimo.com/api-reference/tasks/create-a-task.md): Create a manual task on an existing ticket. Pass the ticket id, never a task id: a task cannot hold a task. Tasks cannot be added to onboarding tickets (whose tasks are managed automatically). - [Schedule a dormant task for later on a ticket you work](https://docs.getprimo.com/api-reference/tasks/schedule-a-dormant-task-for-later-on-a-ticket-you-work.md): Plan work for later on the ticket you are currently working: creates a dormant task that wakes on the given date, instead of writing "I will check back on Monday" in a comment and forgetting. System agent transport only — refused for a human MCP token or a REST API key. You may only schedule on a ti… - [Update task status](https://docs.getprimo.com/api-reference/tasks/update-task-status.md): Mark a task as COMPLETED or CANCELLED. A task that completes by executing its intent refuses COMPLETED with a 403 `TaskLockedByTypeError` whose message names the operation to call instead (`executeEquipmentOrderIntent` for an EQUIPMENT_ORDER task, `executeEmployeeCreationIntent` for an EMPLOYEE_CREA… - [Update task assignee](https://docs.getprimo.com/api-reference/tasks/update-task-assignee.md): Assign a task to an employee. Provide the parent ticketId in the body. ### Tickets - [Get all tickets](https://docs.getprimo.com/api-reference/tickets/get-all-tickets.md): Return a paginated list of your company tickets — top-level tickets only; list tasks with `getTasks`. `searchTerm` matches a case-insensitive substring of the title or description, or a ticket reference (`IT-1741` or `1741`) — the way to turn a displayed reference into the 24-character ticket `id` t… - [Create a ticket](https://docs.getprimo.com/api-reference/tickets/create-a-ticket.md): Create a ticket for your company. Only `title` is required, and there is no description field on creation: set the ticket description afterwards with `updateTicket`, or post the details with `createTicketComment`. Link the device, employee or other records it concerns with `linkTicketRelatedObject`.… - [Count tickets for up to 20 queries in one call](https://docs.getprimo.com/api-reference/tickets/count-tickets-for-up-to-20-queries-in-one-call.md): Return only numbers: `{"counts":{"