---
title: "Who is assigned, or excluded, newest first"
method: GET
path: "/api/analytics/experiments/{key}/assignments"
tags: ["experiments"]
---

# Who is assigned, or excluded, newest first

`GET /api/analytics/experiments/{key}/assignments`

## Request

- Base URL: `https://api.corabea.it` (the document declares no server; this is the origin it was published from)
- URL: `https://api.corabea.it/api/analytics/experiments/{key}/assignments`
- Auth: HTTP bearer

The people counted in the results (`excluded=false`) or left out (`excluded=true`), optionally of one variant, with what they did since the assignment. An install that never signed up has no name. An onboarding assignment claimed by an account that was not new is in neither list: that person is counted in the experiment for existing accounts.

## Path parameters

- `key` string, required

## Query parameters

- `variant` string, nullable
- `excluded` boolean
- `page` integer
- `per_page` integer

## Response `200`

Successful Response

- ExperimentAssignmentsResponse
  - `items` ExperimentAssignmentPerson[], required
    - `assignment_id` string, required
    - `variant` string, required
    - `assigned_at` string, date-time, required
    - `excluded_reason` string, nullable
    - `user_id` string, nullable: None for an install that never signed up
    - `patient_id` string, nullable
    - `name` string, nullable
    - `email` string, nullable
    - `registered_at` string, date-time, nullable
    - `questionnaire_key` string, nullable
    - `category` string, nullable
    - `platform` string, nullable
    - `call_gratuita_booked_at` string, date-time, nullable
    - `call_gratuita_done_at` string, date-time, nullable
    - `call_conoscitiva_booked_at` string, date-time, nullable
    - `free_path_days_done` integer
  - `total` integer, required
  - `page` integer, required
  - `per_page` integer, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-14** `20ab9e4e7f8a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/corabea/apis/corabea-api/changes/api/analytics/experiments/:key/assignments/get.md)

---

[API](https://skmtc.dev/corabea/apis/corabea-api.md) · [All operations](https://skmtc.dev/corabea/apis/corabea-api/llms.txt) · [OpenAPI document](https://skmtc.dev/corabea/apis/corabea-api/revisions/d8cdee1d5474?raw)
