---
title: "Create Test Account"
method: POST
path: "/test-accounts"
tags: ["test-accounts"]
---

# Create Test Account

`POST /test-accounts`

## Request

- Base URL: `https://api.getathly.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getathly.com/test-accounts`
- Auth: HTTP bearer

Create a test account for the caller's owner and sign it in.

## Request body

- TestAccountCreate
  - `name` string, required
  - `athlete_slug` string, required
  - `preset_id` string, nullable
  - `timezone` string, required

## Response `200`

Successful Response

- TestAccountSession: A session for the test account, for the browser to adopt.
  - `access_token` string, required
  - `refresh_token` string, required
  - `expires_at` integer, required
  - `user_id` string, required
  - `athlete_slug` string, required
  - `email` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/getathly/apis/athly-api.md) - [All operations](https://skmtc.dev/getathly/apis/athly-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getathly/apis/athly-api/revisions/6adfdc258d75?raw)
