Docs

IT documentation

API reference for assets, networks, credentials, licenses, domains, certificates, services and documents.

These endpoints need the Support area of the key's role, apart from credentials, which need Credentials. See Keys and permissions.

Assets

EndpointDoes
GET assets/read.phpLists assets, or finds them
POST assets/create.phpAdds an asset
POST assets/update.phpChanges an asset
POST assets/archive.phpArchives an asset
POST assets/unarchive.phpBrings an archived asset back
POST assets/delete.phpDeletes an asset

Read

ParameterDoes
asset_idJust this asset
asset_typeAssets of this type, such as Server or Firewall/Router
asset_nameAssets with exactly this name
asset_serialAssets with this serial number
asset_macThe asset whose primary network interface has this MAC address, as ITFlow has it, such as B0:4F:13:2A:9C:11
asset_uri, asset_uri_2Assets with this link
client_idJust this client's assets
limit, offsetPaging

The list and asset_mac include each asset's primary network interface - its IP and MAC address and network. The other lookups return the asset alone. The list includes archived assets. Every asset comes with its details as asset_specs - see Details. And with its devices in your RMM as asset_rmm - see Devices in an RMM.

curl -G https://itflow.example.com/api/v1/assets/read.php \
  -H "X-API-Key: YOUR_API_KEY" \
  --data-urlencode "client_id=1" --data-urlencode "limit=1"
{
  "success": "True",
  "count": 1,
  "data": [
    {
      "asset_id": "1",
      "asset_type": "Firewall/Router",
      "asset_name": "RDG-FW-01",
      "asset_make": "Netgate",
      "asset_model": "6100 MAX",
      "asset_serial": "F687F5FEB2",
      "asset_os": "pfSense Plus 24.11",
      "asset_status": "Deployed",
      "asset_warranty_expire": "2028-11-08",
      "asset_location_id": "1",
      "asset_client_id": "1",
      "interface_ip": "192.168.10.11",
      "interface_mac": "02:56:C0:D6:2E:2C",
      "interface_network_id": "1",
      "tags": [ { "tag_id": 65, "tag_name": "Business Critical", "tag_kind": "asset", "tag_color": "#d81b60", "tag_icon": "exclamation-circle" } ],
      "asset_specs": { "ports": "6", "sfp_ports": "2" },
      "asset_rmm": []
    }
  ]
}

Fields: asset_id, asset_type, asset_name, asset_description, asset_make, asset_model, asset_serial, asset_os, asset_uri, asset_uri_2, asset_uri_client, asset_status, asset_purchase_reference, asset_purchase_date, asset_warranty_expire, asset_install_date, asset_photo, asset_physical_location, asset_notes, asset_favorite, asset_vendor_id, asset_location_id, asset_contact_id, asset_client_id, asset_product_id, asset_invoice_id, asset_invoice_item_id, asset_created_at, asset_updated_at, asset_archived_at, asset_accessed_at, tags. With the interface: interface_id, interface_name, interface_description, interface_type, interface_mac, interface_ip, interface_nat_ip, interface_ipv6, interface_vlans, interface_notes, interface_primary, interface_network_id. And asset_specs, its details ({} for none).

Devices in an RMM

asset_rmm lists the asset's devices in your RMM providers - one for each provider that has it, the one most likely to matter first, and [] for an asset in none. Each has provider_id and provider (its name in ITFlow), device_id (its id in the RMM), hostname, site, status (online, offline, overdue, removed once the RMM no longer has it, or empty when it doesn't say), last_seen_at, boot_at, logged_user, public_ip, local_ips, needs_reboot, patches_pending, checks_total, checks_failing, maintenance, agent_version, synced_at (when the sync last brought it in) and removed_at. It is what the RMM said at the last sync, read only - the API doesn't change it.

"asset_rmm": [
  {
    "provider_id": 1, "provider": "Tactical RMM", "device_id": "RDG00mepxbcudnvbtgbcqqc",
    "hostname": "RDG-LT-01", "site": "Main Office", "status": "online",
    "last_seen_at": "2026-11-21 18:47:48", "boot_at": "2026-11-10 18:49:09", "logged_user": "RDG\\mwhitfield",
    "public_ip": "203.0.113.24", "local_ips": "192.168.11.100",
    "needs_reboot": false, "patches_pending": false, "checks_total": 6, "checks_failing": 0, "maintenance": false,
    "agent_version": "2.12.0", "synced_at": "2026-11-21 19:10:46", "removed_at": null
  }
]

