Hoppa till innehållet

List the streams

GET/v1/streams

TypeScript sendora.streams.list()

Python sendora.streams.list()

PHP $sendora->streams->list()

Java sendora.streams().list()

Key sk_… a server key

Every stream of the server, archived ones included, oldest first.

Responses

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

200Every stream of the server, archived ones included, oldest first.

Example (43 lines)
{
  "streams": [
    {
      "streamId": "3d1a2b4c-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
      "kind": "transactional",
      "name": "transactional",
      "isDefault": true,
      "createdAt": "2026-09-15T12:00:00.000Z",
      "archivedAt": null,
      "pausedAt": null,
      "inboundAddress": null,
      "contentRetentionDays": null,
      "trackOpens": false,
      "trackLinks": false
    },
    {
      "streamId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
      "kind": "transactional",
      "name": "Notices",
      "isDefault": false,
      "createdAt": "2026-09-16T12:00:00.000Z",
      "archivedAt": null,
      "pausedAt": null,
      "inboundAddress": null,
      "contentRetentionDays": null,
      "trackOpens": false,
      "trackLinks": false
    },
    {
      "streamId": "9b2f7c41-3e5d-4a8b-9c1e-2d3f4a5b6c7d",
      "kind": "inbound",
      "name": "Support",
      "isDefault": false,
      "createdAt": "2026-09-20T12:00:00.000Z",
      "archivedAt": null,
      "pausedAt": null,
      "inboundAddress": "9b2f7c413e5d4a8b9c1e2d3f4a5b6c7d@inbound.sendora.se",
      "contentRetentionDays": 14,
      "trackOpens": false,
      "trackLinks": false
    }
  ]
}
  • streamsarray of object
    • streamIdstring (uuid)

      What a send names as streamId.

    • kind"transactional" | "broadcast" | "inbound"

      transactional for mail the recipient expects; broadcast for mail to many; inbound for mail the server receives.

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

      The name given at creation, unique within the server.

    • isDefaultboolean

      The stream a send without a streamId goes on; one per server, transactional.

    • createdAtstring (date-time)
    • archivedAtstring (date-time) or null

      Set once archived; the stream then takes no new messages.

    • pausedAtstring (date-time) or null

      Set while Sendora has paused the stream after complaints; it takes no messages until support has resumed it.

    • inboundAddressstring or null

      The address of an inbound stream, its id on inbound.sendora.se; mail sent there is received on the stream. Null on every other kind.

    • contentRetentionDaysinteger (1 to 30) or null

      How many days an inbound stream keeps received content, 1 to 30; null means the default of 30. Null on every other kind.

    • trackOpensboolean

      Whether the opens of the stream's mail are tracked, unless a message sets trackOpens. An administrator switches it in the dashboard. Always false on an inbound stream.

    • trackLinksboolean

      Whether the links in the stream's mail are tracked, unless a message sets trackLinks. An administrator switches it in the dashboard. Always false on an inbound stream.

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>.