# Get Profiles by IDs Retrieves processing profiles by their IDs. Only filters by profile IDs. Endpoint: POST /inventory.roast.getProfilesByIds Security: oauth2 ## Request fields (application/json): - `params` (object) - `params.filter` (object) Defines all required and optional filter parameters for the operation. - `params.filter.profileIds` (array) - `params.pagination` (object) Defines all required and optional pagination parameters for the operation. - `params.pagination.limit` (integer) The number of elements to be returned Example: 20 - `params.pagination.after` (string) The cursor to retrieve the next page. This is an opaque value that should not be interpreted by the client. Example: "aBc=" ## Response 200 fields (application/json): - `ok` (boolean) Indicates whether the request was successful. Example: true - `result` (object) A collection of processing profiles. - `result.profiles` (array) The list of profiles. - `result.profiles.id` (string) The unique identifier of the profile. Example: "550e8400-e29b-41d4-a716-446655440000" - `result.profiles.name` (string) The name of the profile. Example: "La Loma | Dark" - `result.profiles.profileType` (string) The type of profile: 'PRE_ROAST_BLEND' for profiles with 2 or more components, or 'SINGLE_ORIGIN' for profiles with 1 component. Enum: "SINGLE_ORIGIN", "PRE_ROAST_BLEND" - `result.profiles.profileGroup` (object) Represents a reference to an object by its name. - `result.profiles.profileGroup.name` (string) - `result.profiles.components` (array) The components (green lots) that make up this profile. - `result.profiles.components.percentage` (number) The percentage this component contributes (0-100). Example: 50 - `result.profiles.components.greenLots` (array) The green lots that are part of this component. - `result.profiles.components.greenLots.id` (string) The unique identifier of the object. Example: "550e8400-e29b-41d4-a716-446655440000" - `result.profiles.components.greenLots.name` (string) The name of the Object. Example: "Sample object name" - `result.profiles.referenceRoast` (object) Represents a reference to an object by its name and unique identifier. - `result.profiles.projects` (array) ## Response 400 fields (application/json): - `ok` (boolean) Indicates whether the request was successful or not - `error` (object) - `error.code` (string) Specifies error code that can be handled programmatically. Example: "invalid_parameter" - `error.message` (string) A detailed description of the occurred error. Example: "Invalid parameter provided" ## Response 401 fields (application/json): - `ok` (boolean) Indicates whether the request was successful or not - `error` (object) - `error.code` (string) Specifies error code that can be handled programmatically. Example: "invalid_parameter" - `error.message` (string) A detailed description of the occurred error. Example: "Invalid parameter provided" ## Response 403 fields (application/json): - `ok` (boolean) Indicates whether the request was successful or not - `error` (object) - `error.code` (string) Specifies error code that can be handled programmatically. Example: "invalid_parameter" - `error.message` (string) A detailed description of the occurred error. Example: "Invalid parameter provided" ## Response 422 fields (application/json): - `ok` (boolean) Indicates whether the request was successful or not - `error` (object) - `error.code` (string) Specifies error code that can be handled programmatically. Example: "invalid_parameter" - `error.message` (string) A detailed description of the occurred error. Example: "Invalid parameter provided" ## Response 500 fields (application/json): - `ok` (boolean) Indicates whether the request was successful or not - `error` (object) - `error.code` (string) Specifies error code that can be handled programmatically. Example: "invalid_parameter" - `error.message` (string) A detailed description of the occurred error. Example: "Invalid parameter provided"