Create

FieldNotes
client_idRequired
asset_nameRequired
asset_typeLaptop, Desktop, Server, NAS, Virtual Machine, Firewall/Router, Switch, Access Point, Modem/ONT, UPS, PDU, Printer, Phone, Mobile Phone, Tablet, Display, Camera, NVR/DVR or Other - in any capitals, saved as written here
asset_make, asset_model, asset_serial, asset_os
asset_description
asset_statusOne of your asset statuses, such as Deployed - see categories
asset_purchase_date, asset_warranty_expire, asset_install_dateDates
asset_uriA link to it, such as its management page
asset_location_id, asset_contact_idOne of the client's locations and contacts
asset_vendor_idA vendor
asset_ip, asset_mac, asset_network_idIts primary network interface: IP address, MAC address and network
asset_notes
asset_specsIts details, as {"key": "value"} - see Details
curl -X POST https://itflow.example.com/api/v1/assets/create.php \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"client_id": 1, "asset_name": "RDG-WS-14", "asset_type": "Desktop", "asset_make": "Dell", "asset_model": "OptiPlex 7020", "asset_serial": "H7Q2LM3", "asset_os": "Windows 11 Pro", "asset_ip": "192.168.10.64", "asset_mac": "B0:4F:13:2A:9C:11", "asset_network_id": 1, "asset_location_id": 1, "asset_status": "Deployed"}'

Update

