API REFERENCE

Assets API

An asset is a piece of hardware you support, such as a workstation, server, network device, or printer, tied to a client. Asset types come from each tenant’s own registry, so the set is configurable per tenant. Use this API to register assets, keep them on a maintenance schedule, map how they relate, and drive RMM actions from your own tools.

Register an asset

POST /api/v1/assets needs four fields: client_id, an asset_type, name, and status. The asset_type is a slug from the tenant’s asset type registry. Common ones are workstation, server, network_device, mobile_device, and printer, but a tenant can define its own, so read the available types rather than hard-coding the list. Serial number, location, and warranty dates are optional.

curl
curl https://algapsa.com/api/v1/assets \
  -H "X-API-Key: $ALGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "client_id": "cl_3f9a2c",
    "asset_type": "workstation",
    "name": "Reception desk PC",
    "status": "active",
    "serial_number": "5CD1234XYZ",
    "warranty_end_date": "2027-08-01"
  }'

Asset tags

The asset_tag is the identifier printed on the device’s label. Omit it, or send an empty string, and AlgaPSA assigns the next tag from the tenant-wide asset sequence, prefixed with the client’s asset prefix when one is configured; the created asset in the response carries the assigned tag. Send a tag only when the device already has a physical label you want to keep. Tags are unique per tenant, compared without regard to letter case or leading and trailing spaces, so a create or PUT /api/v1/assets/{id} that uses a tag already held by another asset or a printed label answers 409 with the error code ASSET_TAG_CONFLICT. Keep provider and integration identifiers, such as an RMM device ID or a serial number, in their own fields rather than in asset_tag. Updating other fields, including client_id, never changes an existing tag.

Maintenance and relationships

Each asset carries its own maintenance log. List schedules with GET /api/v1/assets/{id}/maintenance, add one with POST /api/v1/assets/{id}/maintenance, and log work that actually happened with POST /api/v1/assets/{id}/maintenance/record; past work reads back from GET /api/v1/assets/{id}/history. To model how hardware connects — a laptop docked to a monitor, a VM on a host — use POST /api/v1/assets/{id}/relationships. Documents attach through POST /api/v1/assets/{id}/documents.

RMM actions

When an asset is connected to an RMM agent, you can act on it remotely: POST /api/v1/assets/{id}/rmm/reboot, POST /api/v1/assets/{id}/rmm/script to run a script, and POST /api/v1/assets/{id}/rmm/refresh to pull current state. Read installed software from GET /api/v1/assets/{id}/software and a rollup from GET /api/v1/assets/{id}/summary.

Linked tickets

Every asset can be linked to one or more service tickets — the same association visible in the asset and ticket detail UIs. Use GET /api/v1/assets/{id}/tickets to list all tickets currently linked to an asset; each row includes the ticket ID, number, status, and relationship type. Create a link with POST /api/v1/assets/{id}/tickets (supply ticket_id; optionally pass relationship_type, default affected, and notes), and remove it with DELETE /api/v1/assets/{id}/tickets/{ticketId}. Reading linked tickets requires asset:read and ticket:read; creating or removing a link also requires asset:update. The same associations are readable and writable from the ticket side — see Tickets API.

Groups: bundles and shared workspaces

An asset group collects a client’s hardware under one name. A bundle belongs to one person: setting its owner assigns every member to that contact and moves them to the group location. A shared_workspace is hardware several people use, so its members stay unassigned and the people are listed as users instead. List a client’s groups with GET /api/v1/asset-groups?client_id=… and create one with POST /api/v1/asset-groups, passing client_id, name, kind, and optionally asset_ids to add the first members in the same call. Membership changes go through POST /api/v1/asset-groups/{id}/members and DELETE /api/v1/asset-groups/{id}/members?asset_id=…; people through /api/v1/asset-groups/{id}/contacts with a role of owner or user. An asset can belong to only one group, and an owner on a workspace or a user on a bundle is rejected with a 400.

Custody

Custody tracks equipment that is physically in your hands: a laptop in for repair, a loaner being prepared, a device staged for deployment. Open an episode with POST /api/v1/assets/{id}/custody, giving the stock location_id, a free-text bin, and a purpose (repair, warranty_evaluation, loaner_prep, or staging); an asset already in custody answers 409. Record each step with POST /api/v1/assets/{id}/custody/events and an event_type of moved, handed_off, shipped, received, or returned. Read one asset’s open episode from GET /api/v1/assets/{id}/custody, or the whole queue from GET /api/v1/asset-custody, filterable by purpose, client, location, holder, and who owes the next action. Custody never touches stock, billing, or time.

Statuses and assignment history

