API / Deployments / Retrieve a deployment
GET
/v1/deployments/{deployment_id}
Retrieves a single deployment by its ID, including current status, replica count, region, and traffic split.
Path parameters
deployment_idstringrequiredThe unique identifier for the deployment. Prefixed with
dp_.Query parameters
expandarray of stringsInclude related resources in the response. Accepts
traces, metrics, and history.Returns
A Deployment object. Returns 404 if the deployment is not found.
Request
curlnodepythongo
curl https://api.moon.dev/v1/deployments/dp_a4e2d8 \ -H "Authorization: Bearer $MOON_KEY"
Response
200 OK404
{
"id": "dp_a4e2d8",
"object": "deployment",
"name": "support-triage",
"status": "live",
"target": {
"provider": "anthropic",
"model": "claude-sonnet-5"
},
"route": {
"region": "iad",
"min": 1,
"max": 4,
"current": 2
},
"created": 1755712842,
"metadata": {}
}