---
title: "Receive email sent to Xovris"
url: https://xovris.ai/docs/api/operations/posthooksemail/
---

# Receive email sent to Xovris

`POST /v1/hooks/email`

Open to anyone, so no Idempotency-Key is kept: nobody is signed in to keep it for, and replaying one caller's answer to another would hand it over.

No token needed: anyone may call this.

## Request body

### `multipart/form-data`

- `body-mime`
- `timestamp`
- `token`
- `signature`
- `recipient`
- `sender`

Example:

```json
{
  "body-mime": null,
  "timestamp": null,
  "token": null,
  "signature": null,
  "recipient": null,
  "sender": null
}
```

### `application/x-www-form-urlencoded`

- `body-mime`
- `timestamp`
- `token`
- `signature`
- `recipient`
- `sender`

Example:

```json
{
  "body-mime": null,
  "timestamp": null,
  "token": null,
  "signature": null,
  "recipient": null,
  "sender": null
}
```

### `application/json`

- `envelope` (T407a24617e25)
  - `ip` (string)
  - `helo` (string)
  - `mailFrom` (string)
  - `rcptTo` (string[])
- `raw` (string)

Example:

```json
{
  "envelope": {
    "ip": "string",
    "helo": "string",
    "mailFrom": "string",
    "rcptTo": [
      "string"
    ]
  },
  "raw": "string"
}
```

## Answers

- `200`: Done. (application/json: object | Tf9c7a6001552 | Tee2bbdb325d7 | T0c83c4976206)
- `201`: Done: something new was made, and the answer is it. (application/json: object)
- `202`: Started: the answer says where to follow it. (application/json: T7e791517dc41 | T77cec8787428 | object)
- `404`: Nothing with that id here, or it belongs to another workspace. Nothing was changed. (application/json: Problem)
- `default`: Any other refusal or failure. The answer says what happened and what to do next. (application/json: Problem)

## A call

The address is https://api.xovris.ai/v1/hooks/email - put your own value in place of each part in braces.

```sh
curl --request POST \
  --url 'https://api.xovris.ai/v1/hooks/email' \
  --header 'Content-Type: multipart/form-data' \
  --data '{"body-mime":null,"timestamp":null,"token":null,"signature":null,"recipient":null,"sender":null}'
```
