File size: 397 Bytes
6793beb | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | import asyncio
from httpx import AsyncClient
import requests
import json
data = {
"sender": "test@test.com",
"subject": "test",
"body": "test output"
}
res = requests.post(
"https://mrmayankmathurorg-customer-email-agent.hf.space/api/v1/process-email",
json=data,
headers={"X-API-Token": "dev_token_change_me"}
)
print("Status:", res.status_code)
print("Body:", res.text)
|