Get an API key
Mail

PATCH /api/mail/:id/messages/:msg

PATCH https://api.iagenify.com/api/mail/ID/messages/MSG

Reference for PATCH /api/mail/:id/messages/:msg.

authenticatedno JSON body

HTTP request

curl https://api.iagenify.com/api/mail/ID/messages/MSG -X PATCH -H "Authorization: Bearer $IAGENIFY_TOKEN"

JavaScript

const response = await fetch("https://api.iagenify.com/api/mail/ID/messages/MSG", {
  method: "PATCH",
  headers: { Authorization: `Bearer ${process.env.IAGENIFY_TOKEN}` }
});
const result = await response.json();
if (!response.ok) throw new Error(result.error);

Python

import os
import requests

response = requests.request("PATCH", "https://api.iagenify.com/api/mail/ID/messages/MSG", headers={"Authorization": "Bearer " + os.environ["IAGENIFY_TOKEN"]}, timeout=30)
response.raise_for_status()
result = response.json()

Path parameters

idstringrequired

Value for :id.

msgstringrequired

Value for :msg.

Response and errors

Success returns JSON from the endpoint.