DokumentaceAPI ReferenceOdesílací domény

Seznam odesílacích domén

const response = await fetch('https://api.emailit.com/v2/sending-domains?page=1&limit=10', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer em_test_51RxCWJ...vS00p61e0qRE',
    'Content-Type': 'application/json'
  }
});

const result = await response.json();

Odpovědi

{
  "data": [
    {
      "id": 1234567890,
      "uuid": "sd_1234567890",
      "name": "mail.yourdomain.com",
      "track_loads": true,
      "track_clicks": true,
      "created_at": "2021-01-01T00:00:00Z",
      "updated_at": "2021-01-01T00:00:00Z"
    },
    {
      "id": 987654321,
      "uuid": "sd_0987654321",
      "name": "mail2.yourdomain.com",
      "track_loads": true,
      "track_clicks": true,
      "created_at": "2021-01-02T00:00:00Z",
      "updated_at": "2021-01-02T00:00:00Z"
    }
  ],
  "next_page_url": "https://api.emailit.com/v2/sending-domains?page=2&limit=10",
  "previous_page_url": null
}