---
title: "Create a user, returning their session token."
method: POST
path: "/admin/users/create"
tags: ["admin"]
---

# Create a user, returning their session token.

`POST /admin/users/create`

## Request body

- UserParams
  - `credit_count` integer, nullable
  - `email` string, nullable
  - `feature_flags` FeatureFlag[]
  - `full_name` string, nullable
  - `is_admin` boolean
  - `permissions` Permission[]
  - `test` boolean

## Response `200`

Created

- TokenResponse
  - `permissions` Permission[], required
  - `refresh_token` string, required
  - `session_expires_at` string, required
  - `session_token` string, required

---

[API](https://skmtc.net/structifyai/apis/structify.md) · [All operations](https://skmtc.net/structifyai/apis/structify/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/structifyai/structify/versions/1364930b6980/schema)
