---
title: "Create a user"
method: POST
path: "/accounts/{account_id}/users"
tags: ["Users"]
---

# Create a user

`POST /accounts/{account_id}/users`

Creates a new User object.

## Path parameters

- `account_id` string, required — The account for which the user should be created.

## Request body

- UserParams — POST body for creating a user
  - `first_name` string, required — The user's first name.
  - `last_name` string — The user's last name.
  - `metadata` Metadata — Set of key-value pairs that will be stored with the object.
  - `photo_url` string, uri — URL of a photo to be used as the user's avatar.

## Response `201`

Created user

- User — A user of the app
  - `first_name` string, required — The user's first name.
  - `id` string — Unique identifier for the object.
  - `last_name` string — The user's last name.
  - `metadata` Metadata — Set of key-value pairs that will be stored with the object.
  - `photo_url` string, uri — URL of a photo to be used as the user's avatar.

## Other responses

- `default` — Error

---

[API](https://skmtc.net/surgeapi/apis/surge.md) · [All operations](https://skmtc.net/surgeapi/apis/surge/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/surgeapi/surge/revisions/33842756c9f9/schema)
