---
title: "Set your first name"
method: POST
path: "/api/me/name"
tags: ["Account"]
---

# Set your first name

`POST /api/me/name`

## Request

- Base URL: `https://getmyluna.app`
- URL: `https://getmyluna.app/api/me/name`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `luna_session`

Sets the name the family sees for you (away card, timeline, partner list, connector). Refuses email addresses. `400` if empty or over 40 characters.

## Request body

- NameRequest
  - `display_name` string, required: Your first name. Not an email address.

## Response `200`

Success

- NameResponse
  - `ok` boolean, required
  - `display_name` string, required

## Other responses

- `400`: Bad Request
- `401`: Missing or invalid credentials
- `403`: `insufficient_scope`: the bearer token lacks the `write` scope

---

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