Object segment
Returns child segment names under a path (one level deep, short labels—not full object names), optionally filtered with the same glob-style pattern as object match. next (pagination cursor) is required; use 0 for the first page. path and pattern are optional—use them to narrow results and continue pagination.
{{host}}/v1/object/segment?path={{path}}&next={{next}}&pattern={{pattern}}- pathstringOptional
Parent path whose immediate child segments are listed. Omit to start from the root of the namespace your key can see.
example: {{owner}}:position - nextnumberRequired
Pagination cursor (required): use `0` for the first page; thereafter use the value returned by the previous response as the `next` query parameter. The response body returns the cursor for the next page. A value of `-1` means there is no further page — you have the last page of data.
example: 0 - patternstringOptional
Optional glob-style pattern to filter.
Values
- pattern
- *pattern
- pattern*
- *pattern*
example: *
- x-api-keyRequired
Your BigState API key.
*provide api key here* - Content-TypeRequired
MIME type of the request body.
application/json - AcceptRequired
MIME types the client can understand in the response.
application/json
See authentication headers here.
- 200Response body · object
Success. Returns a pagination cursor and the immediate child segment names for this page (not full object names).
- nextnumber
Pagination cursor (required): use `0` for the first page; thereafter use the value returned by the previous response as the `next` query parameter. The response body returns the cursor for the next page. A value of `-1` means there is no further page — you have the last page of data.
example: 0 - segmentsarray[string]
Short segment labels one level below the requested path (e.g. a single path component each), not full name@owner strings.
- 401
Unauthorized.
- 403
Access denied. The caller does not have sufficient rights to perform this operation.
- 400Response body · object
Bad request.
{"error": 6,"desc": "\"Object must be formatted as object"}- errornumber
Numeric error code. See the error codes reference for the full list.
- descstring
Human-readable description of the error.
Segment objects
List objects under a path prefix with a wildcard pattern (paginated).
curl 'https://api.bigstate.dev/v1/object/segment?path=Z5H1QxoGRz5vc6VeNIwwpVC6biVkYTqXe9SGQJJ6%3Aposition&next=0&pattern=*' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json'