amplitude.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.
Annotations
create
annotations.create
Create a new chart annotation on a specific date
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
date | string | Yes | — |
label | string | Yes | — |
details | string | No | — |
app_id | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | No | — |
data full type
data full type
list
annotations.list
List all chart annotations for the project
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
app_id | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
data | object[] | No | — |
data full type
data full type
Charts
get
charts.get
Get the data results for a specific chart by ID
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
chart_id | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | No | — |
seriesLabels | string[] | No | — |
title | string | No | — |
data full type
data full type
Cohorts
create
cohorts.create
Create a new static cohort from a list of user or device IDs
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | — |
app_id | number | Yes | — |
id_type | BY_AMP_ID | BY_USER_ID | BY_DEVICE_ID | Yes | — |
ids | string[] | Yes | — |
owners | string[] | No | — |
description | string | No | — |
published | boolean | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
cohort | object | No | — |
cohort full type
cohort full type
get
cohorts.get
Get details for a specific cohort by ID
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
cohort_id | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
cohort | object | No | — |
cohort full type
cohort full type
getMembers
cohorts.getMembers
Retrieve the member download for a cohort export request
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
request_id | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
status | string | No | — |
zip_url | string | No | — |
list
cohorts.list
List all cohorts in the project
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
cohorts | object[] | No | — |
cohorts full type
cohorts full type
Dashboards
get
dashboards.get
Get details and chart list for a specific dashboard
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
dashboard_id | number | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
dashboard | object | No | — |
dashboard full type
dashboard full type
list
dashboards.list
List all dashboards in the project
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
dashboards | object[] | No | — |
dashboards full type
dashboards full type
Events
getList
events.getList
List all event types tracked in the project
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
data | object[] | No | — |
data full type
data full type
identifyUser
events.identifyUser
Set or update user properties via the Identify API
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
api_key | string | Yes | — |
identification | object[] | Yes | — |
identification full type
identification full type
| Name | Type | Required | Description |
|---|---|---|---|
code | number | Yes | — |
error | string | No | — |
upload
events.upload
Upload one or more events to Amplitude via HTTP API v2
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
api_key | string | Yes | — |
events | object[] | Yes | — |
options | object | No | — |
events full type
events full type
options full type
options full type
| Name | Type | Required | Description |
|---|---|---|---|
code | number | Yes | — |
events_ingested | number | No | — |
payload_size_bytes | number | No | — |
server_upload_time | number | No | — |
uploadBatch
events.uploadBatch
Batch upload events to Amplitude
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
api_key | string | Yes | — |
events | object[] | Yes | — |
options | object | No | — |
events full type
events full type
options full type
options full type
| Name | Type | Required | Description |
|---|---|---|---|
code | number | Yes | — |
events_ingested | number | No | — |
payload_size_bytes | number | No | — |
server_upload_time | number | No | — |
Exports
getData
exports.getData
Export raw event data for a given time range as a zip archive
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
start | string | Yes | — |
end | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
status | string | No | — |
url | string | No | — |
Users
getActivity
users.getActivity
Get recent event activity for a specific user
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
user | number | Yes | — |
limit | number | No | — |
offset | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
events | object[] | No | — |
userData | object | No | — |
events full type
events full type
userData full type
userData full type
getProfile
users.getProfile
Get the profile and properties for a specific user
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
user_id | string | No | — |
amplitude_id | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
userData | object | No | — |
userData full type
userData full type
search
users.search
Search for users by user ID or device ID
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
user | string | Yes | — |
limit | number | No | — |
offset | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
matches | object[] | No | — |
next | string | No | — |
matches full type
matches full type