---
title: "Get the custom model JSON for a custom model"
method: GET
path: "/models/{model_id}/custom-model-json"
---

# Get the custom model JSON for a custom model

`GET /models/{model_id}/custom-model-json`

Get the raw JSON content of a custom model.

Only works for models with custom_model_data (custom uploaded models).
Returns the full JSON structure of the serialized PyBaMM model.

Parameters
----------
model_id : str
    The model ID

Returns
-------
dict
    The custom model JSON content

## Path parameters

- `model_id` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/ionworks/apis/fastapi.md) · [All operations](https://skmtc.dev/ionworks/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ionworks/fastapi/revisions/7337a3cbdaf2/schema)
