Get an API key
Mail

GET /api/mail/:id/messages/search

GET https://api.iagenify.com/api/mail/ID/messages/search

Reference for GET /api/mail/:id/messages/search.

authenticatedno JSON body

HTTP request

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

JavaScript

const response = await fetch("https://api.iagenify.com/api/mail/ID/messages/search", {
  method: "GET",
  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("GET", "https://api.iagenify.com/api/mail/ID/messages/search", headers={"Authorization": "Bearer " + os.environ["IAGENIFY_TOKEN"]}, timeout=30)
response.raise_for_status()
result = response.json()

Path parameters

idstringrequired

Value for :id.

Query parameters

qstring

Optional q query value.

folderstring

Optional folder query value.

limitstring

Optional limit query value.

Response and errors

Success returns JSON from the endpoint.