---
title: "Create Interaction"
method: POST
path: "/api/public/interactions"
tags: ["Interactions"]
---

# Create Interaction

`POST /api/public/interactions`

Endpoint to create a new interaction between a bot and a phone number.

## Headers

- `x-openmic-public-key` string, required

## Request body

- InteractionRequest
  - `fromPhoneNumberId` integer, required — The ID of the phone number initiating the interaction.
  - `toPhoneNumber` string, required — The phone number receiving the interaction.
  - `botId` integer, required — The ID of the bot involved in the interaction.

## Response `200`

Interaction created successfully

- EmptyResponse

## Other responses

- `400` — Bad request, invalid input
- `401` — Unauthorized, JWT token is missing or invalid
- `500` — Internal server error

## Changes

- **2024-04-17** `f8a2e9441925` — 1 breaking, 3 warning, 4 info
  - the response's body type/format changed from ``/`` to `object`/`` for status `200`
  - removed the optional property `message` from the response with the `400` status
  - removed the optional property `message` from the response with the `401` status
  - removed the optional property `message` from the response with the `500` status
  - …4 more

[Change history](https://skmtc.dev/openmicai/apis/openmic-v1-external-api/changes/api/public/interactions/post.md)

---

[API](https://skmtc.dev/openmicai/apis/openmic-v1-external-api.md) · [All operations](https://skmtc.dev/openmicai/apis/openmic-v1-external-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openmicai/openmic-v1-external-api/revisions/f8a2e9441925/schema)
