---
title: "Create event"
method: POST
path: "/communities/event"
tags: ["Communities"]
---

# Create event

`POST /communities/event`

This method is responsible for creating a event.

## Request body

- CreateEventRequest
  - `to` string, required — Use [Get communities](https://gate.whapi.cloud/communities) to get the community ID.
  - `title` string, required — Event name.
  - `description` string — Event description.
  - `startTime` number, required — Start time (format timestamp)
  - `endTime` number — End time (format timestamp)
  - `degreesLatitude` number, double
  - `degreesLongitude` number, double
  - `locationName` string
  - `locationAddress` string
  - `view_once` boolean — Is view once

## Response `200`

OK

- ResponseSuccess
  - `success` boolean

## Other responses

- `400` — Wrong request parameters
- `401` — Need channel authorization
- `500` — Internal Error

---

[API](https://skmtc.dev/whapi/apis/whatsapp-api.md) · [All operations](https://skmtc.dev/whapi/apis/whatsapp-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/whapi/whatsapp-api/revisions/40ab05abffdb/schema)
