Skip to content

Field Reference

Overview

This glossary lists recurring identifiers and fields across API v2. Use it when reading endpoint specifications to keep names consistent in your integrations.

Organization

FieldDescriptionExample
slugOrganization identifier used in URLs and access tokens. Lowercase, unique per tenant.yengear

Projects

FieldDescriptionExample
project_idPublic identifier for a project. Appears in URLs: /projects/{project_id}/....proj_xxxx

Devices

FieldDescriptionExample
idInternal integer primary key for a device. Used as {device_pk} in nested routes.128
serial_numberHardware identifier (IMEI, SN). Used when binding devices via safe code.868686000123456
agri_id (device)Platform-generated string ID assigned when the device is created. Prefix for factor IDs.d-1000-abcd

Factors

FieldDescriptionExample
idInternal integer primary key for a device. Used as {factor_pk} in nested routes.1
unitModbus slave ID (integer).1
addressRegister address (integer).0
data_indexOffset used when reading multiple registers.0
modbus_typeRegister type (holding, input, coil, discrete).holding
data_typeEncoding for the register value (int16, uint32, float, etc.).int16
data_endianByte order (ABCD, DCBA, BADC, CDAB).ABCD
data_factorMultiplier applied to raw data.0.1
data_deltaAdditive offset applied after scaling.-10
the_typeLogical factor type, matching definitions from /base/device-types/.temp
the_type_detailExpanded metadata for the_type (name, unit, icon).{ "name": "Temperature", "unit": "℃" }
agri_id (factor)Full factor identifierd-1000-abcd-1-000

Data Payloads

FieldDescriptionExample
tUTC timestamp in seconds.1708070400
value / vNumeric reading for a factor. Some endpoints use value, others use v.25.6
project_idInjected into POST /devices/{device_pk}/data/ responses to show source project.proj_xxxx
org_slugInjected into POST /devices/{device_pk}/data/ responses to show owning organization.yengear