Lokalisiert durch KI

API-Schlüssel abrufen

const response = await fetch('https://api.emailit.com/v2/api-keys/ak_1234567890', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer em_test_51RxCWJ...vS00p61e0qRE',
    'Content-Type': 'application/json'
  }
});

const result = await response.json();

Antworten

{
  "object": "api_key",
  "id": 1234567890,
  "name": "Mein API-Schlüssel",
  "scope": "sending",
  "sending_domain_id": 1234567890,
  "last_used_at": "2021-01-01T12:00:00Z",
  "created_at": "2021-01-01T00:00:00Z",
  "updated_at": "2021-01-01T00:00:00Z"
}