Amplitude
Connect
Connect Amplitude from the terminal. Pass --help for the flags Amplitude accepts.
polylane integration connect --type amplitudeThe API key and secret key of the project, from Settings → API Keys in Amplitude. Polylane finds the data region.
Connect an Amplitude project with its API key and secret key. Agents measure how many users an issue hits and when it started, and Polylane checks the event volume of the project once a day.
- In Amplitude, open Settings → API Keys and choose the project in the project menu. Copy the key on the API Keys tab. On the Secret Keys tab, click Show next to the secret key and copy it. If there is no Show, Amplitude does not keep the secret: use the one saved when the key was created, or ask an Amplitude manager or admin to generate a new secret key.
- Paste both keys into Polylane. Polylane checks them and finds the project's data region, US or EU. Each project is its own connection; connect another project with its own keys.
How it works
Daily event-volume check
Polylane checks the event volume of each project once a day for unusual changes. The check takes the five events with the most volume this week. It reads the hourly volume of each event and of their sum. A clear change opens an issue, and Polylane investigates it. On the integration page, you can turn the check off.
Amplitude's API cannot list saved charts or dashboards, so Polylane does not watch them. An agent can request a chart's data by its ID when you share the chart's link.
Time zones
Amplitude reports times in the project's time zone but does not say which zone. Polylane works out the project's current offset from UTC. When a clock change, such as the start or end of daylight saving time, falls inside the period Polylane checks, the hourly results before the change are marked unknown instead of placed an hour off. For a project set to UTC, this can affect up to a week after each clock change in Europe.
During an investigation
Query Amplitude events, segmentation, funnels, retention, and chart annotations through Polylane, and request other Amplitude API calls. Changes, such as new chart annotations, require safety review and your approval.
Polylane also explores the connection when you connect it and every 12 hours after that, and records what it finds as issues. It checks the keys every six hours.
Amplitude APIs
Polylane uses these Amplitude APIs. Amplitude explains its keys in its authentication guide.
| Amplitude API | What it unlocks |
|---|---|
GET /api/2/events/list | Checks the keys, finds the data region, and lists event types with this week's volume. |
GET /api/2/events/segmentation | Reads event volume, unique users, and averages over time, filtered and split by a property. |
GET /api/2/funnels | Computes conversion between ordered events and the median time between steps. |
GET /api/2/retention | Measures how many users come back after a starting event. |
GET /api/2/realtime | Aligns the daily event-volume check with the project's time zone. |
GET /api/3/annotations, POST /api/3/annotations | Lists chart annotations and, with your approval, creates one. |
amplitudeApi | Calls any other Amplitude API path under /api/, such as saved chart results. |
Disconnecting
Disconnecting deletes both keys from Polylane and leaves them in Amplitude. Chart annotations that you approved stay on your charts.
Disconnect
Disconnecting stops every sync and check and deletes the credentials Polylane held. Everything Polylane set up in Amplitude is removed as well; nothing is left behind.
polylane integration disconnect <id>Tools
6Operations agents can perform in threads.