---
title: "Get experiment assignment"
method: GET
path: "/api/experiments/assignments/{experiment}"
tags: ["experiments"]
---

# Get experiment assignment

`GET /api/experiments/assignments/{experiment}`

## Request

- The document declares no server URL.
- Auth: HTTP bearer

The user's arm, bucketed on first read and fixed from then on; None if not enrolled.

## Path parameters

- `experiment` 'subscription-pricing-page-initial-state' | 'trial-checkout-no-charge-copy', required: Experiments, each a multivariate PostHog flag read by the frontend or backend.

## Response `200`

Successful Response

- ExperimentAssignment
  - `experiment_key` string, required
  - `variant` string, required
  - `source` string, required
  - `assigned_at` string, date-time, required

## Other responses

- `401`: Authentication required
- `422`: Validation Error

## Changes

- **2026-10-24** `17d1bde447a4`: 1 info
  - added the new enum value `trial-checkout-no-charge-copy` to the `path` request parameter `experiment`
- **2026-10-24** `c23f2df8fe96`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server/changes/api/experiments/assignments/:experiment/get.md)

---

[API](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server.md) - [All operations](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server/llms.txt) - [OpenAPI document](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server/revisions/c508818c16ad?raw)
