Download OpenAPI specification:
Kiefa's Public API service allows customers to integrate Kiefa into their ecosystem.
| offset | integer The number of items to skip before starting to collect the result set |
| limit | integer The number of items to limit the result set to |
| sort | string Enum: "name" "updatedAt" The field to sort the result set by |
| dir | string Enum: "asc" "desc" The direction to sort the result set by |
| searchFilter | string Filter by name |
| genetics | string Enum: "Indica" "Sativa" "Hybrid" The genetic type of the strain |
| facilities | The facility of the strain |
[- {
- "id": 48,
- "name": "Blue Dream",
- "description": "A sativa-dominant hybrid",
- "expGramsSqft": 1,
- "expGramsPerPlant": 100,
- "expDieOff": 0.1,
- "expThc": 0.2,
- "genetics": "Hybrid",
- "plantDensity": 1.7,
- "facilityId": 82,
- "flowerYield": 70,
- "popcornYield": 20,
- "trimYield": 10,
- "estRevenuePerGram": 10,
- "categoryId": 48
}
]| id required | integer <int64> ID of strain to return |
{- "id": 48,
- "name": "Blue Dream",
- "description": "A sativa-dominant hybrid",
- "expGramsSqft": 1,
- "expGramsPerPlant": 100,
- "expDieOff": 0.1,
- "expThc": 0.2,
- "genetics": "Hybrid",
- "plantDensity": 1.7,
- "facilityId": 82,
- "flowerYield": 70,
- "popcornYield": 20,
- "trimYield": 10,
- "estRevenuePerGram": 10,
- "categoryId": 48
}| offset | integer The number of items to skip before starting to collect the result set |
| limit | integer The number of items to limit the result set to |
| sort | string Enum: "name" "updatedAt" The field to sort the result set by |
| dir | string Enum: "asc" "desc" The direction to sort the result set by |
| searchFilter | string Filter by name |
[- {
- "id": 82,
- "name": "Main Facility",
- "description": "HQ",
- "address": "123 Main St",
- "address2": "Suite 100",
- "city": "Denver",
- "zip": "80202",
- "size": 10000,
- "canopySize": 5000,
- "state": {
- "name": "Colorado"
}, - "timezone": "America/Denver"
}
]| id required | integer <int64> ID of facility to return |
{- "id": 82,
- "name": "Main Facility",
- "description": "HQ",
- "address": "123 Main St",
- "address2": "Suite 100",
- "city": "Denver",
- "zip": "80202",
- "size": 10000,
- "canopySize": 5000,
- "state": {
- "name": "Colorado"
}, - "timezone": "America/Denver"
}| offset | integer The number of items to skip before starting to collect the result set |
| limit | integer The number of items to limit the result set to |
| sort | string Enum: "name" "updatedAt" The field to sort the result set by |
| dir | string Enum: "asc" "desc" The direction to sort the result set by |
| searchFilter | string Filter by name |
| facilities | The facility of the room |
[- {
- "id": 48,
- "name": "Flowering Room 1",
- "description": "Room for flowering plants",
- "facilityId": 82,
- "size": 1000,
- "canopySize": 500,
- "numLights": 10,
- "lightWatts": 1000,
- "lightType": "HPS",
- "germination": true,
- "propagation": true,
- "vegetative": true,
- "flowering": true,
- "drying": true,
- "curing": true
}
]| id required | integer <int64> ID of room to return |
{- "id": 48,
- "name": "Flowering Room 1",
- "description": "Room for flowering plants",
- "facilityId": 82,
- "size": 1000,
- "canopySize": 500,
- "numLights": 10,
- "lightWatts": 1000,
- "lightType": "HPS",
- "germination": true,
- "propagation": true,
- "vegetative": true,
- "flowering": true,
- "drying": true,
- "curing": true
}| id required | integer <int64> ID of room to return tables from |
[- {
- "id": 180,
- "name": "Table 1",
- "description": "First side table",
- "roomId": 48,
- "size": 100,
- "canopySize": 50
}
]| offset | integer The number of items to skip before starting to collect the result set |
| limit | integer The number of items to limit the result set to |
| sort | string Enum: "name" "startDate" "endDate" "harvestDate" "phase" "updatedAt" The field to sort the result set by |
| dir | string Enum: "asc" "desc" The direction to sort the result set by |
| searchFilter | string Filter by name, description, and/or plant batch strain name |
| facilities | Array of integers The facility of the grow |
| startDate | string <date> The start date of the Grow |
| endDate | string <date> The end date of the Grow |
| harvestStartDate | string <date> Filter Grows with harvest dates after this date |
| harvestEndDate | string <date> Filter Grows with harvest dates before this date |
| completionStartDate | string <date> Filter Grows with end dates after this date |
| completionEndDate | string <date> Filter Grows with end dates before this date |
| strain | Array of integers Filter Grows containing the specified strain |
| phase | Array of strings Items Enum: "Germination" "Propagation" "Vegetative" "Flowering" "Drying" "Curing" Filter by current phase |
| status | Array of strings Items Enum: "Draft" "Planned" "Active" "Inactive" "Canceled" Filter by current Grow status |
| room | Array of integers Filter by Grows in the specified room(s) |
| tables | Array of integers Filter by Grows using the specified table(s) |
| category | Array of integers Filter by Grows with the specified category(s) |
| isMother | boolean |
[- {
- "id": 931,
- "name": "Grow 1",
- "description": "First grow",
- "startDate": "2024-07-22",
- "endDate": "2024-11-30",
- "harvestDate": "2024-10-04",
- "currentPhase": "Flowering",
- "germTime": 0,
- "propTime": 14,
- "vegTime": 28,
- "flowerTime": 56,
- "dryTime": 14,
- "cureTime": 14,
- "facilityId": 82,
- "status": "Active",
- "isMother": false
}
]| id required | integer <int64> ID of Grow to return |
{- "id": 931,
- "name": "Grow 1",
- "description": "First grow",
- "startDate": "2024-07-22",
- "endDate": "2024-11-30",
- "harvestDate": "2024-10-04",
- "currentPhase": "Flowering",
- "germTime": 0,
- "propTime": 14,
- "vegTime": 28,
- "flowerTime": 56,
- "dryTime": 14,
- "cureTime": 14,
- "facilityId": 82,
- "status": "Active",
- "isMother": false
}| offset | integer The number of items to skip before starting to collect the result set |
| limit | integer The number of items to limit the result set to |
| sort | string Enum: "name" "updatedAt" The field to sort the result set by |
| dir | string Enum: "asc" "desc" The direction to sort the result set by |
| searchFilter | string Filter by name |
[- {
- "id": 48,
- "name": "Tier 1"
}
]| offset | integer The number of items to skip before starting to collect the result set |
| limit | integer The number of items to limit the result set to |
| sort | string Enum: "lab" "strain" "date" "updatedAt" The field to sort the result set by |
| dir | string Enum: "asc" "desc" The direction to sort the result set by |
| searchFilter | string Filter by lab name |
| growId | string Filter by associated grow |
| strainId | string Filter by associated strain |
| startDate | string <date> Filter COAs with dates after this date |
| endDate | string <date> Filter COAs with dates before this date |
[- {
- "id": 1239,
- "date": "2024-11-15",
- "strainId": 28,
- "lab": "Premier Testing Labs",
- "cannabinoids": [
- {
- "id": 13,
- "weight": 19.2,
- "name": "THCA"
}, - {
- "id": 10,
- "weight": 0.456,
- "name": "D9-THC"
}, - {
- "id": 3,
- "weight": 0.028,
- "name": "CBDA"
}, - {
- "id": 4,
- "weight": 0.253,
- "name": "CBGA"
}
], - "terpenes": [
- {
- "id": 83,
- "weight": 0.148,
- "name": "Nerolidol"
}, - {
- "id": 64,
- "weight": 0.147,
- "name": "β-Carophyllene"
}, - {
- "id": 78,
- "weight": 0.058,
- "name": "Limonene"
}, - {
- "id": 146,
- "weight": 0.057,
- "name": "Humulene"
}, - {
- "id": 79,
- "weight": 0.02,
- "name": "Linalool"
}, - {
- "id": 103,
- "weight": 0.012,
- "name": "β-Pinene"
}, - {
- "id": 102,
- "weight": 0.008,
- "name": "β-Myrcene"
}, - {
- "id": 99,
- "weight": 0.008,
- "name": "α-Pinene"
}
]
}
]| offset | integer The number of items to skip before starting to collect the result set |
| limit | integer The number of items to limit the result set to |
| searchFilter | string Filter by name |
| type | string Enum: "CANNABINOID" "TERPENE" Filter by type |
[- {
- "id": 10,
- "name": "D9-THC",
- "type": "CANNABINOID"
}
]| offset | integer The number of items to skip before starting to collect the result set |
| limit | integer The number of items to limit the result set to |
| sort | string Enum: "time" "updatedAt" The field to sort the result set by |
| dir | string Enum: "asc" "desc" The direction to sort the result set by |
| searchFilter | string Filter by room or measure type name |
required | string or integer The type of measure. This can be either one of the standard Kiefa measure types or a custom measure type via the id. |
| growId | Array of integers |
| strainId | Array of integers |
| plantBatchId | Array of integers |
| roomId | Array of integers |
| facilityId | Array of integers |
| harvestId | Array of integers |
| startDate | string <date> |
| endDate | string <date> |
[- {
- "id": 24,
- "time": "2021-01-01T00:00:00Z",
- "value": 6135,
- "unit": "GRAM",
- "type": "Flower Weight",
- "growId": 10,
- "plantBatchId": 33,
- "strainId": 9,
- "roomId": null,
- "facilityId": 1,
- "harvestId": 33
}
]| value | number |
string or integer | |
| unit | string Enum: "METER" "CENTIMETER" "MILLIMETER" "YARD" "FOOT" "INCH" "GRAM" "KILOGRAM" "MILLIGRAM" "MICROGRAM" "OUNCE" "POUND" "CELSIUS" "FAHRENHEIT" "PPFD" "YPFD" "SQUARE_METER" "SQUARE_FOOT" "SQUARE_INCH" "CUBIC_INCH" "CUBIC_FOOT" "CUBIC_METER" "LITER" "MILLILITER" "FLUID_OUNCE" "GALLON" "CUP" "PERCENT" "EACH" "BOX" "CASE" "PACK" "ROLL" "PIECE" "PAIR" "PARTS_PER_MILLION" "MILLIGRAMS_PER_LITER" "LUMEN" "LUX" "WATT" "KILOWATT" "KILOWATT_HOUR" "GRAMS_PER_SQUARE_FOOT" "GRAMS_PER_WATT" "GRAMS_PER_KILOWATT_HOUR" "PH" "MS_PER_CM" "MICRO_S_PER_CM" |
| growId | integer or null |
| plantBatchId | integer or null |
| strainId | integer or null |
| roomId | integer or null |
| facilityId | integer or null |
| harvestId | integer or null |
{- "id": 24,
- "time": "2021-01-01T00:00:00Z",
- "value": 6135,
- "unit": "GRAM",
- "type": "Flower Weight",
- "growId": 10,
- "plantBatchId": 33,
- "strainId": 9,
- "roomId": null,
- "facilityId": 1,
- "harvestId": 33
}{- "id": 24,
- "time": "2021-01-01T00:00:00Z",
- "value": 6135,
- "unit": "GRAM",
- "type": "Flower Weight",
- "growId": 10,
- "plantBatchId": 33,
- "strainId": 9,
- "roomId": null,
- "facilityId": 1,
- "harvestId": 33
}| id required | integer <int64> ID of measure to return |
{- "id": 24,
- "time": "2021-01-01T00:00:00Z",
- "value": 6135,
- "unit": "GRAM",
- "type": "Flower Weight",
- "growId": 10,
- "plantBatchId": 33,
- "strainId": 9,
- "roomId": null,
- "facilityId": 1,
- "harvestId": 33
}| value | number |
string or integer | |
| unit | string Enum: "METER" "CENTIMETER" "MILLIMETER" "YARD" "FOOT" "INCH" "GRAM" "KILOGRAM" "MILLIGRAM" "MICROGRAM" "OUNCE" "POUND" "CELSIUS" "FAHRENHEIT" "PPFD" "YPFD" "SQUARE_METER" "SQUARE_FOOT" "SQUARE_INCH" "CUBIC_INCH" "CUBIC_FOOT" "CUBIC_METER" "LITER" "MILLILITER" "FLUID_OUNCE" "GALLON" "CUP" "PERCENT" "EACH" "BOX" "CASE" "PACK" "ROLL" "PIECE" "PAIR" "PARTS_PER_MILLION" "MILLIGRAMS_PER_LITER" "LUMEN" "LUX" "WATT" "KILOWATT" "KILOWATT_HOUR" "GRAMS_PER_SQUARE_FOOT" "GRAMS_PER_WATT" "GRAMS_PER_KILOWATT_HOUR" "PH" "MS_PER_CM" "MICRO_S_PER_CM" |
| growId | integer or null |
| plantBatchId | integer or null |
| strainId | integer or null |
| roomId | integer or null |
| facilityId | integer or null |
| harvestId | integer or null |
{- "id": 24,
- "time": "2021-01-01T00:00:00Z",
- "value": 6135,
- "unit": "GRAM",
- "type": "Flower Weight",
- "growId": 10,
- "plantBatchId": 33,
- "strainId": 9,
- "roomId": null,
- "facilityId": 1,
- "harvestId": 33
}{- "id": 24,
- "time": "2021-01-01T00:00:00Z",
- "value": 6135,
- "unit": "GRAM",
- "type": "Flower Weight",
- "growId": 10,
- "plantBatchId": 33,
- "strainId": 9,
- "roomId": null,
- "facilityId": 1,
- "harvestId": 33
}| id required | integer <int64> ID of measure to delete |
{- "id": 24,
- "time": "2021-01-01T00:00:00Z",
- "value": 6135,
- "unit": "GRAM",
- "type": "Flower Weight",
- "growId": 10,
- "plantBatchId": 33,
- "strainId": 9,
- "roomId": null,
- "facilityId": 1,
- "harvestId": 33
}| offset | integer The number of items to skip before starting to collect the result set |
| limit | integer The number of items to limit the result set to |
| sort | string Enum: "time" "updatedAt" The field to sort the result set by |
| dir | string Enum: "asc" "desc" The direction to sort the result set by |
| searchFilter | string Filter by name |
| growId | Array of integers Filter by associated grow |
| plantBatchId | Array of integers Filter by associated plant batch |
| strainId | Array of integers Filter by associated strain |
| roomId | Array of integers Filter by associated Flowering Room |
[- {
- "id": 593,
- "time": "2021-01-01T00:00:00Z",
- "plantBatchId": 33,
- "measures": [
- {
- "id": 2400,
- "time": "2021-01-01T00:00:00Z",
- "value": 6135,
- "type": "FLOWER",
- "unit": "GRAM"
}, - {
- "id": 2401,
- "time": "2021-01-01T00:00:00Z",
- "value": 2331,
- "type": "TRIM",
- "unit": "GRAM"
}
]
}
]| id | integer |
| time | string <date-time> |
| plantBatchId | integer |
Array of objects (Measure) |
{- "id": 593,
- "time": "2021-01-01T00:00:00Z",
- "plantBatchId": 33,
- "measures": [
- {
- "id": 2400,
- "time": "2021-01-01T00:00:00Z",
- "value": 6135,
- "type": "FLOWER",
- "unit": "GRAM"
}, - {
- "id": 2401,
- "time": "2021-01-01T00:00:00Z",
- "value": 2331,
- "type": "TRIM",
- "unit": "GRAM"
}
]
}{- "id": 593,
- "time": "2021-01-01T00:00:00Z",
- "plantBatchId": 33,
- "measures": [
- {
- "id": 2400,
- "time": "2021-01-01T00:00:00Z",
- "value": 6135,
- "type": "FLOWER",
- "unit": "GRAM"
}, - {
- "id": 2401,
- "time": "2021-01-01T00:00:00Z",
- "value": 2331,
- "type": "TRIM",
- "unit": "GRAM"
}
]
}| id required | integer <int64> ID of Harvest to return |
{- "id": 593,
- "time": "2021-01-01T00:00:00Z",
- "plantBatchId": 33,
- "measures": [
- {
- "id": 2400,
- "time": "2021-01-01T00:00:00Z",
- "value": 6135,
- "type": "FLOWER",
- "unit": "GRAM"
}, - {
- "id": 2401,
- "time": "2021-01-01T00:00:00Z",
- "value": 2331,
- "type": "TRIM",
- "unit": "GRAM"
}
]
}| id | integer |
| time | string <date-time> |
| plantBatchId | integer |
Array of objects (Measure) |
{- "id": 593,
- "time": "2021-01-01T00:00:00Z",
- "plantBatchId": 33,
- "measures": [
- {
- "id": 2400,
- "time": "2021-01-01T00:00:00Z",
- "value": 6135,
- "type": "FLOWER",
- "unit": "GRAM"
}, - {
- "id": 2401,
- "time": "2021-01-01T00:00:00Z",
- "value": 2331,
- "type": "TRIM",
- "unit": "GRAM"
}
]
}{- "id": 593,
- "time": "2021-01-01T00:00:00Z",
- "plantBatchId": 33,
- "measures": [
- {
- "id": 2400,
- "time": "2021-01-01T00:00:00Z",
- "value": 6135,
- "type": "FLOWER",
- "unit": "GRAM"
}, - {
- "id": 2401,
- "time": "2021-01-01T00:00:00Z",
- "value": 2331,
- "type": "TRIM",
- "unit": "GRAM"
}
]
}| id required | integer <int64> ID of harvest to delete |
{- "id": 593,
- "time": "2021-01-01T00:00:00Z",
- "plantBatchId": 33,
- "measures": [
- {
- "id": 2400,
- "time": "2021-01-01T00:00:00Z",
- "value": 6135,
- "type": "FLOWER",
- "unit": "GRAM"
}, - {
- "id": 2401,
- "time": "2021-01-01T00:00:00Z",
- "value": 2331,
- "type": "TRIM",
- "unit": "GRAM"
}
]
}