---
title: "Start adding an email address"
method: POST
path: "/v1/auth/emails"
tags: ["Account"]
---

# Start adding an email address

`POST /v1/auth/emails`

## Request

- Base URL: `https://api.spacefast.com`
- URL: `https://api.spacefast.com/v1/auth/emails`
- Auth: API key in cookie `__Host-better-auth.session_token`

Mails a six-digit confirmation code to the address. The address joins the account only once that code is confirmed. Needs a recent identity confirmation.

## Request body

- object
  - `email` string, required

## Response `200`

Response for status 200

- object
  - `$schema` string, uri: Canonical JSON Schema URL for this response body. The server also sends it in the `Link: rel="describedby"` response header.
  - `data` object, required
    - `email` string, required
    - `expiresAt` string, required

## Other responses

- `default`: Problem details (RFC 9457). Any 4xx/5xx response is one `application/problem+json` document.

---

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