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
StringString representing the object's type
id
StringUnique custom provider deployment identifier
status
EnumCurrent deployment status
trigger
EnumWhat triggered this deployment
custom_provider_id
StringID of the parent custom provider
provider_id
StringNullableID of the associated provider
custom_provider_version_id
StringNullableID of the custom provider version being deployed
commit
ObjectNullableimmutable_bucket
ObjectNullableactor
Objectscm_push
ObjectNullablecreated_at
DateTimestamp when created
updated_at
DateTimestamp when last updated
{"object": "custom_provider.deployment","id": "cpd_1aBcDeFgHjKlMnPq","status": "failed","trigger": "manual","custom_provider_id": "cpr_1aBcDeFgHjKlMnPq","provider_id": "pro_5gHjKlMnPqRsTuVw","custom_provider_version_id": "cpv_1aBcDeFgHjKlMnPq","commit": {"object": "custom_provider.deployment.commit","type": "create_version"},"immutable_bucket": {"object": "bucket","scm_repo_link": {"object": "bucket.scm_repo","is_linked": true,"repository": {"object": "scm.repository","provider": {"object": "scm.provider","type": "github"}}}},"actor": {"object": "custom_provider.actor#preview","id": "act_1aBcDeFgHjKlMnPq","type": "external","identifier": "mtea-orgact_1aBcDeFgHjKlMnPq","name": "John Doe","organization_actor_id": "ora_1aBcDeFgHjKlMnPq","created_at": "2025-09-15T10:30:00.000Z"},"scm_push": {"object": "scm.push","actor": {"object": "scm.actor"},"commit": {"object": "scm.commit"},"repository": {"object": "scm.repository","provider": {"object": "scm.provider","type": "github"}}},"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.
Query Parameters
limit
NumberOptionalafter
StringOptionalbefore
StringOptionalcursor
StringOptionalorder
EnumOptionalstatus
UnionOptionalFilter by status (queued, deploying, succeeded, failed)
id
UnionOptionalFilter by deployment IDs
custom_provider_version_id
UnionOptionalFilter by version IDs
custom_provider_id
UnionOptionalFilter by custom provider IDs
created_at
ObjectOptionalFilter custom provider deployment creation time by date range
updated_at
ObjectOptionalFilter custom provider deployment last update time by date range
curl -X GET "https://api.metorial.com/custom-provider-deployments" \-H "Authorization: Bearer metorial_sk_..."
Get custom provider deployment
Retrieves a specific deployment.
URL Parameters
custom_provider_deployment_id
StringThe unique identifier for the custom_provider_deployment
curl -X GET "https://api.metorial.com/custom-provider-deployments/cus_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."
Get deployment logs
Retrieves the build and deployment logs for a deployment.
URL Parameters
custom_provider_deployment_id
StringThe unique identifier for the custom_provider_deployment
curl -X GET "https://api.metorial.com/custom-provider-deployments/cus_Rm4Mnheq2bfEPhBhP7SY/logs" \-H "Authorization: Bearer metorial_sk_..."