---
title: "Get enterprise trials"
method: GET
path: "/api/users/{userId}/trials"
tags: ["User"]
---

# Get enterprise trials

`GET /api/users/{userId}/trials`

## Request

- Base URL: `https://studio.edgeimpulse.com/v1`
- URL: `https://studio.edgeimpulse.com/v1/api/users/{userId}/trials`
- Auth: one of:
  - API key in header `x-api-key`
  - API key in cookie `jwt`
  - API key in header `x-jwt-token`
  - OAuth 2
    - Authorization code: `/v1/oauth/authorize`
    - Client credentials
    - Implicit: `/v1/oauth/authorize`
    - Password
    - Token URL: `/v1/oauth/token`
- TypeScript: <https://skmtc.dev/edgeimpulse/apis/edge-impulse-api/docs/api/users/:userId/trials/get.ts> (a function with typed inputs; its response is checked against the schema)

Get a list of all enterprise trials for a user. This function is only available through a JWT token.

## Path parameters

- `userId` integer, required

## Response `200`

OK

- ListEnterpriseTrialsResponse
  - `success` boolean, required: Whether the operation succeeded
  - `error` string: Optional error description (set if 'success' was false)
  - `trials` EnterpriseTrial[], required: Current or past enterprise trials.
    - `id` integer, required: Unique identifier of the trial.
    - `userId` integer, required: ID of the user who created the trial.
    - `organizationId` integer, required: ID of the organization created for the trial.
    - `created` string, date-time, required: Date when the trial was created. Trials start immediately on creation.
    - `expirationDate` string, date-time, required: Expiration date of the trial. The trial will be set as expired after this date. There will be a grace period of 30 days after a trial expires before fully deleting the trial organization. This field is ignored if the trial is requested by a non-admin user, defaulting to 14 days trial.
    - `notes` string: Notes about the trial. Free form text. This field is ignored if the trial is requested by a non-admin user.
    - `expiredDate` string, date-time, nullable, required: Date when the trial actually expired. This is set when the trial is expired by the system.
    - `deletedDate` string, date-time, nullable, required: Date when the trial was deleted. This is set when the trial is fully deleted by the system.
    - `upgradedDate` string, date-time, nullable, required: Date when the trial was upgraded to a full enterprise account.

---

[API](https://skmtc.dev/edgeimpulse/apis/edge-impulse-api.md) - [All operations](https://skmtc.dev/edgeimpulse/apis/edge-impulse-api/llms.txt) - [OpenAPI document](https://skmtc.dev/edgeimpulse/apis/edge-impulse-api/revisions/e2a976d38427?raw)
