---
title: "Take a message or a card press from Xovris's Teams bot"
url: https://xovris.ai/docs/api/operations/postalertsteamsmessages/
---

# Take a message or a card press from Xovris's Teams bot

`POST /v1/alerts/teams/messages`

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

### `application/json`

- `type` (string)
- `name` (string)
- `id` (string)
- `serviceUrl` (string)
- `channelId` (string)
- `text` (string)
- `replyToId` (string)
- `value`
- `from` (T30265c4e09fe)
  - `id` (string)
  - `name` (string)
  - `aadObjectId` (string)
- `recipient` (Tad05aa7d91d4)
  - `id` (string)
  - `name` (string)
- `conversation` (T7fb4e575542f)
  - `id` (string)
  - `conversationType` (string)
  - `tenantId` (string)
  - `name` (string)
- `membersAdded` (object[])
- `channelData` (T56f752bedf24)
  - `tenant` (object)
  - `channel` (Tad05aa7d91d4)
  - `team` (Tad05aa7d91d4)

Example:

```json
{
  "type": "string",
  "name": "string",
  "id": "string",
  "serviceUrl": "string",
  "channelId": "string",
  "text": "string",
  "replyToId": "string",
  "value": null,
  "from": {
    "id": "string",
    "name": "string",
    "aadObjectId": "string"
  },
  "recipient": {
    "id": "string",
    "name": "string"
  },
  "conversation": {
    "id": "string",
    "conversationType": "string",
    "tenantId": "string",
    "name": "string"
  },
  "membersAdded": [
    {
      "id": "string"
    }
  ],
  "channelData": {
    "tenant": {
      "id": "string"
    },
    "channel": {
      "id": "string",
      "name": "string"
    },
    "team": {
      "id": "string",
      "name": "string"
    }
  }
}
```

## Answers

- `200`: Done. (application/json: Tabdd005a2504 | T5b6ab88a3fa4)
- `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: 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/alerts/teams/messages - put your own value in place of each part in braces.

```sh
curl --request POST \
  --url 'https://api.xovris.ai/v1/alerts/teams/messages' \
  --header 'Content-Type: application/json' \
  --data '{"type":"string","name":"string","id":"string","serviceUrl":"string","channelId":"string","text":"string","replyToId":"string","value":null,"from":{"id":"string","name":"string","aadObjectId":"string"},"recipient":{"id":"string","name":"string"},"conversation":{"id":"string","conversationType":"string","tenantId":"string","name":"string"},"membersAdded":[{"id":"string"}],"channelData":{"tenant":{"id":"string"},"channel":{"id":"string","name":"string"},"team":{"id":"string","name":"string"}}}'
```
