Class LookupRecordsRequest
java.lang.Object
ai.vectros.resources.records.requests.LookupRecordsRequest
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic final classstatic interfacestatic interface -
Method Summary
-
Method Details
-
getValues
- Returns:
- Exact values to match, for a lookup declared over several fields — one value per field, in the order the lookup declares them, given as a repeated parameter (
?field=status,area&values=open&values=billing). Mutually exclusive withvalue; a singlevaluesis identical tovalue.You may supply fewer values than the lookup declares, as long as they are a leading run of its fields; doing so returns the records grouped by the fields you left unspecified. Narrowing with
sortFrom/sortTothen requires a value for every field, because the ordering is only continuous within one fully specified combination.
-
getType
- Returns:
- The record type to look up, e.g.
intake_form.
-
getField
- Returns:
- The name of the lookup field to match on, as declared on the type's schema.
-
getValue
- Returns:
- Exact value to match. Mutually exclusive with
from/to,prefixandvalues. Rejected for a sensitive field — usePOST /v1/records/lookupinstead so the value is not exposed in the URL.
-
getFrom
- Returns:
- Inclusive lower bound of a range lookup (requires
to; non-sensitive fields only). Mutually exclusive withvalueandprefix.
-
getTo
- Returns:
- Inclusive upper bound of a range lookup (requires
from).
-
getPrefix
- Returns:
- Prefix to match (string, non-sensitive fields only). Mutually exclusive with
valueandfrom/to.
-
getSortFrom
- Returns:
- Inclusive lower bound on the lookup field's sort key, narrowing a
valuematch to records at or after this point. Use withvalue; combine withsortToto bound both ends. Give the bound in the same form as the sorted field's own values — epoch milliseconds when the lookup sorts bycreatedAtorlastUpdated. Records with no value for the sorted field are never included in a bounded window.
-
getSortTo
- Returns:
- Inclusive upper bound on the lookup field's sort key, narrowing a
valuematch to records at or before this point. Use withvalue; combine withsortFrom.
-
getStartFrom
- Returns:
- Pagination cursor. Pass the
nextCursorreturned by the previous page to fetch the next page; omit it for the first page. The cursor is opaque — echo it back unchanged, and do not parse it or construct one. Keep every other query parameter identical while paging: a cursor is valid only for the exact query that returned it, and reusing one against a different query is rejected with a 400.
-
getLimit
- Returns:
- Maximum number of records to return per page. Allowed range 1–100; defaults to 20.
-
getIncludePayload
- Returns:
- Set to
trueto include each record's full payload, rehydrating any payloads stored externally (capped per page). Defaults tofalse, which returns only the indexed projection.
-
getOrder
- Returns:
- Sort direction by the field's value:
asc(ascending, the default) ordesc(descending).
-
equals
-
getAdditionalProperties
-
hashCode
public int hashCode() -
toString
-
builder
-