---
title: "Create account"
method: POST
path: "/admin/users/{user_id}/accounts"
tags: ["Admin Accounts"]
---

# Create account

`POST /admin/users/{user_id}/accounts`

Creates a new account for a user.

## Path parameters

- `user_id` string, required

## Request body

- CreateAccountRequest
  - `access_token` string, nullable
  - `access_token_expires_at` string, date-time, nullable
  - `account_id` string, required
  - `id_token` string, nullable
  - `password` string, nullable
  - `provider_id` string, required
  - `refresh_token` string, nullable
  - `refresh_token_expires_at` string, date-time, nullable
  - `scope` string, nullable

## Response `201`

Created

- CreateAccountResponse
  - `account` Account, required
    - `access_token` string, nullable
    - `access_token_expires_at` string, date-time, nullable
    - `account_id` string, required
    - `created_at` string, date-time, required
    - `id` string, required
    - `id_token` string, nullable
    - `password` string, nullable
    - `provider_id` string, required
    - `refresh_token` string, nullable
    - `refresh_token_expires_at` string, date-time, nullable
    - `scope` string, nullable
    - `updated_at` string, date-time, required
    - `user_id` string, required

---

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