---
title: Postmark
description: Połącz Postmark, poznaj sposób synchronizacji i wysyłaj zapytania do wszystkich zapisywanych tabel i kolumn.
species: reference
---
# Postmark

Połącz Postmark za pomocą tokenów API serwera i konta. Źródło zapisuje 5 stałych tabel w schemacie `titan.postmark`.
```sql
select
  id,
  name,
  description
from titan.postmark.message_streams
limit 10
```

## Połącz Postmark

1. Otwórz **Aplikacje**, wybierz **Połącz aplikację**, a następnie **Postmark**.
2. Podaj tokeny API serwera i konta.
3. Sprawdź tabele, a następnie zapisz źródło.
4. Obserwuj **Historię synchronizacji**, aż pierwsze uruchomienie się zakończy.

Dane uwierzytelniające są przechowywane jako sekrety. Nigdy nie stają się kolumnami jeziora ani nie pojawiają się w wynikach zapytań.

## Sposób synchronizacji

Strumienie wiadomości, wiadomości wychodzące, odbicia, szablony i podpisy nadawców są synchronizowane razem.

Nowe źródło synchronizuje się po połączeniu, a następnie zgodnie z harmonogramem. Domyślny interwał cykliczny wynosi 4 godziny. Przerwane uruchomienie zachowuje ukończone postępy i jest bezpiecznie ponawiane.

Każda tabela jeziora ma też [kolumny systemowe](/docs/concepts/your-lake#kolumny-systemowe) `_synced_at` i `_deleted`; poniższa dokumentacja kolumn obejmuje wyłącznie kolumny źródłowe.

## Dokumentacja tabel

### `message_streams`

`titan.postmark.message_streams` ma 6 kolumn źródłowych.

```columns table=postmark.message_streams
id                                      string pk           Pole źródłowe `id`.
name                                    string              Pole źródłowe `name`.
description                             string              Pole źródłowe `description`.
message_stream_type                     string              Pole źródłowe `messageStreamType`.
created_at                              datetime            Pole źródłowe `createdAt`.
updated_at                              datetime            Pole źródłowe `updatedAt`.
```

### `outbound_messages`

`titan.postmark.outbound_messages` ma 8 kolumn źródłowych.

```columns table=postmark.outbound_messages
message_id                              string pk           Pole źródłowe `messageID`.
to                                      json                Pole źródłowe `to`.
from                                    string              Pole źródłowe `from`.
subject                                 string              Pole źródłowe `subject`.
status                                  string              Pole źródłowe `status`.
received_at                             datetime            Pole źródłowe `receivedAt`.
tag                                     string              Pole źródłowe `tag`.
message_stream                          string              Pole źródłowe `messageStream`.
```

### `bounces`

`titan.postmark.bounces` ma 8 kolumn źródłowych.

```columns table=postmark.bounces
id                                      integer pk          Pole źródłowe `id`.
type                                    string              Pole źródłowe `type`.
message_id                              string              Pole źródłowe `messageID`.
description                             string              Pole źródłowe `description`.
bounced_at                              datetime            Pole źródłowe `bouncedAt`.
email                                   string              Pole źródłowe `email`.
subject                                 string              Pole źródłowe `subject`.
message_stream                          string              Pole źródłowe `messageStream`.
```

### `templates`

`titan.postmark.templates` ma 5 kolumn źródłowych.

```columns table=postmark.templates
template_id                             integer pk          Pole źródłowe `templateId`.
name                                    string              Pole źródłowe `name`.
subject                                 string              Pole źródłowe `subject`.
active                                  boolean             Pole źródłowe `active`.
template_type                           string              Pole źródłowe `templateType`.
```

### `sender_signatures`

`titan.postmark.sender_signatures` ma 5 kolumn źródłowych.

```columns table=postmark.sender_signatures
id                                      integer pk          Pole źródłowe `id`.
domain                                  string              Pole źródłowe `domain`.
email_address                           string              Pole źródłowe `emailAddress`.
confirmed                               boolean             Pole źródłowe `confirmed`.
created_at                              datetime            Pole źródłowe `createdAt`.
```

## Usunięcia i historia

Wiersze są scalane według klucza źródłowego. Gdy źródło może potwierdzić usunięcie wiersza, Supernova zachowuje go i ustawia `_deleted`, dzięki czemu zapytania mogą zdecydować, czy uwzględniać historię. Aby pobierać bieżący stan, filtruj zapytania przez `where not _deleted`.
