Локалізовано за допомогою ШІ

Видалення API ключа

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

const result = await response.json();

Відповіді

{
  "object": "api_key",
  "id": 1234567890,
  "name": "Мій API ключ",
  "deleted": true
}