Hoppa till innehållet

Rename a server

PATCH/v1/servers/{id}

TypeScript account.servers.update(serverId, { name })

Python account.servers.update(server_id, name=...)

PHP $account->servers->update($serverId, name: $name)

Java account.servers().update(serverId, name)

Key ak_… an account key

The id, the keys, the mode and everything the server holds stay. The new name must be free within the account. A body that names a mode is refused: a server is live or test from its creation.

Parameters

  • idin pathstring (uuid)required

    The server id.

Request body

{
  "name": "Ekonomi"
}
  • namestring (at least 1, at most 100 characters)required

    1 to 100 characters.

Responses

Every field of a response is always present. A field that can be null says so in its type.

200A server of the account: an isolation boundary with its own keys, streams, log, suppressions and webhooks.

Example

{
  "serverId": "7c1e4d2a-0b9f-4a3e-8d6c-5e2f1a9b8c70",
  "name": "Ekonomi",
  "mode": "live",
  "createdAt": "2026-09-20T12:00:00.000Z"
}
  • serverIdstring (uuid)

    The id every server key, stream and message of the server refers to.

  • namestring (at least 1, at most 100 characters)

    The name given at creation, unique within the account.

  • mode"live" | "test"

    live delivers; test goes through everything but delivery, so nothing reaches a recipient. Fixed when the server is created.

  • createdAtstring (date-time)

Errors

Every error answers error, the code, and message, a sentence for a person. A code that adds fields is shown in full below the table.

CodeStatusMeaning
invalid_request400The body, the query or a header does not match what the route takes.
mode_immutable400A server’s mode is fixed when it is created; create a new server for the other mode.
unauthorized401The key is missing, malformed or revoked.
wrong_token_kind403The key is of the other kind: a server key (sk_) where an account key (ak_) is needed, or the reverse. The message names the kind the operation takes.
not_for_connections403A connected app called an operation that no tool of the MCP server calls. An API key can.
read_only_connection403A connected app may only read here: the account is read only through a connection, and a live server takes changes only if the person allowed them when connecting.
test_server_only403A connected app may create a secret, or do what cannot be undone, on a test server only.
not_found404No such server of this account.
server_exists409The account already has a server with that name.
server_reserved409This server sends Sendora’s own sign-in mail and cannot be renamed or removed.
  • WWW-Authenticateheader on 401"Bearer"

    Always Bearer: send the key as Authorization: Bearer <key>.

invalid_request

Example

{
  "error": "invalid_request",
  "message": "The request is invalid: to.0: Invalid email address",
  "issues": [
    {
      "path": "to.0",
      "message": "Invalid email address"
    }
  ]
}
  • issuesarray of object

    One entry per invalid field; absent when a header is wrong.

    • pathstringrequired

      The field, dotted, such as to.0.email; empty when the whole body is wrong.

    • messagestringrequired