Mediflo
REST APIBots

Create a bot

`locationId` is optional: omit it (or send null or an empty string) for a bot that is not tied to one location; to tie it to one, create the location via POST /locations first. `channels` defaults to the channels available to your organization (website chat and/or phone; phone when neither is set up). There is no DELETE for bots by design: they are hard-deleted, so removal stays in the Portal. Required scope: `bots.write`.

POST/bots

Authorization

ApiKeyAuth
AuthorizationBearer <token>

An external API key, sent as Authorization: Bearer mflo_…. Scopes are checked per route; see each operation’s description.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/bots" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "name": "string",    "description": "string",    "isActive": true,    "priority": 0,    "maxConcurrentCalls": 0,    "country": "string",    "channels": [      "WEB_CHAT"    ],    "locationId": "1a5515a3-ba81-4a42-aee7-ad9ffc090a54",    "location": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string"    },    "phoneNumberId": "8e9ce3fb-4d22-4fe3-baa7-b7892dd942d7",    "phoneNumber": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "phoneNumber": "string"    },    "currentConfigSnapshotId": "c9e4146c-56e5-412d-a7c1-86311b72b35e",    "operatingHours": [      {        "dayOfWeek": 0,        "startTime": "string",        "endTime": "string"      }    ],    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  }}