---
title: "Send Experiment Event"
method: POST
path: "/v1/experiments/{experiment_id_or_slug}/events"
tags: ["Experiment APIs"]
---

# Send Experiment Event

`POST /v1/experiments/{experiment_id_or_slug}/events`

## Request body

- ExperimentRequest
  - `user_id` string — Identifies the signed-in user who performed the interaction.
  - `anonymous_id` string — A pseudo-unique substitute for the User Id
  - `variant_name` string — Set the variant_name if you want to assign a user to a specific variant. Most of the time, you don't need to pass this field. Instead, the system will automatically assign a variant for this user.
  - `timestamp` string, date-time — The time the user is assigned to the variant group. If not set, current time will be used.

## Response `200`

Successful Response

- SendExperimentResponse
  - `took` integer, required — The amount of time (in milliseconds) Miso took to answer this request.
  - `in_experiment` boolean, required — To show whether the experiment is active or not.
  - `variant` VariantObject, required
    - `id` string, required — The UUID of this variant.
    - `name` string, required — The name of this variant.
    - `slug` string, required — The slug name of this variant.
    - `configuration` union — The configuration of this variant.
      - object
      - unknown[]
        - unknown
      - string
    - `status` 'Draft' | 'Scheduled' | 'Active' | 'Completed' | 'Archived', required — The current status for this variant.

## Other responses

- `401` — Unauthorized
- `404` — Not Found
- `422` — Unprocessable Entity

---

[API](https://skmtc.net/askmiso/apis/miso-api.md) · [All operations](https://skmtc.net/askmiso/apis/miso-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/askmiso/miso-api/versions/f2fa5ba6025f/schema)
