Hoppa till innehållet

Read this key's server

GET/v1/server

TypeScript sendora.server.get()

Python sendora.server.get()

PHP $sendora->server->get()

Java sendora.server().get()

Key sk_… a server key

The server the key belongs to, whether it is live or a test server, every limit a send on it is held to with what its period has used, the account's cap on received mail, and the sending domains a from address on it may use.

Responses

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

200The server this key belongs to, its mode, its limits with their use and the domains it may send from.

Example (33 lines)
{
  "serverId": "7c1e4d2a-0b9f-4a3e-8d6c-5e2f1a9b8c70",
  "name": "Invoicing",
  "mode": "live",
  "createdAt": "2026-09-20T12:00:00.000Z",
  "limits": [
    {
      "scope": "account",
      "period": "minute",
      "limit": 300,
      "used": 4,
      "resetsAt": "2026-09-24T10:01:00.000Z"
    },
    {
      "scope": "account",
      "period": "month",
      "limit": 10000,
      "used": 812,
      "resetsAt": "2026-10-01T00:00:00.000Z"
    }
  ],
  "inboundCap": {
    "limit": 10000,
    "used": 214,
    "resetsAt": "2026-10-01T00:00:00.000Z"
  },
  "sendingDomains": [
    {
      "domain": "example.se",
      "failingSince": null
    }
  ]
}
  • 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)
  • limitsarray of object

    Every limit a single send is held to. On a live server: the account's per-minute limit, its daily cap if it has one and its monthly cap, and the server's own where Sendora set them. On a test server: the test cap its account's test servers share.

    • scope"account" | "server" | "test"

      Whose limit it is: account for the account's, server for the server's own, test for the cap the account's test servers share.

    • period"minute" | "day" | "month"

      The span the limit counts over: the UTC minute, the calendar day in UTC, or the month. A paying account's live server counts its month from the day and time of the first payment, and any other server the calendar month in UTC.

    • limitinteger

      Emails allowed in the period, one per recipient.

    • usedinteger

      Emails the period has taken so far.

    • resetsAtstring (date-time)

      When the period ends and the count starts again.

  • inboundCapobject or null

    The account's monthly cap on received mail and its use; null on a test server, and for an account whose plan includes no received mail.

    • limitinteger

      Emails the account may receive in its month, over every inbound stream. A paying account's month runs from the day and time of its first payment, and any other account's is the calendar month in UTC. It is the account's monthly cap on sending until an administrator moves it in the dashboard.

    • usedinteger

      Emails received this month so far, one per recipient.

    • resetsAtstring (date-time)

      When the month ends and the count starts again.

  • sendingDomainsarray of object

    The account's sending domains a from address on this server may use now: every verified one, one in its 24-hour warning with failingSince set. Sending domains are the account's; an account key or the dashboard adds one.

    • domainstring

      The domain, as the part of a from address after the @.

    • failingSincestring (date-time) or null

      When a check first found one of its records missing or wrong; mail keeps going out, and the first check 24 hours after this that still misses one ends the verification. Null while every record is in place.

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
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.
  • WWW-Authenticateheader on 401"Bearer"

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