---
title: "Get custom provider environment"
method: GET
path: "/custom-providers/{custom_provider_id}/env"
tags: ["Custom Providers"]
---

# Get custom provider environment

`GET /custom-providers/{custom_provider_id}/env`

## Request

- Base URL: `https://api.metorial.com`
- URL: `https://api.metorial.com/custom-providers/{custom_provider_id}/env`
- Auth: HTTP bearer

Retrieves the environment variables for a specific custom provider by ID.

## Path parameters

- `custom_provider_id` string, required

## Headers

- `Metorial-Version` string

## Response `200`

Successful response

- CustomProviderEnv
  - `object` 'custom_provider.env', required: String representing the object's type
  - `env` object, nullable, required: Key-value pairs representing the custom provider environment variables

## Other responses

- `400`: Invalid parameters or action
- `401`: Missing or invalid API key
- `403`: The key lacks permission for this resource
- `404`: No such resource
- `422`: Validation failed
- `429`: Rate limit exceeded
- `500`: Unexpected server error

---

[API](https://skmtc.dev/metorial/apis/metorial-api.md) - [All operations](https://skmtc.dev/metorial/apis/metorial-api/llms.txt) - [OpenAPI document](https://skmtc.dev/metorial/apis/metorial-api/revisions/10ccc89f3eac?raw)
