---
title: "Update Sender Persona"
method: PATCH
path: "/mailboxes/personas/{persona_id}"
tags: ["Mailboxes"]
---

# Update Sender Persona

`PATCH /mailboxes/personas/{persona_id}`

## Request

- Base URL: `https://be.graph8.com/api/v1`
- URL: `https://be.graph8.com/api/v1/mailboxes/personas/{persona_id}`
- Auth: HTTP bearer

Change a sender persona. Send only the fields that change.

`first_name`, `last_name` and `email` cannot be set to null. Domains
already registered keep the registrant details they were bought with.
Org admins and owners only, and a personal API key.

## Path parameters

- `persona_id` integer, required: Sender persona id - from GET /mailboxes/personas

## Headers

- `Authorization` string, nullable
- `X-Target-Org-Id` string, nullable

## Request body

- SenderPersonaWriteRequest: A sender identity: the real person mail is bought and sent under. Mirrors the app's persona fields (`CreateSenderPersonaData` / `SenderPersonaPatch`). The app's own validators - name alphabet, email normalisation, photo URL, "identity or team member" - run on the app model and surface as a 422, so they are delegated rather than copied here. On CREATE: give `first_name`, `last_name` and `email`, or a `team_member_id` to take the identity from. On UPDATE: send only what changes; an identity field cannot be set to null.
  - `first_name` string, nullable: Given name
  - `last_name` string, nullable: Family name
  - `email` string, nullable: The persona's own address
  - `phone` string, nullable: Contact phone
  - `title` string, nullable: Job title shown in signatures
  - `organization` string, nullable: Organisation name
  - `address_line1` string, nullable: Registrant address, line 1
  - `address_line2` string, nullable: Registrant address, line 2
  - `city` string, nullable: City
  - `state` string, nullable: State or region
  - `country` string, nullable: Country
  - `postal_code` string, nullable: Postal code
  - `photo_url` string, nullable: Photo URL
  - `team_member_id` string, uuid, nullable: Team member whose identity this persona uses

## Response `200`

Successful Response

- ApiResponseMailboxDomainPayload
  - `data` MailboxDomainPayload, required: An open envelope for one provider/deliverability result. Open on purpose. These payloads are provider state and advisory reads whose contents grow with the product, and a dropped field reads as "nothing to report" rather than "we did not tell you". Every value passes through ``scrub_vendor_names`` on the way in.
  - `pagination` PaginationMeta
    - `page` integer, required: Current page number (1-indexed)
    - `limit` integer, required: Items per page
    - `total` integer, required: Total number of items
    - `has_next` boolean, required: Whether there are more pages
    - `next_cursor` string, nullable: Opaque cursor for the next page; null when there are no more items. Pass it back as the `cursor` query param to fetch the following page without computing page numbers.
    - `total_available` integer, nullable: Search endpoints only: how many records really match, when known. Can be larger than `total`, which is capped at the 10,000 results that can be paged. For company search this is a distinct-company estimate. Null when unknown; absent outside search.
    - `total_is_lower_bound` boolean, nullable: Search endpoints only: true when more records match than `total` shows (the result set is larger than the 10,000 results that can be paged). Absent outside search.
    - `notes` string[], nullable: Search endpoints only: plain-language notes about the result, e.g. that more records match than can be paged, or that a reversed `between` range was put in order.

## Other responses

- `422`: Validation Error

---

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