---
title: "Create a new account"
method: POST
path: "/api/v1/accounts"
---

# Create a new account

`POST /api/v1/accounts`

## Request

- Base URL: `https://api.virga.dev`
- URL: `https://api.virga.dev/api/v1/accounts`
- Auth: none required

Creates a new account and returns a stage API key. No authentication required.

## Request body

- object
  - `name` string, required: Account name

## Response `201`

Account created

- object
  - `accountId` string
  - `apiKey` string: Stage API key (sk_virga_stage_...)
  - `environment` 'stage'
  - `message` string

## Other responses

- `400`: Invalid request parameters

---

[API](https://skmtc.dev/virga/apis/virga-api.md) · [All operations](https://skmtc.dev/virga/apis/virga-api/llms.txt) · [OpenAPI document](https://skmtc.dev/virga/apis/virga-api/revisions/5f5b639b1da3?raw)
