---
title: "Make an address primary"
method: POST
path: "/v1/auth/emails/{emailId}/primary"
tags: ["Account"]
---

# Make an address primary

`POST /v1/auth/emails/{emailId}/primary`

## Request

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

Points the account at one of its verified addresses: account mail, the Gravatar avatar, and sign-in follow it. The previous primary stays on the account as a secondary address. Needs a recent identity confirmation.

## Path parameters

- `emailId` 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
    - `emails` object[], required
      - `id` string, required
      - `email` string, required
      - `isPrimary` boolean, required
      - `verifiedAt` string, required
      - `verificationMethod` 'email_code' | 'oauth' | 'admin' | 'migration', 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)
