---
title: "Onboard User"
method: POST
path: "/v1/auth/onboard"
tags: ["auth"]
---

# Onboard User

`POST /v1/auth/onboard`

## Request

- Base URL: `https://api.theagentc.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.theagentc.io/v1/auth/onboard`
- Auth: HTTP bearer

Called once after Firebase signup to create the user + workspace in Postgres.
Requires a valid Firebase token in the Authorization header.

## Request body

- UserCreate: Used during onboarding — creates user + workspace.
  - `email` string, required
  - `display_name` string, nullable
  - `workspace_name` string, required

## Response `201`

Successful Response

- UserRead
  - `id` string, uuid, required
  - `uid` string, required
  - `email` string, required
  - `display_name` string, nullable, required
  - `avatar_url` string, nullable, required
  - `workspace_id` string, uuid, required
  - `role` string, required
  - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/theagentc/apis/the-agent-c-api.md) · [All operations](https://skmtc.dev/theagentc/apis/the-agent-c-api/llms.txt) · [OpenAPI document](https://skmtc.dev/theagentc/apis/the-agent-c-api/revisions/1c9868b44584?raw)
