| Name | Description |
|---|---|
| List deployments | List deployments that experiments or flags can be assigned to. |
| Create deployment | Create a deployment. |
| Edit deployment | Edit a deployment. |
GET https://experiment.amplitude.com/api/1/deployments
Fetch a list of deployments that experiments or flags can be assigned to.
| Name | Description |
|---|---|
limit |
Optional. Type: number. The max number of deployments to be returned. Capped at 1000. |
cursor |
Optional. Type: number. The offset to start the "page" of results from. |
A successful request returns a 200 OK response and a list of deployments encoded as JSON in the response body.
curl --request GET \
--url 'https://experiment.amplitude.com/api/1/deployments?limit=1000' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <management-api-key>'
{
"deployments": [
{
"id": <id>,
"projectId": <projectId>,
"label": "deployment-1",
"key": <key>,
"deleted": true
},
{
"id": <id>,
"projectId": <projectId>,
"label": "deployment-2",
"key": <key>,
"deleted": false
}
]
}
POST https://experiment.amplitude.com/api/1/deployments
Create a deployment that experiments or flags can be assigned to.
| Name | Description |
|---|---|
projectId |
Required. Type: string. The project's ID. |
label |
Required. Type: string. Deployment's label. Must contain alphanumeric and/or _, - characters. |
type |
Required. Type: string. Deployment's type. Must be either client or server. |
{
"projectId":"<projectId>",
"label": "hello-world",
"type": "client"
}
A successful request returns a 200 OK response and a deployment's id.
curl --request POST \
--url 'https://experiment.amplitude.com/api/1/deployments' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <management-api-key>'
{
"id": <id>
}
PATCH https://experiment.amplitude.com/api/1/deployments/<id>
Edit a deployment that experiments or flags can be assigned to.
| Name | Description |
|---|---|
label |
Optional. Type: string. Deployment's label. Must contain alphanumeric and/or _, - characters. |
archive |
Optional. Type: boolean. Soft delete or restore deployment. |
{
"label": "updated-label"
}
A successful request returns a 200 OK response and OK text.
curl --request PATCH \
--url 'https://experiment.amplitude.com/api/1/deployments/<id>' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <management-api-key>'
June 4th, 2024
Need help? Contact Support
Visit Amplitude.com
Have a look at the Amplitude Blog
Learn more at Amplitude Academy
© 2026 Amplitude, Inc. All rights reserved. Amplitude is a registered trademark of Amplitude, Inc.