---
title: "Create a new WhatsApp instance"
method: POST
path: "/v1/instance/create"
tags: ["Instance"]
---

# Create a new WhatsApp instance

`POST /v1/instance/create`

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/v1/instance/create`
- Auth: API key in header `apikey`

Creates a new WhatsApp instance with the given name and optional configuration

## Request body

- DtoCreateInstanceRequest
  - `alwaysOnline` boolean
  - `groupsIgnore` boolean
  - `id` string
  - `instanceName` string
  - `migration` DtoMigrationData
    - `creds` object, required
    - `preKeys` DtoMigrationPreKey[]
      - `keyId` integer
      - `private` DtoMigrationBuffer
        - `data` string
        - `type` string
  - `msgCall` string
  - `proxyHost` string
  - `proxyPassword` string
  - `proxyPort` string
  - `proxyProtocol` string
  - `proxyUsername` string
  - `readMessages` boolean
  - `rejectCall` boolean
  - `remoteJID` string
  - `saveMedia` boolean
  - `syncFullHistory` boolean
  - `webhook` ModelsInstanceWebhook
    - `base64` boolean
    - `enabled` boolean
    - `events` string[]
    - `headers` object
    - `url` string

## Response `201`

Created

- DtoCreateInstanceResponse
  - `alwaysOnline` boolean
  - `groupsIgnore` boolean
  - `id` string
  - `migration` DtoMigrationResult
    - `connected` boolean
    - `jid` string
    - `lid` string
    - `preKeysImported` integer
  - `msgCall` string
  - `proxyHost` string
  - `proxyPassword` string
  - `proxyPort` string
  - `proxyProtocol` string
  - `proxyUsername` string
  - `readMessages` boolean
  - `rejectCall` boolean
  - `remoteJID` string
  - `saveMedia` boolean
  - `syncFullHistory` boolean
  - `webhook` ModelsInstanceWebhook
    - `base64` boolean
    - `enabled` boolean
    - `events` string[]
    - `headers` object
    - `url` string

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `422`: Unprocessable Entity
- `500`: Internal Server Error

## Changes

- **2026-07-18** `f812473c5a89`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/verbeux-ai/apis/whatsmiau-api/changes/v1/instance/create/post.md)

---

[API](https://skmtc.dev/verbeux-ai/apis/whatsmiau-api.md) - [All operations](https://skmtc.dev/verbeux-ai/apis/whatsmiau-api/llms.txt) - [OpenAPI document](https://skmtc.dev/verbeux-ai/apis/whatsmiau-api/revisions/b425ec589eb0?raw)