The status you set on an asset is a slug from the tenant’s own registry. Read it in display order from GET /api/v1/asset-statuses (add include_archived=true for retired statuses) rather than hard-coding the list. Every change of assignee is kept, newest first, at GET /api/v1/assets/{id}/assignments.

Endpoints

Every endpoint links through to its full parameters, request and response schemas, and code samples.

GET/api/v1/asset-custodyAlgaPSAList equipment in custodyGET/api/v1/asset-groupsAlgaPSAList asset groups for a clientPOST/api/v1/asset-groupsAlgaPSACreate an asset groupGET/api/v1/asset-groups/{id}AlgaPSAGet an asset groupPUT/api/v1/asset-groups/{id}AlgaPSAUpdate an asset groupDELETE/api/v1/asset-groups/{id}AlgaPSADelete an asset groupPOST/api/v1/asset-groups/{id}/contactsAlgaPSASet a group owner or add a workspace userDELETE/api/v1/asset-groups/{id}/contactsAlgaPSARemove a group owner or workspace userPOST/api/v1/asset-groups/{id}/membersAlgaPSAAdd assets to a groupDELETE/api/v1/asset-groups/{id}/membersAlgaPSARemove an asset from a groupGET/api/v1/asset-statusesAlgaPSAList asset statusesGET/api/v1/assetsAlgaPSAList assetsPOST/api/v1/assetsAlgaPSACreate assetGET/api/v1/assets/{id}AlgaPSAGet asset detailsPUT/api/v1/assets/{id}AlgaPSAUpdate assetDELETE/api/v1/assets/{id}AlgaPSADelete assetGET/api/v1/assets/{id}/assignmentsAlgaPSAList asset assignment historyGET/api/v1/assets/{id}/custodyAlgaPSAGet asset custodyPOST/api/v1/assets/{id}/custodyAlgaPSAReceive an asset into custodyPOST/api/v1/assets/{id}/custody/eventsAlgaPSARecord a custody stepGET/api/v1/assets/{id}/documentsAlgaPSAList asset document associationsPOST/api/v1/assets/{id}/documentsAlgaPSAAssociate document with assetGET/api/v1/assets/{id}/historyAlgaPSAList asset maintenance historyGET/api/v1/assets/{id}/maintenanceAlgaPSAList asset maintenance schedulesPOST/api/v1/assets/{id}/maintenanceAlgaPSACreate asset maintenance schedulePOST/api/v1/assets/{id}/maintenance/recordAlgaPSARecord asset maintenanceGET/api/v1/assets/{id}/notesAlgaPSAGet asset notesPUT/api/v1/assets/{id}/notesAlgaPSAUpdate asset notesDELETE/api/v1/assets/{id}/notesAlgaPSADelete asset notesGET/api/v1/assets/{id}/relationshipsAlgaPSAList asset relationshipsPOST/api/v1/assets/{id}/relationshipsAlgaPSACreate asset relationshipGET/api/v1/assets/{id}/rmmAlgaPSAGet cached RMM dataPOST/api/v1/assets/{id}/rmm/rebootAlgaPSAReboot device via RMMPOST/api/v1/assets/{id}/rmm/refreshAlgaPSARefresh RMM data for deviceGET/api/v1/assets/{id}/rmm/remote-controlAlgaPSAGet remote-control session URLPOST/api/v1/assets/{id}/rmm/scriptAlgaPSARun a script via RMMGET/api/v1/assets/{id}/softwareAlgaPSAList asset software inventoryGET/api/v1/assets/{id}/summaryAlgaPSAGet asset summary metricsGET/api/v1/assets/{id}/ticketsAlgaPSAList tickets linked to an assetPOST/api/v1/assets/{id}/ticketsAlgaPSALink a ticket to an assetDELETE/api/v1/assets/{id}/tickets/{ticketId}AlgaPSAUnlink a ticket from an assetPUT/api/v1/assets/bulk-statusAlgaPSABulk update asset statusPUT/api/v1/assets/bulk-updateAlgaPSABulk update assetsDELETE/api/v1/assets/documents/{associationId}AlgaPSARemove asset document associationGET/api/v1/assets/exportAlgaPSAExport assetsPUT/api/v1/assets/maintenance/{scheduleId}AlgaPSAUpdate asset maintenance scheduleDELETE/api/v1/assets/maintenance/{scheduleId}AlgaPSADelete asset maintenance scheduleDELETE/api/v1/assets/relationships/{relationshipId}AlgaPSADelete asset relationshipGET/api/v1/assets/searchAlgaPSASearch assetsGET/api/v1/assets/statsAlgaPSAGet asset statistics