# Baseten Integration via LowCodeAPI

## Overview

Platform for deploying and managing machine learning models with APIs, enabling deployment and scaling of ML models with a focus on developer experience.

## Base Endpoint

```
https://api.lowcodeapi.com/baseten/
```

## Authentication

LowCodeAPI handles authentication automatically. You only need to:

1. **Sign up** at [https://www.baseten.co](https://www.baseten.co)
2. **Get your credentials** from [https://app.baseten.co/settings/api_keys](https://app.baseten.co/settings/api_keys)
3. **Connect your account** in LowCodeAPI dashboard
4. **Use your `api_token`** in all requests

The `api_token` is your LowCodeAPI authentication token. LowCodeAPI will automatically:
- Fetch your Baseten API key
- Apply it to each request with `Authorization` header

**Auth Type**: API Key (Authorization header)

## API Categories

- AI Cloud

## Common Endpoints

### Category: Inference

#### Call environment predict

**Method**: `POST` | **LowCodeAPI Path**: `/environments/envname/predict`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/environments/envname/predict?env_name={env_name}&api_token={api_token}
```


**Path Parameters**:

| `env_name` | string | The name of the model's environment you want to call |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Body Parameters**:

| `input` | object | Yes | JSON-serializable model input |


**Example Request**:
```bash
curl -X POST "https://api.lowcodeapi.com/baseten/environments/envname/predict?env_name=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"input":"value"}'
```

**Official Documentation**: [https://docs.baseten.co/reference/inference-api/predict-endpoints/environments-predict](https://docs.baseten.co/reference/inference-api/predict-endpoints/environments-predict)

---

#### Call development deployment predict

**Method**: `POST` | **LowCodeAPI Path**: `/development/predict`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/development/predict&api_token={api_token}
```


**Body Parameters**:

| `input` | object | Yes | JSON-serializable model input |


**Example Request**:
```bash
curl -X POST "https://api.lowcodeapi.com/baseten/development/predict?&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"input":"value"}'
```

**Official Documentation**: [https://docs.baseten.co/reference/inference-api/predict-endpoints/development-predict](https://docs.baseten.co/reference/inference-api/predict-endpoints/development-predict)

---

#### Call deployment predict

**Method**: `POST` | **LowCodeAPI Path**: `/deployment/deploymentid/predict`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/deployment/deploymentid/predict?deployment_id={deployment_id}&api_token={api_token}
```


**Path Parameters**:

| `deployment_id` | string | The deployment's alphanumeric ID |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Body Parameters**:

| `input` | object | Yes | JSON-serializable model input |


**Example Request**:
```bash
curl -X POST "https://api.lowcodeapi.com/baseten/deployment/deploymentid/predict?deployment_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"input":"value"}'
```

**Official Documentation**: [https://docs.baseten.co/reference/inference-api/predict-endpoints/deployment-predict](https://docs.baseten.co/reference/inference-api/predict-endpoints/deployment-predict)

---

#### Call environment async predict

**Method**: `POST` | **LowCodeAPI Path**: `/environments/envname/async_predict`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/environments/envname/async_predict?env_name={env_name}&api_token={api_token}
```


**Path Parameters**:

| `env_name` | string | The name of the model's environment you want to call |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Body Parameters**:

| `input` | object | Yes | JSON-serializable model input |


**Example Request**:
```bash
curl -X POST "https://api.lowcodeapi.com/baseten/environments/envname/async_predict?env_name=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"input":"value"}'
```

**Official Documentation**: [https://docs.baseten.co/reference/inference-api/predict-endpoints/environments-async-predict](https://docs.baseten.co/reference/inference-api/predict-endpoints/environments-async-predict)

---

#### Call development async predict

**Method**: `POST` | **LowCodeAPI Path**: `/development/async_predict`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/development/async_predict&api_token={api_token}
```


**Body Parameters**:

| `input` | object | Yes | JSON-serializable model input |


**Example Request**:
```bash
curl -X POST "https://api.lowcodeapi.com/baseten/development/async_predict?&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"input":"value"}'
```

**Official Documentation**: [https://docs.baseten.co/reference/inference-api/predict-endpoints/development-async-predict](https://docs.baseten.co/reference/inference-api/predict-endpoints/development-async-predict)

---

#### Call deployment async predict

**Method**: `POST` | **LowCodeAPI Path**: `/deployment/deploymentid/async_predict`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/deployment/deploymentid/async_predict?deployment_id={deployment_id}&api_token={api_token}
```


**Path Parameters**:

| `deployment_id` | string | The deployment's alphanumeric ID |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Body Parameters**:

| `input` | object | Yes | JSON-serializable model input |


**Example Request**:
```bash
curl -X POST "https://api.lowcodeapi.com/baseten/deployment/deploymentid/async_predict?deployment_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"input":"value"}'
```

**Official Documentation**: [https://docs.baseten.co/reference/inference-api/predict-endpoints/deployment-async-predict](https://docs.baseten.co/reference/inference-api/predict-endpoints/deployment-async-predict)

---

#### Get async request status

**Method**: `GET` | **LowCodeAPI Path**: `/async_request/requestid`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/async_request/requestid?request_id={request_id}&api_token={api_token}
```


**Path Parameters**:

| `request_id` | string | The async request ID |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Example Request**:
```bash
curl -X GET "https://api.lowcodeapi.com/baseten/async_request/requestid?request_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/inference-api/status-endpoints/get-async-request-status](https://docs.baseten.co/reference/inference-api/status-endpoints/get-async-request-status)

---

#### Cancel async request

**Method**: `DELETE` | **LowCodeAPI Path**: `/async_request/requestid`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/async_request/requestid?request_id={request_id}&api_token={api_token}
```


**Path Parameters**:

| `request_id` | string | The async request ID |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Example Request**:
```bash
curl -X DELETE "https://api.lowcodeapi.com/baseten/async_request/requestid?request_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/inference-api/predict-endpoints/cancel-async-request](https://docs.baseten.co/reference/inference-api/predict-endpoints/cancel-async-request)

---

#### Get environment async queue status

**Method**: `GET` | **LowCodeAPI Path**: `/environments/envname/async_queue_status`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/environments/envname/async_queue_status?env_name={env_name}&api_token={api_token}
```


**Path Parameters**:

| `env_name` | string | The name of the model's environment |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Example Request**:
```bash
curl -X GET "https://api.lowcodeapi.com/baseten/environments/envname/async_queue_status?env_name=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/inference-api/status-endpoints/environments-get-async-queue-status](https://docs.baseten.co/reference/inference-api/status-endpoints/environments-get-async-queue-status)

---

#### Get development async queue status

**Method**: `GET` | **LowCodeAPI Path**: `/development/async_queue_status`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/development/async_queue_status&api_token={api_token}
```


**Example Request**:
```bash
curl -X GET "https://api.lowcodeapi.com/baseten/development/async_queue_status&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/inference-api/status-endpoints/development-get-async-queue-status](https://docs.baseten.co/reference/inference-api/status-endpoints/development-get-async-queue-status)

---

#### Get deployment async queue status

**Method**: `GET` | **LowCodeAPI Path**: `/deployment/deploymentid/async_queue_status`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/deployment/deploymentid/async_queue_status?deployment_id={deployment_id}&api_token={api_token}
```


**Path Parameters**:

| `deployment_id` | string | The deployment's alphanumeric ID |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Example Request**:
```bash
curl -X GET "https://api.lowcodeapi.com/baseten/deployment/deploymentid/async_queue_status?deployment_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/inference-api/status-endpoints/deployment-get-async-queue-status](https://docs.baseten.co/reference/inference-api/status-endpoints/deployment-get-async-queue-status)

---

#### Wake production environment

**Method**: `POST` | **LowCodeAPI Path**: `/production/wake`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/production/wake&api_token={api_token}
```


**Example Request**:
```bash
curl -X POST "https://api.lowcodeapi.com/baseten/production/wake&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/inference-api/wake/production-wake](https://docs.baseten.co/reference/inference-api/wake/production-wake)

---

#### Wake development deployment

**Method**: `POST` | **LowCodeAPI Path**: `/development/wake`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/development/wake&api_token={api_token}
```


**Example Request**:
```bash
curl -X POST "https://api.lowcodeapi.com/baseten/development/wake&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/inference-api/wake/development-wake](https://docs.baseten.co/reference/inference-api/wake/development-wake)

---

#### Wake deployment

**Method**: `POST` | **LowCodeAPI Path**: `/deployment/deploymentid/wake`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/deployment/deploymentid/wake?deployment_id={deployment_id}&api_token={api_token}
```


**Path Parameters**:

| `deployment_id` | string | The deployment's alphanumeric ID |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Example Request**:
```bash
curl -X POST "https://api.lowcodeapi.com/baseten/deployment/deploymentid/wake?deployment_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/inference-api/wake/deployment-wake](https://docs.baseten.co/reference/inference-api/wake/deployment-wake)

---

### Category: Models

#### Get all models

**Method**: `GET` | **LowCodeAPI Path**: `/v1/models`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/models&api_token={api_token}
```


**Example Request**:
```bash
curl -X GET "https://api.lowcodeapi.com/baseten/v1/models&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/management-api/models/gets-all-models](https://docs.baseten.co/reference/management-api/models/gets-all-models)

---

#### Get model by ID

**Method**: `GET` | **LowCodeAPI Path**: `/v1/models/modelid`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/models/modelid?model_id={model_id}&api_token={api_token}
```


**Path Parameters**:

| `model_id` | string | The model's alphanumeric ID |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Example Request**:
```bash
curl -X GET "https://api.lowcodeapi.com/baseten/v1/models/modelid?model_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/management-api/models/gets-a-model-by-id](https://docs.baseten.co/reference/management-api/models/gets-a-model-by-id)

---

#### Delete model

**Method**: `DELETE` | **LowCodeAPI Path**: `/v1/models/modelid`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/models/modelid?model_id={model_id}&api_token={api_token}
```


**Path Parameters**:

| `model_id` | string | The model's alphanumeric ID |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Example Request**:
```bash
curl -X DELETE "https://api.lowcodeapi.com/baseten/v1/models/modelid?model_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/management-api/models/deletes-a-model-by-id](https://docs.baseten.co/reference/management-api/models/deletes-a-model-by-id)

---

### Category: Chains

#### Get all chains

**Method**: `GET` | **LowCodeAPI Path**: `/v1/chains`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/chains&api_token={api_token}
```


**Example Request**:
```bash
curl -X GET "https://api.lowcodeapi.com/baseten/v1/chains&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/management-api/chains/gets-all-chains](https://docs.baseten.co/reference/management-api/chains/gets-all-chains)

---

#### Get chain by ID

**Method**: `GET` | **LowCodeAPI Path**: `/v1/chains/chainid`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/chains/chainid?chain_id={chain_id}&api_token={api_token}
```


**Path Parameters**:

| `chain_id` | string | The chain's alphanumeric ID |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Example Request**:
```bash
curl -X GET "https://api.lowcodeapi.com/baseten/v1/chains/chainid?chain_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/management-api/chains/gets-a-chain-by-id](https://docs.baseten.co/reference/management-api/chains/gets-a-chain-by-id)

---

#### Delete chain

**Method**: `DELETE` | **LowCodeAPI Path**: `/v1/chains/chainid`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/chains/chainid?chain_id={chain_id}&api_token={api_token}
```


**Path Parameters**:

| `chain_id` | string | The chain's alphanumeric ID |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Example Request**:
```bash
curl -X DELETE "https://api.lowcodeapi.com/baseten/v1/chains/chainid?chain_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/management-api/chains/deletes-a-chain-by-id](https://docs.baseten.co/reference/management-api/chains/deletes-a-chain-by-id)

---

### Category: Deployments

#### Activate model environment

**Method**: `POST` | **LowCodeAPI Path**: `/v1/models/modelid/environments/envname/activate`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/models/modelid/environments/envname/activate?model_id={model_id}&env_name={env_name}&api_token={api_token}
```


**Path Parameters**:

| `model_id` | string | The model's alphanumeric ID |
| `env_name` | string | The name of the environment |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Example Request**:
```bash
curl -X POST "https://api.lowcodeapi.com/baseten/v1/models/modelid/environments/envname/activate?model_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/management-api/deployments/activate/activates-a-deployment-associated-with-an-environment](https://docs.baseten.co/reference/management-api/deployments/activate/activates-a-deployment-associated-with-an-environment)

---

#### Activate development deployment

**Method**: `POST` | **LowCodeAPI Path**: `/v1/models/modelid/deployments/development/activate`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/models/modelid/deployments/development/activate?model_id={model_id}&api_token={api_token}
```


**Path Parameters**:

| `model_id` | string | The model's alphanumeric ID |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Example Request**:
```bash
curl -X POST "https://api.lowcodeapi.com/baseten/v1/models/modelid/deployments/development/activate?model_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/management-api/deployments/activate/activates-a-development-deployment](https://docs.baseten.co/reference/management-api/deployments/activate/activates-a-development-deployment)

---

#### Activate deployment

**Method**: `POST` | **LowCodeAPI Path**: `/v1/models/modelid/deployments/deploymentid/activate`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/models/modelid/deployments/deploymentid/activate?model_id={model_id}&deployment_id={deployment_id}&api_token={api_token}
```


**Path Parameters**:

| `model_id` | string | The model's alphanumeric ID |
| `deployment_id` | string | The deployment's alphanumeric ID |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Example Request**:
```bash
curl -X POST "https://api.lowcodeapi.com/baseten/v1/models/modelid/deployments/deploymentid/activate?model_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/management-api/deployments/activate/activates-a-deployment](https://docs.baseten.co/reference/management-api/deployments/activate/activates-a-deployment)

---

#### Deactivate model environment

**Method**: `POST` | **LowCodeAPI Path**: `/v1/models/modelid/environments/envname/activate`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/models/modelid/environments/envname/activate?model_id={model_id}&env_name={env_name}&api_token={api_token}
```


**Path Parameters**:

| `model_id` | string | The model's alphanumeric ID |
| `env_name` | string | The name of the environment |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Example Request**:
```bash
curl -X POST "https://api.lowcodeapi.com/baseten/v1/models/modelid/environments/envname/activate?model_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/management-api/deployments/deactivate/deactivates-a-deployment-associated-with-an-environment](https://docs.baseten.co/reference/management-api/deployments/deactivate/deactivates-a-deployment-associated-with-an-environment)

---

#### Deactivate development deployment

**Method**: `POST` | **LowCodeAPI Path**: `/v1/models/modelid/deployments/development/activate`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/models/modelid/deployments/development/activate?model_id={model_id}&api_token={api_token}
```


**Path Parameters**:

| `model_id` | string | The model's alphanumeric ID |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Example Request**:
```bash
curl -X POST "https://api.lowcodeapi.com/baseten/v1/models/modelid/deployments/development/activate?model_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/management-api/deployments/deactivate/deactivates-a-development-deployment](https://docs.baseten.co/reference/management-api/deployments/deactivate/deactivates-a-development-deployment)

---

#### Deactivate deployment

**Method**: `POST` | **LowCodeAPI Path**: `/v1/models/modelid/deployments/deploymentid/activate`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/models/modelid/deployments/deploymentid/activate?model_id={model_id}&deployment_id={deployment_id}&api_token={api_token}
```


**Path Parameters**:

| `model_id` | string | The model's alphanumeric ID |
| `deployment_id` | string | The deployment's alphanumeric ID |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Example Request**:
```bash
curl -X POST "https://api.lowcodeapi.com/baseten/v1/models/modelid/deployments/deploymentid/activate?model_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/management-api/deployments/deactivate/deactivates-a-deployment](https://docs.baseten.co/reference/management-api/deployments/deactivate/deactivates-a-deployment)

---

#### Promote to model environment

**Method**: `POST` | **LowCodeAPI Path**: `/v1/models/modelid/environments/envname/promote`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/models/modelid/environments/envname/promote?model_id={model_id}&env_name={env_name}&api_token={api_token}
```


**Path Parameters**:

| `model_id` | string | The model's alphanumeric ID |
| `env_name` | string | The name of the environment |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Example Request**:
```bash
curl -X POST "https://api.lowcodeapi.com/baseten/v1/models/modelid/environments/envname/promote?model_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/management-api/deployments/promote/promotes-a-deployment-to-an-environment](https://docs.baseten.co/reference/management-api/deployments/promote/promotes-a-deployment-to-an-environment)

---

#### Cancel promotion to environment

**Method**: `POST` | **LowCodeAPI Path**: `/v1/models/modelid/environments/envname/cancel_promotion`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/models/modelid/environments/envname/cancel_promotion?model_id={model_id}&env_name={env_name}&api_token={api_token}
```


**Path Parameters**:

| `model_id` | string | The model's alphanumeric ID |
| `env_name` | string | The name of the environment |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Example Request**:
```bash
curl -X POST "https://api.lowcodeapi.com/baseten/v1/models/modelid/environments/envname/cancel_promotion?model_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/management-api/deployments/promote/cancel-promotion](https://docs.baseten.co/reference/management-api/deployments/promote/cancel-promotion)

---

#### Promote development deployment

**Method**: `POST` | **LowCodeAPI Path**: `/v1/models/modelid/deployments/development/promote`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/models/modelid/deployments/development/promote?model_id={model_id}&api_token={api_token}
```


**Path Parameters**:

| `model_id` | string | The model's alphanumeric ID |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Example Request**:
```bash
curl -X POST "https://api.lowcodeapi.com/baseten/v1/models/modelid/deployments/development/promote?model_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/management-api/deployments/promote/promotes-a-development-deployment-to-production](https://docs.baseten.co/reference/management-api/deployments/promote/promotes-a-development-deployment-to-production)

---

#### Promote deployment

**Method**: `POST` | **LowCodeAPI Path**: `/v1/models/modelid/deployments/deploymentid/promote`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/models/modelid/deployments/deploymentid/promote?model_id={model_id}&deployment_id={deployment_id}&api_token={api_token}
```


**Path Parameters**:

| `model_id` | string | The model's alphanumeric ID |
| `deployment_id` | string | The deployment's alphanumeric ID |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Example Request**:
```bash
curl -X POST "https://api.lowcodeapi.com/baseten/v1/models/modelid/deployments/deploymentid/promote?model_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/management-api/deployments/promote/promotes-a-deployment-to-production](https://docs.baseten.co/reference/management-api/deployments/promote/promotes-a-deployment-to-production)

---

#### Update development autoscaling settings

**Method**: `PATCH` | **LowCodeAPI Path**: `/v1/models/modelid/deployments/development/autoscaling_settings`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/models/modelid/deployments/development/autoscaling_settings?model_id={model_id}&api_token={api_token}
```


**Path Parameters**:

| `model_id` | string | The model's alphanumeric ID |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Body Parameters**:

| `autoscaling_settings` | object | No | Autoscaling settings configuration |


**Example Request**:
```bash
curl -X PATCH "https://api.lowcodeapi.com/baseten/v1/models/modelid/deployments/development/autoscaling_settings?model_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"autoscaling_settings":"value"}'
```

**Official Documentation**: [https://docs.baseten.co/reference/management-api/deployments/autoscaling/updates-a-development-deployments-autoscaling-settings](https://docs.baseten.co/reference/management-api/deployments/autoscaling/updates-a-development-deployments-autoscaling-settings)

---

#### Update deployment autoscaling settings

**Method**: `PATCH` | **LowCodeAPI Path**: `/v1/models/modelid/deployments/deploymentid/autoscaling_settings`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/models/modelid/deployments/deploymentid/autoscaling_settings?model_id={model_id}&deployment_id={deployment_id}&api_token={api_token}
```


**Path Parameters**:

| `model_id` | string | The model's alphanumeric ID |
| `deployment_id` | string | The deployment's alphanumeric ID |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Body Parameters**:

| `autoscaling_settings` | object | No | Autoscaling settings configuration |


**Example Request**:
```bash
curl -X PATCH "https://api.lowcodeapi.com/baseten/v1/models/modelid/deployments/deploymentid/autoscaling_settings?model_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"autoscaling_settings":"value"}'
```

**Official Documentation**: [https://docs.baseten.co/reference/management-api/deployments/autoscaling/updates-a-deployments-autoscaling-settings](https://docs.baseten.co/reference/management-api/deployments/autoscaling/updates-a-deployments-autoscaling-settings)

---

#### Get all model deployments

**Method**: `GET` | **LowCodeAPI Path**: `/v1/models/modelid/deployments`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/models/modelid/deployments?model_id={model_id}&api_token={api_token}
```


**Path Parameters**:

| `model_id` | string | The model's alphanumeric ID |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Example Request**:
```bash
curl -X GET "https://api.lowcodeapi.com/baseten/v1/models/modelid/deployments?model_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/management-api/deployments/gets-all-deployments-of-a-model](https://docs.baseten.co/reference/management-api/deployments/gets-all-deployments-of-a-model)

---

#### Get production model deployment

**Method**: `GET` | **LowCodeAPI Path**: `/v1/models/modelid/deployments/production`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/models/modelid/deployments/production?model_id={model_id}&api_token={api_token}
```


**Path Parameters**:

| `model_id` | string | The model's alphanumeric ID |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Example Request**:
```bash
curl -X GET "https://api.lowcodeapi.com/baseten/v1/models/modelid/deployments/production?model_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/management-api/deployments/gets-a-models-production-deployment](https://docs.baseten.co/reference/management-api/deployments/gets-a-models-production-deployment)

---

#### Get development model deployment

**Method**: `GET` | **LowCodeAPI Path**: `/v1/models/modelid/deployments/development`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/models/modelid/deployments/development?model_id={model_id}&api_token={api_token}
```


**Path Parameters**:

| `model_id` | string | The model's alphanumeric ID |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Example Request**:
```bash
curl -X GET "https://api.lowcodeapi.com/baseten/v1/models/modelid/deployments/development?model_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/management-api/deployments/gets-a-models-development-deployment](https://docs.baseten.co/reference/management-api/deployments/gets-a-models-development-deployment)

---

### Category: Environments

#### Create environment

**Method**: `POST` | **LowCodeAPI Path**: `/v1/models/modelid/environments`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/models/modelid/environments?model_id={model_id}&api_token={api_token}
```


**Path Parameters**:

| `model_id` | string | The model's alphanumeric ID |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Body Parameters**:

| `name` | string | Yes | The name of the environment |
| `settings` | object | No | Environment settings |


**Example Request**:
```bash
curl -X POST "https://api.lowcodeapi.com/baseten/v1/models/modelid/environments?model_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"value","settings":"value"}'
```

**Official Documentation**: [https://docs.baseten.co/reference/management-api/environments/create-an-environment](https://docs.baseten.co/reference/management-api/environments/create-an-environment)

---

#### Get all environments

**Method**: `GET` | **LowCodeAPI Path**: `/v1/models/modelid/environments`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/models/modelid/environments?model_id={model_id}&api_token={api_token}
```


**Path Parameters**:

| `model_id` | string | The model's alphanumeric ID |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Example Request**:
```bash
curl -X GET "https://api.lowcodeapi.com/baseten/v1/models/modelid/environments?model_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/management-api/environments/get-all-environments](https://docs.baseten.co/reference/management-api/environments/get-all-environments)

---

#### Get environment details

**Method**: `GET` | **LowCodeAPI Path**: `/v1/models/modelid/environments/envname`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/models/modelid/environments/envname?model_id={model_id}&env_name={env_name}&api_token={api_token}
```


**Path Parameters**:

| `model_id` | string | The model's alphanumeric ID |
| `env_name` | string | The name of the environment |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Example Request**:
```bash
curl -X GET "https://api.lowcodeapi.com/baseten/v1/models/modelid/environments/envname?model_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/management-api/environments/get-an-environments-details](https://docs.baseten.co/reference/management-api/environments/get-an-environments-details)

---

#### Update model environment

**Method**: `PATCH` | **LowCodeAPI Path**: `/v1/models/modelid/environments/envname`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/models/modelid/environments/envname?model_id={model_id}&env_name={env_name}&api_token={api_token}
```


**Path Parameters**:

| `model_id` | string | The model's alphanumeric ID |
| `env_name` | string | The name of the environment |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Body Parameters**:

| `settings` | object | No | Environment settings to update |


**Example Request**:
```bash
curl -X PATCH "https://api.lowcodeapi.com/baseten/v1/models/modelid/environments/envname?model_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"settings":"value"}'
```

**Official Documentation**: [https://docs.baseten.co/reference/management-api/environments/update-an-environments-settings](https://docs.baseten.co/reference/management-api/environments/update-an-environments-settings)

---

### Category: Secrets

#### Get all secrets

**Method**: `GET` | **LowCodeAPI Path**: `/v1/secrets`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/secrets&api_token={api_token}
```


**Example Request**:
```bash
curl -X GET "https://api.lowcodeapi.com/baseten/v1/secrets&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/management-api/secrets/gets-all-secrets](https://docs.baseten.co/reference/management-api/secrets/gets-all-secrets)

---

#### Upsert secret

**Method**: `POST` | **LowCodeAPI Path**: `/v1/secrets`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/secrets&api_token={api_token}
```


**Body Parameters**:

| `name` | string | Yes | The name of the secret |
| `value` | string | Yes | The value of the secret |


**Example Request**:
```bash
curl -X POST "https://api.lowcodeapi.com/baseten/v1/secrets?&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"value","value":"value"}'
```

**Official Documentation**: [https://docs.baseten.co/reference/management-api/secrets/upserts-a-secret](https://docs.baseten.co/reference/management-api/secrets/upserts-a-secret)

---

### Category: API Keys

#### Get all API keys

**Method**: `GET` | **LowCodeAPI Path**: `/v1/api_keys`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/api_keys&api_token={api_token}
```


**Example Request**:
```bash
curl -X GET "https://api.lowcodeapi.com/baseten/v1/api_keys&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/management-api/api-keys/lists-the-users-api-keys](https://docs.baseten.co/reference/management-api/api-keys/lists-the-users-api-keys)

---

#### Create API key

**Method**: `POST` | **LowCodeAPI Path**: `/v1/api_keys`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/api_keys&api_token={api_token}
```


**Body Parameters**:

| `name` | string | No | The name of the API key |


**Example Request**:
```bash
curl -X POST "https://api.lowcodeapi.com/baseten/v1/api_keys?&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"value"}'
```

**Official Documentation**: [https://docs.baseten.co/reference/management-api/api-keys/creates-an-api-key](https://docs.baseten.co/reference/management-api/api-keys/creates-an-api-key)

---

#### Delete API key

**Method**: `DELETE` | **LowCodeAPI Path**: `/v1/api_keys`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/api_keys?...&api_token={api_token}
```


**Query Parameters**:

| `prefix` | string | Yes | The prefix of the API key to delete |


**Example Request**:
```bash
curl -X DELETE "https://api.lowcodeapi.com/baseten/v1/api_keys?...&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/management-api/api-keys/delete-an-api-key](https://docs.baseten.co/reference/management-api/api-keys/delete-an-api-key)

---

### Category: Training

#### Get all training jobs

**Method**: `GET` | **LowCodeAPI Path**: `/v1/training_projects/trainingprojectid/jobs`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/training_projects/trainingprojectid/jobs?training_project_id={training_project_id}&api_token={api_token}
```


**Path Parameters**:

| `training_project_id` | string | The training project's alphanumeric ID |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Example Request**:
```bash
curl -X GET "https://api.lowcodeapi.com/baseten/v1/training_projects/trainingprojectid/jobs?training_project_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/training-api/list-training-jobs](https://docs.baseten.co/reference/training-api/list-training-jobs)

---

#### Get training job by ID

**Method**: `GET` | **LowCodeAPI Path**: `/v1/training_projects/trainingprojectid/jobs/trainingjobid`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/training_projects/trainingprojectid/jobs/trainingjobid?training_project_id={training_project_id}&training_job_id={training_job_id}&api_token={api_token}
```


**Path Parameters**:

| `training_project_id` | string | The training project's alphanumeric ID |
| `training_job_id` | string | The training job's alphanumeric ID |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Example Request**:
```bash
curl -X GET "https://api.lowcodeapi.com/baseten/v1/training_projects/trainingprojectid/jobs/trainingjobid?training_project_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/training-api/get-training-job](https://docs.baseten.co/reference/training-api/get-training-job)

---

#### Search training jobs

**Method**: `POST` | **LowCodeAPI Path**: `/v1/training_jobs/search`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/training_jobs/search&api_token={api_token}
```


**Body Parameters**:

| `query` | object | No | Search query parameters |


**Example Request**:
```bash
curl -X POST "https://api.lowcodeapi.com/baseten/v1/training_jobs/search?&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"query":"value"}'
```

**Official Documentation**: [https://docs.baseten.co/reference/training-api/search-training-jobs](https://docs.baseten.co/reference/training-api/search-training-jobs)

---

#### Stop training job

**Method**: `POST` | **LowCodeAPI Path**: `/v1/training_projects/trainingprojectid/jobs/trainingjobid/stop`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/training_projects/trainingprojectid/jobs/trainingjobid/stop?training_project_id={training_project_id}&training_job_id={training_job_id}&api_token={api_token}
```


**Path Parameters**:

| `training_project_id` | string | The training project's alphanumeric ID |
| `training_job_id` | string | The training job's alphanumeric ID |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Example Request**:
```bash
curl -X POST "https://api.lowcodeapi.com/baseten/v1/training_projects/trainingprojectid/jobs/trainingjobid/stop?training_project_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/training-api/stop-training-job](https://docs.baseten.co/reference/training-api/stop-training-job)

---

#### Recreate training job

**Method**: `POST` | **LowCodeAPI Path**: `/v1/training_projects/trainingprojectid/jobs/trainingjobid/recreate`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/training_projects/trainingprojectid/jobs/trainingjobid/recreate?training_project_id={training_project_id}&training_job_id={training_job_id}&api_token={api_token}
```


**Path Parameters**:

| `training_project_id` | string | The training project's alphanumeric ID |
| `training_job_id` | string | The training job's alphanumeric ID |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Example Request**:
```bash
curl -X POST "https://api.lowcodeapi.com/baseten/v1/training_projects/trainingprojectid/jobs/trainingjobid/recreate?training_project_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/training-api/recreate-training-job](https://docs.baseten.co/reference/training-api/recreate-training-job)

---

#### Get training job checkpoints

**Method**: `GET` | **LowCodeAPI Path**: `/v1/training_projects/trainingprojectid/jobs/trainingjobid/checkpoints`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/training_projects/trainingprojectid/jobs/trainingjobid/checkpoints?training_project_id={training_project_id}&training_job_id={training_job_id}&api_token={api_token}
```


**Path Parameters**:

| `training_project_id` | string | The training project's alphanumeric ID |
| `training_job_id` | string | The training job's alphanumeric ID |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Example Request**:
```bash
curl -X GET "https://api.lowcodeapi.com/baseten/v1/training_projects/trainingprojectid/jobs/trainingjobid/checkpoints?training_project_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/training-api/get-training-job-checkpoints](https://docs.baseten.co/reference/training-api/get-training-job-checkpoints)

---

#### Get training job checkpoint files

**Method**: `GET` | **LowCodeAPI Path**: `/v1/training_projects/trainingprojectid/jobs/trainingjobid/checkpoint_files`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/training_projects/trainingprojectid/jobs/trainingjobid/checkpoint_files?training_project_id={training_project_id}&training_job_id={training_job_id}&api_token={api_token}
```


**Path Parameters**:

| `training_project_id` | string | The training project's alphanumeric ID |
| `training_job_id` | string | The training job's alphanumeric ID |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Example Request**:
```bash
curl -X GET "https://api.lowcodeapi.com/baseten/v1/training_projects/trainingprojectid/jobs/trainingjobid/checkpoint_files?training_project_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/training-api/get-training-job-checkpoint-files](https://docs.baseten.co/reference/training-api/get-training-job-checkpoint-files)

---

#### Get training job logs

**Method**: `GET` | **LowCodeAPI Path**: `/v1/training_projects/trainingprojectid/jobs/trainingjobid/logs`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/training_projects/trainingprojectid/jobs/trainingjobid/logs?training_project_id={training_project_id}&training_job_id={training_job_id}&api_token={api_token}
```


**Path Parameters**:

| `training_project_id` | string | The training project's alphanumeric ID |
| `training_job_id` | string | The training job's alphanumeric ID |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Example Request**:
```bash
curl -X GET "https://api.lowcodeapi.com/baseten/v1/training_projects/trainingprojectid/jobs/trainingjobid/logs?training_project_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/training-api/get-training-job-logs](https://docs.baseten.co/reference/training-api/get-training-job-logs)

---

#### Get training job metrics

**Method**: `GET` | **LowCodeAPI Path**: `/v1/training_projects/trainingprojectid/jobs/trainingjobid/metrics`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/training_projects/trainingprojectid/jobs/trainingjobid/metrics?training_project_id={training_project_id}&training_job_id={training_job_id}&api_token={api_token}
```


**Path Parameters**:

| `training_project_id` | string | The training project's alphanumeric ID |
| `training_job_id` | string | The training job's alphanumeric ID |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Example Request**:
```bash
curl -X GET "https://api.lowcodeapi.com/baseten/v1/training_projects/trainingprojectid/jobs/trainingjobid/metrics?training_project_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/training-api/get-training-job-metrics](https://docs.baseten.co/reference/training-api/get-training-job-metrics)

---

#### Download training job artifacts

**Method**: `GET` | **LowCodeAPI Path**: `/v1/training_projects/trainingprojectid/jobs/trainingjobid/download`

**Full URL**:
```
https://api.lowcodeapi.com/baseten/v1/training_projects/trainingprojectid/jobs/trainingjobid/download?training_project_id={training_project_id}&training_job_id={training_job_id}&api_token={api_token}
```


**Path Parameters**:

| `training_project_id` | string | The training project's alphanumeric ID |
| `training_job_id` | string | The training job's alphanumeric ID |

**Note**: Path parameters are passed in the URL path. The LowCodeAPI path uses static parameter names, and the actual values are passed as query parameters with the same names.


**Example Request**:
```bash
curl -X GET "https://api.lowcodeapi.com/baseten/v1/training_projects/trainingprojectid/jobs/trainingjobid/download?training_project_id=VALUE&&api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
```

**Official Documentation**: [https://docs.baseten.co/reference/training-api/download-training-job](https://docs.baseten.co/reference/training-api/download-training-job)

---

## Usage Examples

### Example 1: Basic Usage

Get started with Baseten API by making your first request.

```bash
# Your example code here
# This demonstrates basic usage
curl -X GET "https://api.lowcodeapi.com/baseten/?api_token=YOUR_API_TOKEN"
```

### Example 2: Advanced Usage

Explore more advanced features and parameters.

```bash
# Your example code here
# This demonstrates advanced usage
curl -X GET "https://api.lowcodeapi.com/baseten/?api_token=YOUR_API_TOKEN"
```

## Complete Endpoint Reference

For a complete list of all endpoints and their parameters, refer to:
- **OpenAPI Definition**: `https://backend.lowcodeapi.com/baseten/definition`
- **Official Provider Documentation**: [https://docs.baseten.co/reference](https://docs.baseten.co/reference)

## Rate Limits & Best Practices

- Check your Baseten account for specific rate limits
- Use appropriate error handling and retry logic
- Cache responses when appropriate to reduce API calls

## Error Handling

Standard HTTP status codes apply:
- `400` - Invalid request parameters
- `401` - Unauthorized (check your API key)
- `429` - Rate limit exceeded
- `500` - Internal server error