---
title: "Get models by model name and group id"
method: GET
path: "/mf/v1/models/name/{modelName}/groupId/{groupId}"
tags: ["modelStorage"]
---

# Get models by model name and group id

`GET /mf/v1/models/name/{modelName}/groupId/{groupId}`

Get Models.

## Path parameters

- `modelName` string, required
- `groupId` string, required

## Query parameters

- `currentPage` number
- `pageSize` number

## Response `200`

OK

- Model[]
  - `id` number — id for the model.
  - `model_name` string — Name for the model.
  - `model_version` ModelVersion
    - `id` number — Id for the ModelVersion.
    - `version` string, required — Model’s version number.
    - `creation_timestamp` string — Timestamp recorded when this model_version was created.
    - `latest_flag` integer — Timestamp recorded when metadata for this model_version was last updated.
    - `source` string, required — User that created this model_version.
    - `filepath` string, required — Running status of this model_version.
    - `model_id` number — Description of this model_version.
    - `enable_flag` integer
    - `training_id` string — The id of training
    - `training_flag` number — The flag that whether generated by model operator.
    - `push_timestamp` string — Timestamp pushed.
    - `push_id` number
    - `file_name` string
    - `params` string
  - `model_type` string — type of model, eg. tensorflow, sklearn, xgboost
  - `position` integer — Timestamp recorded when metadata for this model was last updated.
  - `creation_timestamp` string — Timestamp recorded when metadata for this model was last updated.
  - `update_timestamp` string — Update time
  - `user_id` number — User that created this model.
  - `group_id` number — Group Id of User.
  - `service_id` number — User that created this model.
  - `reamrk` string — Description of this model
  - `enable_flag` integer — Latest model versions for this model.
  - `modelversions` ModelVersion[]
    - `id` number — Id for the ModelVersion.
    - `version` string, required — Model’s version number.
    - `creation_timestamp` string — Timestamp recorded when this model_version was created.
    - `latest_flag` integer — Timestamp recorded when metadata for this model_version was last updated.
    - `source` string, required — User that created this model_version.
    - `filepath` string, required — Running status of this model_version.
    - `model_id` number — Description of this model_version.
    - `enable_flag` integer
    - `training_id` string — The id of training
    - `training_flag` number — The flag that whether generated by model operator.
    - `push_timestamp` string — Timestamp pushed.
    - `push_id` number
    - `file_name` string
    - `params` string

## Other responses

- `401` — Unauthorized
- `404` — The Models cannot be found

---

[API](https://skmtc.dev/webankfintech/apis/mf-server.md) · [All operations](https://skmtc.dev/webankfintech/apis/mf-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/webankfintech/mf-server/revisions/5ad7fc23d2c6/schema)
