Skip to Content

Update a mailbox endpoint

Updates the fields you name and keeps the rest, and returns the mailbox.

PATCH
/v1/mailboxes/{id}/endpoints/{endpointId}

Updates the fields you name and keeps the rest, and returns the mailbox. displayName is the name messages sent from the endpoint carry; null falls back to the mailbox's name. default: true makes the endpoint the one the mailbox starts new conversations from on its channel; replies always leave from the endpoint of their thread.

Authorization

apiKey
headerx-api-key<token>

Path Parameters

id*string
Match^mbx_[0-9a-hjkmnp-tv-z]{16,24}$
endpointId*string
Match^mbxep_[0-9a-hjkmnp-tv-z]{16,24}$

Request Body

application/json
  1. body
displayName?|null|null
default?|null

Response Body

Mailbox

application/json
  1. response
id*MailboxId
Match^mbx_[0-9a-hjkmnp-tv-z]{16,24}$
kind*MailboxKind

Whether a mailbox belongs to one person or is shared with a team.

Value in"personal""shared"
owner*|null
namespaceId*|null
slug*string
name*string
status*MailboxStatus
Value in"active""paused"
primaryAddress*string|null
sendingStatus*|null
createdAt*string
description*string|null
metadata*
endpoints*array<||>
updatedAt*string
Example Request
import { createClient } from "samva";

const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });

const result = await samva.mailboxes.updateEndpoint({
  "id": "example",
  "endpointId": "example"
});
Example Response
{
  "id": "string",
  "kind": "personal",
  "owner": "string",
  "namespaceId": "string",
  "slug": "string",
  "name": "string",
  "status": "active",
  "primaryAddress": "string",
  "sendingStatus": "pending",
  "createdAt": "string",
  "description": "string",
  "metadata": {
    "property1": "string",
    "property2": "string"
  },
  "endpoints": [
    {
      "id": "string",
      "address": "string",
      "displayName": "string",
      "default": true,
      "channel": "email",
      "source": "samvaHosted",
      "domainId": "string",
      "sendingStatus": "pending"
    }
  ],
  "updatedAt": "string"
}

Related documentation