> ## Documentation Index
> Fetch the complete documentation index at: https://docs.talkover.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Criar Evento de Calendário

> Criar um evento em um calendário

# Criar Evento de Calendário

Criar um novo evento em um calendário.

## Endpoint

```
POST /api/v1/calendars/{calendar_id}/events
```

## Parâmetros de caminho

<ParamField path="calendar_id" type="string" required>UUID do calendário.</ParamField>

## Cabeçalhos da requisição

<ParamField header="Authorization" type="string" required>
  Token Bearer para autenticação. Formato: `Bearer talq_your_environment_token_here`
</ParamField>

<ParamField header="Content-Type" type="string" required>Deve ser `application/json`.</ParamField>

## Corpo da requisição

<ParamField body="title" type="string" required>Título do evento.</ParamField>
<ParamField body="description" type="string">Descrição opcional.</ParamField>
<ParamField body="start_at" type="string" required>Horário de início. ISO 8601.</ParamField>
<ParamField body="end_at" type="string" required>Horário de término. ISO 8601. Deve ser posterior a `start_at`.</ParamField>
<ParamField body="status" type="string">Opções: `confirmed`, `tentative`, `cancelled`. Padrão: `confirmed`.</ParamField>
<ParamField body="type" type="string">Tag livre de tipo de evento (ex: `meeting`, `block`, `appointment`).</ParamField>
<ParamField body="created_by" type="string">UUID do usuário criador.</ParamField>
<ParamField body="owner_id" type="string">UUID do proprietário (usuário ou agente).</ParamField>
<ParamField body="owner_type" type="string">Tipo do proprietário. Opções: `user`, `agent`.</ParamField>
<ParamField body="attendees" type="array">Array de objetos `{ name, email }`.</ParamField>

## Exemplos

<RequestExample>
  ```bash theme={null}
  curl -X POST "https://app.talkover.ai/api/v1/calendars/calendar-uuid-1/events" \
    -H "Authorization: Bearer talq_your_environment_token_here" \
    -H "Content-Type: application/json" \
    -d '{
      "title": "Demo with Acme",
      "start_at": "2024-01-20T15:00:00Z",
      "end_at": "2024-01-20T15:30:00Z",
      "type": "meeting",
      "attendees": [{"name":"Joana Souza","email":"joana@lojabrasil.com.br"}]
    }'
  ```
</RequestExample>

## Resposta

<ResponseExample>
  ```json theme={null}
  {
    "success": true,
    "data": {
      "id": "event-uuid-1",
      "calendar_id": "calendar-uuid-1",
      "title": "Demo with Acme",
      "start_at": "2024-01-20T15:00:00Z",
      "end_at": "2024-01-20T15:30:00Z",
      "status": "confirmed",
      "type": "meeting"
    }
  }
  ```
</ResponseExample>
