# Retrieve a user's segments Retrieves a user's UI segments. Endpoint: GET /grid-segments Version: latest Security: SecretApiKey, JWT ## Query parameters: - `limit` (integer) Limits the number of collection items to be returned. - `offset` (integer) Specifies the starting point within the collection of items to be returned. - `sort` (array) Sorts and orders the collection of items. To sort in descending order, prefix with . Multiple fields can be sorted by separating each with . - `filter` (string) Filters the collection items. This field requires a special format. Use for multiple allowed values. Use for multiple fields. For more information, see Using filter with collections. - `q` (string) Use this field to perform a partial search of text fields. ## Response 200 fields (application/json): - `id` (string) ID of the segment. Example: "grd_seg_0YVCNRJW0ADV49TN8BD9X91XB5" - `owner` (object, required) Creator of segment. - `owner.id` (string) Unique resource ID. Example: "4f6cf35x-2c4y-483z-a0a9-158621f77a21" - `owner.name` (string) First and last name of the creator. - `data` (object, required) Object that contains a schema that is used to set up the UI for the segment. This schema is built and consumed by the frontend. It includes information such as: segment name, UI settings, and so on. - `data.name` (string) Name of data grid segment. - `data.columns` (array) List of columns to display in grid segment. - `data.filters` (string,null) Combination of filters to apply on grid segment data. Example: "averageValue/amount:10;bin:555,2058" - `data.page` (string) Where to display grid segment: data tables or customer details. Enum: "data-tables", "customer-details" - `data.sort` (string) Column to sort data by. To sort in descending order, prefix with . - `data.type` (string) Data to display in grid segment. Enum: "customers", "invoices", "transactions", "subscriptions", "api-logs", "coupon-redemptions", "webhook-logs", "tax-logs", "credit-memos", "kyc", "journal-entry", "aml", "payout-requests", "organizations", "quotes", "deposit-requests" - `isStarred` (boolean) Specifies if this segment is starred by the current user. Starring a segment marks it as a favorite segment, and also adds the segment to a starred folder in the UI. - `isVisible` (boolean) Specifies if the segment is visible to the current user. - `users` (array) List of user details with which this segment is shared. - `users.name` (string) First and last name. - `scope` (string, required) Controls the visibility of the segment. Enum: "private", "public", "shared" ## Response 403 fields (application/json): - `status` (integer) HTTP status code. - `type` (string) Problem type in the form of a [URI](https://tools.ietf.org/html/rfc3986) reference. It should provide human-readable documentation for the problem type. When this member is not present, its value is assumed to be "about:blank". - `title` (string) Short, human-readable summary of the problem type. Other than for the purposes of localization, this should not change from occurrence to occurrence of the problem. - `detail` (string) Human-readable explanation that is specific to this occurrence of the problem. - `instance` (string) URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.