Custom Provider Environments

Environments represent deployment targets for custom provider versions (e.g., staging, production).

Custom Provider Environments object

Attributes

object

String

String representing the object's type

id

String

Unique custom provider environment identifier

custom_provider_id

String

ID of the parent custom provider

provider_id

StringNullable

ID of the associated provider

current_provider_version_id

StringNullable

ID of the current provider version in this environment

instance_id

String

ID of the instance this environment is associated with

created_at

Date

Timestamp when created

updated_at

Date

Timestamp when last updated

{
"object": "custom_provider.environment",
"id": "cpenv_1aBcDeFgHjKlMnPq",
"custom_provider_id": "cpr_1aBcDeFgHjKlMnPq",
"provider_id": "pro_5gHjKlMnPqRsTuVw",
"current_provider_version_id": "prv_4dEfGhJkLmNpQrSt",
"instance_id": "ins_2cDeFgHjKlMnPqRs",
"created_at": "2025-09-15T10:30:00.000Z",
"updated_at": "2026-01-10T14:45:00.000Z"
}

List custom provider environments

Returns a paginated list of environments for a custom provider.

Query Parameters

limit

NumberOptional

after

StringOptional

before

StringOptional

cursor

StringOptional

order

EnumOptional

id

UnionOptional

Filter by environment IDs

custom_provider_version_id

UnionOptional

Filter by version IDs

custom_provider_id

UnionOptional

Filter by custom provider IDs

created_at

ObjectOptional

Filter custom provider environment creation time by date range

updated_at

ObjectOptional

Filter custom provider environment last update time by date range

GEThttp://api.metorial.com/custom-provider-environments
curl -X GET "https://api.metorial.com/custom-provider-environments" \
-H "Authorization: Bearer metorial_sk_..."

Get custom provider environment

Retrieves a specific environment.

URL Parameters

custom_provider_environment_id

String

The unique identifier for the custom_provider_environment

GEThttp://api.metorial.com/custom-provider-environments/:custom_provider_environment_id
curl -X GET "https://api.metorial.com/custom-provider-environments/cus_Rm4Mnheq2bfEPhBhP7SY" \
-H "Authorization: Bearer metorial_sk_..."