Send asset_id, client_id (the asset's own client), and any of the fields under Create, or asset_uri_2 for a second link. A field you don't send keeps what the asset has - its primary IP address, MAC address and network included.

asset_specs on an update is laid over the details the asset has: send just the ones to change, and "" to clear one. When asset_type changes, the asset keeps only the details its new type has.

Details

asset_specs holds what only that kind of device has, by key. Each type takes its own, and a key it doesn't have is left out. A value a detail can't take isn't kept either, and the answer says why in asset_specs_not_kept, such as ["PoE budget: a number from 0 to 100000 W"].

TypeKeys
Laptop, Desktop, Servercpu, ram_gb, storage
Virtual Machinevm_host (the id or name of one of the client's servers or NAS units), vcpus, ram_gb, storage
NASdrive_bays, drives, raw_tb, usable_tb, raid, ports
Firewall/Routerports, sfp_ports
Switchports, sfp_ports, poe_watts, managed (Managed, Smart or Unmanaged)
Access Pointwifi (Wi-Fi 4 (802.11n), Wi-Fi 5 (802.11ac), Wi-Fi 6 (802.11ax), Wi-Fi 6E or Wi-Fi 7 (802.11be))
Modem/ONTcircuit_id, isp_account, ports
UPSva, watts, runtime_min, outlets, battery_installed, battery_replace (dates, YYYY-MM-DD)
PDUpdu_type (Basic, Metered, Monitored or Switched), outlets, power_input
Printercolor (Color or Black and white), supplies
Phoneextension
Mobile Phone, Tabletphone_number, carrier, imei
Displaysize_in, resolution
Cameraresolution
NVR/DVRchannels, storage, ports

A type of your own from Admin > Asset Types takes the keys picked for it, and its own details as custom_ and a number, such as custom_12 - read an asset of that type to see them.

ports and sfp_ports add the network interfaces the asset doesn't have yet when they are new or changed, as the asset form does - see Details by type.

curl -X POST https://itflow.example.com/api/v1/assets/update.php \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"client_id": 1, "asset_id": 2, "asset_specs": {"ports": 24, "sfp_ports": 2, "poe_watts": 400, "managed": "Managed"}}'

Archive and unarchive

Each takes asset_id and client_id, the asset's own client, and goes in the asset's history.

Delete

delete.php takes asset_id and client_id, and needs Full on Support. It also deletes the asset's network interfaces and takes it out of its rack. Credentials linked to it stay with the client.

Interfaces

An asset's ports and network cards.

EndpointDoes
GET asset_interfaces/read.phpAn asset's interfaces, or one, with what each is plugged into
POST asset_interfaces/create.phpAdds an interface
POST asset_interfaces/update.phpChanges, plugs in or unplugs an interface
POST asset_interfaces/delete.phpDeletes an interface

Read takes asset_id or interface_id, and client_id. Each interface has its network_name, and connected_to: the interface_id, interface_name, asset_id and asset_name at the other end of the cable, or null.

FieldNotes
asset_idCreate only, required
interface_nameRequired - its name or port number, such as Gi1/0/24. The asset can't have two with the same name.
interface_typeAn interface type, such as SFP+
interface_ipAn IP address, DHCP, or empty for none. It has to be inside its network.
interface_network_idOne of the client's networks
interface_macSix pairs, such as 00:1A:2B:3C:4D:5E
interface_nat_ip, interface_ipv6, interface_vlansinterface_vlans such as Trunk 1, 10, 20-29
interface_description, interface_notes
interface_primary1 makes it the asset's primary - the one its address shows by. The asset's first interface is its primary anyway.
connected_toThe interface_id it's plugged into, on another of the client's assets. 0 unplugs it. One cable per port: whatever either end was plugged into is let go.

client_id is the asset's client. Update takes interface_id and changes only what you send. Delete needs Full on Support. The answer to create and update has warnings - such as the address being on another device too.

curl -X POST https://itflow.example.com/api/v1/asset_interfaces/create.php \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"asset_id": 8, "interface_name": "eth1", "interface_type": "Ethernet", "interface_network_id": 2, "interface_ip": "192.168.40.77", "connected_to": 33}'

Notes

The notes on an asset's page - what was done, parts replaced, changes made.

EndpointDoes
GET asset_notes/read.phpAn asset's notes, newest first, or one
POST asset_notes/create.phpAdds a note
POST asset_notes/archive.phpArchives a note
POST asset_notes/unarchive.phpBrings an archived note back
POST asset_notes/delete.phpDeletes an archived note

Read takes asset_id or asset_note_id, with limit and offset. Archived notes are listed too. Each has asset_note_created_by_name, the agent who wrote it.

Create takes asset_id, asset_note_type - one of your asset note types, such as Repair - and asset_note, both required. It's written by the key's agent. The others take asset_note_id. Delete needs Full on Support, and the note has to be archived first. Each takes client_id, the asset's client.

Networks

EndpointDoes
GET networks/read.phpLists networks, or finds one by name
POST networks/create.phpAdds a network
POST networks/update.phpChanges a network
POST networks/archive.phpArchives a network
POST networks/unarchive.phpBrings an archived network back
POST networks/delete.phpDeletes an archived network

Read

ParameterDoes
network_idJust this network
network_nameNetworks with exactly this name
client_idJust this client's networks
limit, offsetPaging

Archived networks are left out.

{
  "success": "True",
  "count": 1,
  "data": [
    { "network_id": "1", "network_name": "Office LAN", "network": "192.168.10.0/24", "network_vlan": "10", "network_gateway": "192.168.10.1", "network_dhcp_range": "192.168.10.50 - 192.168.10.220", "network_location_id": "1", "network_client_id": "1" }
  ]
}

Fields: network_id, network_name, network_description, network_type, network_vlan, network, network_subnet, network_gateway, network_primary_dns, network_secondary_dns, network_dhcp_range, network_notes, network_favorite, network_location_id, network_vendor_id, network_client_id, network_created_at, network_updated_at, network_archived_at, network_accessed_at, tags.

Create

FieldNotes
client_idRequired
network_nameRequired
networkRequired - the network and its size, such as 192.168.30.0/24
network_vlanVLAN number
network_gateway, network_primary_dns, network_secondary_dns
network_dhcp_rangeSuch as 192.168.30.100-192.168.30.200
network_location_idOne of the client's locations
network_description, network_notes

Update, archive, unarchive and delete

Each takes network_id and client_id, the network's own client. update.php also takes any of the fields under Create. Only active networks can be changed. delete.php needs Full on Support, and the network has to be archived first. The network interfaces on it stay, on no network.

IP addresses

The addresses documented on a network - its address plan.

EndpointDoes
GET network_ips/read.phpA network's addresses, lowest first, or one
POST network_ips/create.phpDocuments an address, or a run of them
POST network_ips/update.phpChanges an address
POST network_ips/delete.phpTakes an address off the plan

Read takes network_id or ip_id, with limit and offset.

FieldNotes
network_idCreate only, required
ip_addressRequired. The host part alone, such as 20 on a /24, is filled out from the subnet.
ip_range_endCreate only: the last address of a run - up to 256 at a time. Those outside the subnet or documented already are skipped.
ip_typeStatic (fixed, the default), Reservation (a DHCP reservation), Reserved (held back) or Virtual (floating)
ip_macThe device's MAC. A reservation needs one.
ip_hostname, ip_description

An address has to be inside the network's subnet and documented on it only once. Update takes ip_id and changes only what you send. Delete needs Full on Support. Each takes client_id, the network's client. The answer to create has added and skipped.

{ "network_id": 2, "ip_address": "238", "ip_range_end": "245", "ip_type": "Reserved", "ip_description": "Printer pool" }

Racks

EndpointDoes
GET racks/read.phpLists a client's racks, or gets one with what's in it
POST racks/create.phpAdds a rack
POST racks/update.phpChanges a rack
POST racks/archive.phpArchives a rack
POST racks/unarchive.phpBrings an archived rack back
POST racks/delete.phpDeletes an archived rack
POST rack_units/create.phpMounts an item in a rack
POST rack_units/update.phpMoves or changes an item
POST rack_units/delete.phpTakes an item out

Read takes rack_id, or client_id, with limit and offset. Archived racks are listed too. With rack_id the rack has units, what's mounted in it, from U1 up: each item's unit_start_number to unit_end_number, unit_face (front or rear), unit_full_depth, and the asset_id and asset_name it is - or its own unit_device name and unit_type. A holder has unit_slots, how many it holds side by side, and is followed by what's in it: each with unit_parent_id, the holder, and unit_position, its slot.

A rack takes client_id, rack_name, rack_type - one of your rack types - and rack_units, how tall it is (1 to 70), all required to create one. Then rack_units_descending (1 when U1 is at the top), rack_model, rack_depth, rack_power_capacity (watts), rack_location_id (one of the client's locations), rack_physical_location, rack_description and rack_notes. Update takes rack_id and changes only what you send - a rack can't be made shorter than the highest item in it. Delete needs Full on Support and the rack archived first; what's in it goes with it, and its assets stay. Photos are added in ITFlow.

An item takes rack_id to create, unit_id to update or delete, and:

FieldNotes
asset_idOne of the client's assets - in one rack at a time
unit_deviceA name, for an item that isn't an asset
unit_typeWithout an asset: Device (the default), Patch Panel, Cable Management, Shelf, PDU, UPS, KVM / Console or Blanking Panel
unit_start_numberRequired: the lowest unit it takes
unit_heightHow many units. 1 if you leave it out.
unit_facefront (the default) or rear
unit_full_depth1 when it takes the front and the rear
unit_slotsIt's a holder - a bracket, shelf or chassis - with this many devices side by side (1 to 24). 0, the default, for anything else.
unit_parent_idThe holder it goes in, instead of a place of its own. It takes the holder's units, side and depth.
unit_positionIts slot in the holder - 1 is the first, counting across and then a row on. The first free one if you leave it out.
unit_power_watts, unit_notes

It has to fit the rack, with nothing else on that face - or a free slot in a holder in the same rack. A holder can't go in a holder, and one with devices in it can't be set back to unit_slots 0. Moving a holder moves what's in it, and deleting it takes what's in it out of the rack too. Update changes only what you send. Delete needs Full on Support. Each takes client_id, the rack's client.

{ "rack_id": 1, "asset_id": 12, "unit_start_number": 10, "unit_height": 2 }

Credentials

Credentials need the Credentials area of the role, and the key's credential decryption password as api_key_decrypt_password - on reads too. See Credentials.

EndpointDoes
GET credentials/read.phpLists credentials, or gets one, with the username and password
POST credentials/create.phpAdds a credential
POST credentials/update.phpChanges a credential
POST credentials/archive.phpArchives a credential
POST credentials/unarchive.phpBrings an archived credential back
POST credentials/delete.phpDeletes an archived credential

Read

ParameterDoes
api_key_decrypt_passwordRequired, in a JSON body
credential_idJust this credential
client_idJust this client's credentials
limit, offsetPaging

The list includes archived credentials.

curl -X GET "https://itflow.example.com/api/v1/credentials/read.php?credential_id=1" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"api_key_decrypt_password": "YOUR_DECRYPTION_PASSWORD"}'
{
  "success": "True",
  "count": 1,
  "data": [
    {
      "credential_id": "1",
      "credential_name": "Firewall Administrator",
      "credential_uri": "https://192.168.10.1",
      "credential_username": "msp-admin",
      "credential_password": "A265CDE06D86CE!aA1",
      "credential_otp_secret": "",
      "credential_password_changed_at": "2026-09-26 16:10:00",
      "credential_asset_id": "1",
      "credential_client_id": "1",
      "tags": [ { "tag_id": 52, "tag_name": "Rotate Quarterly", "tag_kind": "credential", "tag_color": "#6f42c1", "tag_icon": "sync-alt" } ]
    }
  ]
}

Fields: credential_id, credential_name, credential_description, credential_category, credential_uri, credential_uri_2, credential_username, credential_password, credential_otp_secret, credential_note, credential_favorite, credential_password_changed_at, credential_folder_id, credential_contact_id, credential_asset_id, credential_client_id, credential_created_at, credential_updated_at, credential_archived_at, credential_accessed_at, tags.

Create

FieldNotes
api_key_decrypt_passwordRequired
credential_nameRequired
credential_passwordRequired
client_idThe client. Leave it out for one of your own, which needs a key that can see every client.
credential_username
credential_uri, credential_uri_2Where it signs in
credential_otp_secretThe two-step sign-in key, or its otpauth:// link
credential_contact_id, credential_asset_idThe contact or asset it belongs to
credential_description, credential_note
credential_favorite1 to make it a favourite

A field too long to store is turned down with a message that names it, such as "credential_username is too long to store."

curl -X POST https://itflow.example.com/api/v1/credentials/create.php \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"api_key_decrypt_password": "YOUR_DECRYPTION_PASSWORD", "client_id": 1, "credential_name": "Imaging Server - local admin", "credential_username": "rdg-admin", "credential_password": "Tq7!mV2#pL9w", "credential_uri": "https://192.168.30.10", "credential_asset_id": 9}'

Update, archive, unarchive and delete

Each takes credential_id and client_id, the credential's own client. update.php also needs api_key_decrypt_password, even when the password isn't changing, and takes any of the fields under Create. Changing credential_password records when it changed, for the credential rotation report. delete.php needs Full on Credentials, and the credential has to be archived first. Deleting one also deletes its shared links.

Licenses

Licenses are called software in the API.

EndpointDoes
GET software/read.phpLists licenses, or gets one
POST software/create.phpAdds a license
POST software/update.phpChanges a license
POST software/archive.phpArchives a license
POST software/unarchive.phpBrings an archived license back
POST software/delete.phpDeletes an archived license
POST software/seats.phpSets who holds a seat
POST software/renew.phpRenews a license
GET software_keys/read.phpA license's keys, and who each is handed to
POST software_keys/create.phpAdds keys
POST software_keys/update.phpChanges a key, or who it's handed to
POST software_keys/delete.phpDeletes a key

Read

ParameterDoes
software_idJust this license
software_keyThe license with this key - its own, or one of its keys
client_idJust this client's licenses
limit, offsetPaging

Archived licenses are left out of the list.

{
  "success": "True",
  "count": 1,
  "data": [
    { "software_id": "1", "software_name": "Microsoft 365 Business Premium", "software_type": "Software as a Service (SaaS)", "software_license_type": "Subscription", "software_seats": "26", "software_expire": "2026-12-25", "software_client_id": "1" }
  ]
}

Fields: software_id, software_name, software_description, software_version, software_type, software_license_type, software_key, software_seats, software_purchase_reference, software_purchase, software_expire, software_notes, software_favorite, software_vendor_id, software_client_id, software_template_id, software_created_at, software_updated_at, software_archived_at, software_accessed_at, tags.

Create

FieldNotes
client_idRequired
software_nameRequired
software_version, software_type, software_license_type
software_seatsHow many it covers. Leave it out for no limit.
software_purchase, software_expireWhen it was bought and when it runs out, as 2026-11-05
software_purchase_reference
software_vendor_idOne of the client's vendors
software_key
software_keysCreate only: license keys to add, one per line
software_description, software_notes
software_favorite1 to make it a favourite
curl -X POST https://itflow.example.com/api/v1/software/create.php \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"client_id": 1, "software_name": "Dentrix Ascend", "software_license_type": "Subscription", "software_seats": 12, "software_expire": "2027-06-30"}'

Update, archive, unarchive and delete

Each takes software_id and client_id, the license's own client. update.php also takes any of the fields under Create, and changes only what you send. Only active licenses can be changed. delete.php needs Full on Support, and the license has to be archived first. Its seats and keys go with it.

Seats and renewal

Seats (seats.php) takes software_id, client_id, and asset_ids and contact_ids - the client's devices and users that hold a seat, each list in place of the one it had. One you leave out stays as it is. A device or user that loses its seat gives back the keys it was handed. The answer has added and removed, by name, and warning when it's over its seats.

Renew (renew.php) takes software_id, client_id, and renew_term - 1m, 3m, 6m, 1y, 2y or 3y, from its renewal date, or from today once that has passed - or renew_date, the new date. purchase_reference records what it was renewed on. The answer has software_expire.

Keys

Read takes software_id or software_key_id. Each key has the assets and contacts it's handed to.

  • Create takes software_id and keys: one per line, or a list. Blank ones and keys it has already are skipped. The answer has added.
  • Update takes software_key_id, and any of software_key, asset_ids and contact_ids - who it's handed to, in place of those it had. Each gets a seat if it had none. The answer has warning, as for seats.
  • Delete takes software_key_id and needs Full on Support. Its seats stay.

Each takes client_id, the license's client.

Domains

EndpointDoes
GET domains/read.phpLists domains, or finds one by name
POST domains/create.phpAdds a domain
POST domains/update.phpChanges a domain
POST domains/archive.phpArchives a domain
POST domains/unarchive.phpBrings an archived domain back
POST domains/delete.phpDeletes an archived domain

Read

ParameterDoes
domain_idJust this domain
domain_nameThe domain with this name, such as ravenwooddental.example
client_idJust this client's domains
limit, offsetPaging

Archived domains are left out.

{
  "success": "True",
  "count": 1,
  "data": [
    {
      "domain_id": "1",
      "domain_name": "ravenwooddental.example",
      "domain_expire": "2026-12-20",
      "domain_auto_renew": "0",
      "domain_ip": "203.0.113.10",
      "domain_name_servers": "ns1.harbordns.example\nns2.harbordns.example",
      "domain_mail_servers": "0 ravenwooddental.example.mail.protection.example",
      "domain_registrar": "13",
      "domain_refreshed_at": "2026-10-20 04:00:00",
      "domain_client_id": "1"
    }
  ]
}

Fields: domain_id, domain_name, domain_description, domain_expire, domain_auto_renew, domain_ip, domain_name_servers, domain_mail_servers, domain_txt, domain_dmarc, domain_dkim, domain_raw_whois, domain_notes, domain_favorite, domain_registrar, domain_webhost, domain_dnshost, domain_mailhost, domain_client_id, domain_created_at, domain_updated_at, domain_archived_at, domain_accessed_at, domain_refreshed_at, tags.

Create

FieldNotes
client_idRequired
domain_nameRequired. It's tidied as ITFlow keeps domains: https://www.Example.com/ becomes example.com. A client can't have the same domain twice.
domain_expireWhen the registration expires. Anything that isn't a date is left out.
domain_auto_renew1 if it renews by itself
domain_registrar, domain_dnshost, domain_webhost, domain_mailhostVendors - the client's or yours - by vendor_id
domain_description, domain_notes

When a domain is saved, ITFlow looks it up, as the app does, filling in its IP address, name servers, mail servers, TXT, DMARC and DKIM records and WHOIS. The expiry from WHOIS, when it finds one, replaces domain_expire.

Update, archive, unarchive and delete

Each takes domain_id and client_id, the domain's own client. update.php also takes any of the fields under Create, looks the domain up again, and records what changed in the domain's history. Only active domains can be changed. delete.php needs Full on Support, and the domain has to be archived first. It comes off the services it was on; its certificates stay, on no domain.

Certificates

EndpointDoes
GET certificates/read.phpLists certificates, or finds one
POST certificates/create.phpAdds a certificate
POST certificates/update.phpChanges a certificate
POST certificates/archive.phpArchives a certificate
POST certificates/unarchive.phpBrings an archived certificate back
POST certificates/delete.phpDeletes an archived certificate
ParameterDoes
certificate_idJust this certificate
certificate_nameCertificates with exactly this name
client_idJust this client's certificates
limit, offsetPaging
{
  "success": "True",
  "count": 1,
  "data": [
    { "certificate_id": "1", "certificate_name": "www.ravenwooddental.example", "certificate_domain": "www.ravenwooddental.example", "certificate_issued_by": "Let's Encrypt", "certificate_expire": "2026-11-21", "certificate_check_status": "ok", "certificate_checked_at": "2026-10-20 03:30:00", "certificate_client_id": "1" }
  ]
}

Fields: certificate_id, certificate_name, certificate_description, certificate_domain, certificate_names, certificate_issued_by, certificate_issued_at, certificate_expire, certificate_public_key, certificate_fingerprint, certificate_check_status, certificate_notes, certificate_favorite, certificate_checked_at, certificate_domain_id, certificate_client_id, certificate_created_at, certificate_updated_at, certificate_archived_at, certificate_accessed_at.

Create

FieldNotes
client_idRequired
certificate_nameA name for it. Needed if there's no certificate_domain.
certificate_domainThe host it's served on, such as portal.example.com, or portal.example.com:8443 for another port
certificate_public_keyThe certificate itself, as PEM. Its issuer, dates, names and fingerprint are taken from it.
certificate_issued_by, certificate_expireWhen there's no PEM
certificate_domain_idThe client's domain it's for. Worked out from the host when you leave it out.
certificate_description, certificate_notes
certificate_favorite1 to make it a favourite

With a host, ITFlow connects to it as the certificate is saved, and records what it serves.

Update, archive, unarchive and delete

Each takes certificate_id and client_id, the certificate's own client. update.php also takes any of the fields under Create, and changes only what you send - a PEM still has the last word on the issuer, dates and names. A new host is connected to as it is saved. Only active certificates can be changed, and what changed goes in the certificate's history. delete.php needs Full on Support, and the certificate has to be archived first. Its history and its links to services go with it.

Services

EndpointDoes
GET services/read.phpLists a client's services, or those due a review
POST services/create.phpAdds a service
POST services/update.phpChanges a service
POST services/archive.phpArchives a service
POST services/unarchive.phpBrings an archived service back
POST services/delete.phpDeletes an archived service

Read

ParameterDoes
service_idJust this service, archived or not
service_nameServices with exactly this name
review_due1 for services whose review is due in the next 30 days or overdue, soonest first
archived1 to include archived services
client_idJust this client's services
limit, offsetPaging
{
  "success": "True",
  "count": 1,
  "data": [
    { "service_id": "8", "service_name": "Edge Firewall and Site VPN", "service_importance": "High", "service_review_due": "2026-10-02", "service_reviewed_at": "2026-04-05 14:30:00", "service_client_id": "2" }
  ]
}

Fields: service_id, service_name, service_description, service_category, service_importance, service_backup, service_notes, service_favorite, service_review_due, service_reviewed_at, service_review_interval, service_client_id, service_created_at, service_updated_at, service_accessed_at, service_archived_at, tags.

Create

FieldNotes
client_idRequired
service_nameRequired
service_importanceHigh, Medium (the default) or Low
service_categorySuch as Email, Backup or Line of business
service_description, service_backup, service_notesservice_backup is how it's backed up
service_review_intervalHow often it's reviewed, in months: 1, 3, 6, 12 or 24. 0, the default, is no schedule.
service_review_dueIts next review, as 2026-11-05. With an interval and no date, it's worked out from today.

What it runs on and depends on is linked in ITFlow, on the service's page.

Update, archive, unarchive and delete

Each takes service_id and client_id, the service's own client. update.php also takes any of the fields under Create, and changes only what you send. Only active services can be changed. delete.php needs Full on Support, and the service has to be archived first. Its links and tags go with it.

Documents

EndpointDoes
GET documents/read.phpLists documents, or gets one
POST documents/create.phpAdds a document
POST documents/update.phpChanges a document, keeping the version before
POST documents/archive.phpArchives a document
POST documents/unarchive.phpBrings an archived document back
POST documents/delete.phpDeletes an archived document

Read

ParameterDoes
document_idJust this document
client_idJust this client's documents
limit, offsetPaging

Archived documents are left out. document_content is the document as HTML. document_markdown is what a document written in Markdown says, as written, and null for one written in the editor.

Fields: document_id, document_name, document_description, document_content, document_content_raw, document_markdown, document_client_visible, document_favorite, document_folder_id, document_created_by, document_updated_by, document_reviewed_by, document_client_id, document_template_id, document_created_at, document_updated_at, document_archived_at, document_accessed_at, document_reviewed_at, tags.

Create

FieldNotes
document_nameRequired
document_contentRequired, unless document_markdown is given - the document, as HTML. Images in it as data: URLs are saved as files.
document_markdownThe document in Markdown, instead of document_content - it's written in Markdown, and document_content is made from it. Images in it as data: URLs are saved as files.
client_idThe client it's for
document_description
document_folder_idThe client's folder to put it in
curl -X POST https://itflow.example.com/api/v1/documents/create.php \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"client_id": 1, "document_name": "RDG - Imaging Server Notes", "document_description": "How the imaging server is set up", "document_content": "<h2>Imaging server</h2><p>RDG-SRV-02 runs the imaging database. Restart only after 6 PM.</p>"}'

Update, archive, unarchive and delete

Each takes document_id and client_id, the document's own client. update.php also takes any of the fields under Create. Sending document_content makes it a document written in the editor, and document_markdown one written in Markdown; sending neither leaves what it says as it is. The document as it was is kept in its versions, as when it's edited in ITFlow. delete.php needs Full on Support, and the document has to be archived first. Its versions and its images go with it.

Files and folders

A client's Files - uploads, kept in folders.

EndpointDoes
GET files/read.phpLists a client's files, or gets one
POST files/create.phpUploads a file
GET files/download.phpGets a file's content
POST files/update.phpRenames a file, or moves it to another folder
POST files/archive.phpArchives a file
POST files/unarchive.phpBrings an archived file back
POST files/delete.phpDeletes an archived file
GET folders/read.phpLists a client's folders
POST folders/create.phpAdds a folder
POST folders/update.phpRenames or moves a folder
POST folders/delete.phpDeletes a folder

Read and download

Files read takes file_id, client_id and folder_id, with limit and offset, newest first - archived ones too. Each has its file_name, file_ext, file_size in bytes, file_mime_type, and the folder it's in (file_folder_id, 0 for the top level). Folders read takes folder_id and client_id, and each has its parent_folder.

download.php takes file_id, and answers with the file itself, to save - not JSON:

curl -G https://itflow.example.com/api/v1/files/download.php \
  -H "X-API-Key: YOUR_API_KEY" --data-urlencode "file_id=12" -o rdg-fw-01-backup.cfg

Upload

FieldNotes
client_idRequired
file_nameRequired: its name with its extension, such as rdg-fw-01-backup.cfg. It has to be a kind Files takes - documents, images, archives, configs and the like.
file_dataRequired: the file, base64
file_description
folder_idOne of the client's folders. The top level if you leave it out.
contact_id, asset_id, software_id, location_id, vendor_idThe client's, to link it to

The file comes in the JSON body, so how big it can be is up to your server's upload limit (post_max_size in PHP), and a base64 file is a third bigger than the file. Up to 500 MB.

curl -X POST https://itflow.example.com/api/v1/files/create.php \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"client_id": 1, "file_name": "rdg-fw-01-backup.cfg", "file_data": "c2V0IHN5c3RlbSBob3N0LW5hbWUgcmRnLWZ3LTAx", "asset_id": 1}'

Change, archive and delete

  • Files update takes file_id and any of file_name, file_description and folder_id - 0 for the top level - and changes only what you send.
  • Files delete needs Full on Support and the file archived first. It goes from the server too.
  • Folders create takes client_id, folder_name and parent_folder - one of the client's folders, or the top level if you leave it out.
  • Folders update takes folder_id, folder_name and parent_folder - never the folder itself, or one inside it.
  • Folders delete needs Full on Support. What's in it - files, documents and folders - moves up to the folder it was in.

Each takes client_id, the client's.

↑↓ to pickEnter to open