Custom Provider Deployments

Deployments track the build and deployment process of custom provider versions. View deployment status and logs.

Custom Provider Deployments object

Attributes

object

String

String representing the object's type

id

String

Unique custom provider deployment identifier

status

StringNullable

Current deployment status

trigger

StringNullable

What triggered this deployment

custom_provider_id

String

ID of the parent custom provider

provider_id

StringNullable

ID of the associated provider

custom_provider_version_id

StringNullable

ID of the custom provider version being deployed

commit

ObjectNullable

actor

ObjectNullable

created_at

Date

Timestamp when created

updated_at

Date

Timestamp when last updated

{
"object": "custom_provider.deployment",
"id": "cpd_1aBcDeFgHjKlMnPq",
"status": "queued",
"trigger": "manual",
"custom_provider_id": "cpr_1aBcDeFgHjKlMnPq",
"provider_id": "pro_5gHjKlMnPqRsTuVw",
"custom_provider_version_id": "cpv_1aBcDeFgHjKlMnPq",
"commit": {
"id": "cpcm_1aBcDeFgHjKlMnPq",
"type": "merge",
"message": "Deploy new version",
"created_at": "2025-09-15T10:30:00.000Z"
},
"actor": {
"id": "act_1aBcDeFgHjKlMnPq",
"name": "John Doe",
"type": "external",
"organization_actor_id": "orgact_1aBcDeFgHjKlMnPq"
},
"created_at": "2025-09-15T10:30:00.000Z",
"updated_at": "2026-01-10T14:45:00.000Z"
}

List custom provider deployments

Returns a paginated list of deployments for a custom provider.

URL Parameters

custom_provider_id

String

The unique identifier for the custom_provider

Query Parameters

limit

NumberOptional

Maximum number of items to return (1-100)

after

StringOptional

Return items after this ID

before

StringOptional

Return items before this ID

cursor

StringOptional

Pagination cursor from a previous response

order

EnumOptional

Sort order for results

status

UnionOptional

Filter by status (queued, deploying, succeeded, failed)

ids

UnionOptional

Filter by deployment IDs

custom_provider_version_ids

UnionOptional

Filter by version IDs

GEThttp://api.metorial.com/custom-providers/:custom_provider_id/deployments
curl -X GET "https://api.metorial.com/custom-providers/cus_Rm4Mnheq2bfEPhBhP7SY/deployments" \
-H "Authorization: Bearer metorial_sk_..."

Get custom provider deployment

Retrieves a specific deployment.

URL Parameters

custom_provider_id

String

The unique identifier for the custom_provider

custom_provider_deployment_id

String

The unique identifier for the custom_provider_deployment

GEThttp://api.metorial.com/custom-providers/:custom_provider_id/deployments/:custom_provider_deployment_id
curl -X GET "https://api.metorial.com/custom-providers/cus_Rm4Mnheq2bfEPhBhP7SY/deployments/cus_Rm4Mnheq2bfEPhBhP7SY" \
-H "Authorization: Bearer metorial_sk_..."

Get deployment logs

Retrieves the build and deployment logs for a deployment.

URL Parameters

custom_provider_id

String

The unique identifier for the custom_provider

custom_provider_deployment_id

String

The unique identifier for the custom_provider_deployment

GEThttp://api.metorial.com/custom-providers/:custom_provider_id/deployments/:custom_provider_deployment_id/logs
curl -X GET "https://api.metorial.com/custom-providers/cus_Rm4Mnheq2bfEPhBhP7SY/deployments/cus_Rm4Mnheq2bfEPhBhP7SY/logs" \
-H "Authorization: Bearer metorial_sk_..."