# Send a DM (/en/reference/inbox/send-dm)

OpenAPI operation (components in https://api.tebar.app/v1/openapi.json):

```json
[
  {
    "operationId": "sendDm",
    "tags": [
      "Inbox"
    ],
    "summary": "Send a DM",
    "description": "Queued and sent by Tebar within seconds; the messages come back pending, and GET …/messages shows them sent, failed or unknown. Instagram allows replies only within 24 hours of the customer's last message (422 messaging_window_closed).\n\ntext: up to 1,000 bytes. media_ids from the media library: JPG/PNG up to 8 MB (up to 10 go as one message), MP4/MOV up to 25 MB (one message each); they go before the text (422 attachment_unsupported, attachment_too_large).\n\nbuttons (1-3, text up to 640 characters; Instagram's button template) or quick_replies (1-13, shown on phones only), not both, and only with text. A tap on a postback button or a quick reply comes back as a message of kind postback or quick_reply with postback { title, payload }, and in the message.received webhook.\n\nAlso 422 human_agent_unavailable, messaging_permission_missing. At most 60 a minute per user.\n\nRequires the write scope.",
    "parameters": [
      {
        "name": "id",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string",
          "format": "uuid"
        }
      },
      {
        "name": "Idempotency-Key",
        "in": "header",
        "required": false,
        "description": "1-128 characters of [A-Za-z0-9_-]. The same key gives back the same messages instead of sending again.",
        "schema": {
          "type": "string"
        }
      },
      {
        "$ref": "#/components/parameters/TebarProfile"
      }
    ],
    "requestBody": {
      "required": true,
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/SendDmRequest"
          }
        }
      }
    },
    "responses": {
      "202": {
        "description": "The queued messages, in the order they are sent.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/SendDmResponse"
            }
          }
        }
      },
      "400": {
        "$ref": "#/components/responses/BadRequest"
      },
      "401": {
        "$ref": "#/components/responses/Unauthorized"
      },
      "403": {
        "$ref": "#/components/responses/Forbidden"
      },
      "404": {
        "$ref": "#/components/responses/NotFound"
      },
      "429": {
        "$ref": "#/components/responses/RateLimited"
      }
    }
  }
]
```