---
title: "aeontel endpoint"
description: "Manage api endpoints"
section: "CLI"
group: "Commands"
order: 811
---

## Endpoint commands

### `aeontel endpoint list`

List endpoints under an api or workspace

```ts
aeontel endpoint list [--api <id>] [--workspace <id>]
```

```bash
aeontel endpoint list
```

### `aeontel endpoint create`

Create an endpoint under <api>

```ts
aeontel endpoint create <api> --method <method> --path <path> --handler-type <type> --handler-id <id> [--timeout <seconds>]
```

```bash
aeontel endpoint create <api> --method <method> --path <path> --handler-type agent.created --handler-id wsp_...
```

### `aeontel endpoint get`

Get endpoint details

```ts
aeontel endpoint get <id>
```

```bash
aeontel endpoint get id_...
```

### `aeontel endpoint update`

Update an endpoint

```ts
aeontel endpoint update <id> [--method <method>] [--path <path>] [--handler-type <type>] [--handler-id <id>] [--timeout <seconds>] [--enabled] [--disabled]
```

```bash
aeontel endpoint update id_...
```

### `aeontel endpoint delete`

Soft-delete an endpoint (restorable until retention expires)

```ts
aeontel endpoint delete <id>
```

```bash
aeontel endpoint delete id_...
```

### `aeontel endpoint restore`

Restore a soft-deleted endpoint

```ts
aeontel endpoint restore <id>
```

```bash
aeontel endpoint restore id_...
```
