curl --request POST \
--url https://www.closient.com/resolver/api/v1/lot-groups \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"brand_id": "b2c3d4e5f6g7h8j9k2mnpq",
"name": "Summer 2026 batch"
}
'import requests
url = "https://www.closient.com/resolver/api/v1/lot-groups"
payload = {
"brand_id": "b2c3d4e5f6g7h8j9k2mnpq",
"name": "Summer 2026 batch"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({brand_id: 'b2c3d4e5f6g7h8j9k2mnpq', name: 'Summer 2026 batch'})
};
fetch('https://www.closient.com/resolver/api/v1/lot-groups', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://www.closient.com/resolver/api/v1/lot-groups",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'brand_id' => 'b2c3d4e5f6g7h8j9k2mnpq',
'name' => 'Summer 2026 batch'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://www.closient.com/resolver/api/v1/lot-groups"
payload := strings.NewReader("{\n \"brand_id\": \"b2c3d4e5f6g7h8j9k2mnpq\",\n \"name\": \"Summer 2026 batch\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://www.closient.com/resolver/api/v1/lot-groups")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"brand_id\": \"b2c3d4e5f6g7h8j9k2mnpq\",\n \"name\": \"Summer 2026 batch\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.closient.com/resolver/api/v1/lot-groups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"brand_id\": \"b2c3d4e5f6g7h8j9k2mnpq\",\n \"name\": \"Summer 2026 batch\"\n}"
response = http.request(request)
puts response.read_body{
"brand_id": "b2c3d4e5-f678-9012-abcd-ef2345678901",
"created": "2026-06-01T09:00:00Z",
"id": "a1b2c3d4e5f6g7h8j9k2mn",
"member_count": 3,
"modified": "2026-06-19T14:30:00Z",
"name": "Summer 2026 batch",
"organization_id": "c3d4e5f6-7890-1234-bcde-f34567890123"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}Create lot group
Create an empty lot group under one of the organization’s brands, then add lots to it with POST /lot-groups/{group_id}/members. A name the brand already uses is 422. A brand of another organization is 404. Requires CONTRIBUTE: a read-only key gets 403.
curl --request POST \
--url https://www.closient.com/resolver/api/v1/lot-groups \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"brand_id": "b2c3d4e5f6g7h8j9k2mnpq",
"name": "Summer 2026 batch"
}
'import requests
url = "https://www.closient.com/resolver/api/v1/lot-groups"
payload = {
"brand_id": "b2c3d4e5f6g7h8j9k2mnpq",
"name": "Summer 2026 batch"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({brand_id: 'b2c3d4e5f6g7h8j9k2mnpq', name: 'Summer 2026 batch'})
};
fetch('https://www.closient.com/resolver/api/v1/lot-groups', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://www.closient.com/resolver/api/v1/lot-groups",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'brand_id' => 'b2c3d4e5f6g7h8j9k2mnpq',
'name' => 'Summer 2026 batch'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://www.closient.com/resolver/api/v1/lot-groups"
payload := strings.NewReader("{\n \"brand_id\": \"b2c3d4e5f6g7h8j9k2mnpq\",\n \"name\": \"Summer 2026 batch\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://www.closient.com/resolver/api/v1/lot-groups")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"brand_id\": \"b2c3d4e5f6g7h8j9k2mnpq\",\n \"name\": \"Summer 2026 batch\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.closient.com/resolver/api/v1/lot-groups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"brand_id\": \"b2c3d4e5f6g7h8j9k2mnpq\",\n \"name\": \"Summer 2026 batch\"\n}"
response = http.request(request)
puts response.read_body{
"brand_id": "b2c3d4e5-f678-9012-abcd-ef2345678901",
"created": "2026-06-01T09:00:00Z",
"id": "a1b2c3d4e5f6g7h8j9k2mn",
"member_count": 3,
"modified": "2026-06-19T14:30:00Z",
"name": "Summer 2026 batch",
"organization_id": "c3d4e5f6-7890-1234-bcde-f34567890123"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}Authorizations
Query Parameters
Organization to act on. Omit it: an API key acts on its own organization, and a session or OAuth caller on its single organization. Required only for a session or OAuth caller that belongs to more than one organization (400 without it).
22^[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}$Body
Payload to create an empty lot group or serial group.
UUID of one of the organization's brands; the group belongs to it.
22^[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}$The group's label (max 120 characters). It must be unique within the brand.
1 - 120^[^\x00]{1,120}$Response
Created
A lot group as read from the API.
URL-safe 22-character shortuuid encoding of the row's UUID primary key. Stable across the row's lifetime; suitable for sharing in URLs, log lines, and external SDK clients. Accepted on input as either the shortuuid form or the canonical UUID form (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
22^[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}$The group's label (max 120 characters), unique within its brand.
UUID of the brand that owns the group.
22^[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}$UUID of the organization that owns the group.
22^[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}$How many members the group has right now.
ISO-8601 creation timestamp.
ISO-8601 last-modified timestamp.