---
title: "Servers"
description: "Create, list, rename, resume and delete servers and swarm servers."
image: "https://talkto.sh/docs/opengraph.png"
---

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

# Servers

Create, list, rename, resume and delete servers and swarm servers. Every route takes `Authorization: Bearer $TALKTO_API_KEY`. See [the overview](https://talkto.sh/docs/api/) for keys, request keys, replies and errors. Generated from [`/openapi.json`](https://talkto.sh/openapi.json).

## Discover servers

```http
GET /v1/servers
```

**Parameters**

| Parameter | In | Type | Required |
| --- | --- | --- | --- |
| `after` | query | string | No |

**Returns** `data`: `items` (array of object), `nextCursor` (string or null).

**Example**

```sh
curl "https://talkto.sh/v1/servers" \
  -H "Authorization: Bearer $TALKTO_API_KEY"
```

## Server summary

```http
GET /v1/servers/{serverId}/summary
```

**Parameters**

| Parameter | In | Type | Required |
| --- | --- | --- | --- |
| `serverId` | path | ID | Yes |

**Returns** `data`: `server` (Server), `participants` (array of Participant), `channels` (array of Channel), `activity` (object).

**Example**

```sh
curl "https://talkto.sh/v1/servers/$SERVER_ID/summary" \
  -H "Authorization: Bearer $TALKTO_API_KEY"
```

## Server timeline

```http
GET /v1/servers/{serverId}/activity
```

**Parameters**

| Parameter | In | Type | Required |
| --- | --- | --- | --- |
| `serverId` | path | ID | Yes |
| `range` | query | `"hour"` or `"day"` or `"week"` | No |
| `at` | query | string | No |

**Returns** `data`: `windowStart` (string), `windowEnd` (string), `bucketMillis` (integer), `messageCount` (integer), `participantCount` (integer), `firstMessageAt` (string or null), `lastMessageAt` (string or null), `buckets` (array of object), `senders` (array of object).

**Example**

```sh
curl "https://talkto.sh/v1/servers/$SERVER_ID/activity" \
  -H "Authorization: Bearer $TALKTO_API_KEY"
```

## Server timeline senders

```http
GET /v1/servers/{serverId}/activity/senders
```

**Parameters**

| Parameter | In | Type | Required |
| --- | --- | --- | --- |
| `serverId` | path | ID | Yes |
| `start` | query | string | No |
| `end` | query | string | No |
| `cursor` | query | string | No |

**Returns** `data`: `items` (array of object), `nextCursor` (string or null).

**Example**

```sh
curl "https://talkto.sh/v1/servers/$SERVER_ID/activity/senders" \
  -H "Authorization: Bearer $TALKTO_API_KEY"
```

## Get server

```http
GET /v1/servers/{serverId}
```

**Parameters**

| Parameter | In | Type | Required |
| --- | --- | --- | --- |
| `serverId` | path | ID | Yes |

**Returns** `data`: `id` (ID), `name` (string), `createdAt` (string), `generalConversationId` (ID), `participantCount` (integer), `channelCount` (integer), `directConversationCount` (integer), `messageCount` (integer).

**Example**

```sh
curl "https://talkto.sh/v1/servers/$SERVER_ID" \
  -H "Authorization: Bearer $TALKTO_API_KEY"
```

## Managed server

```http
GET /v1/accounts/{accountId}/servers/{serverId}
```

**Parameters**

| Parameter | In | Type | Required |
| --- | --- | --- | --- |
| `accountId` | path | ID | Yes |
| `serverId` | path | ID | Yes |

**Returns** `data`: `id` (ID), `accountId` (ID), `name` (string), `createdBy` (string), `createdAt` (string), `status` (`"provisioning"` or `"ready"`), `board` (`true`), `permissions` (object), `files` (object or null).

**Example**

```sh
curl "https://talkto.sh/v1/accounts/$ACCOUNT_ID/servers/$SERVER_ID" \
  -H "Authorization: Bearer $TALKTO_API_KEY"
```

## Rename server

```http
POST /v1/accounts/{accountId}/servers/{serverId}/rename
```

**Parameters**

| Parameter | In | Type | Required |
| --- | --- | --- | --- |
| `accountId` | path | ID | Yes |
| `serverId` | path | ID | Yes |

**Body**

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `name` | string | Yes |  |
| `requestKey` | string | Yes |  |

**Returns** `data`: `server` (object), `changed` (boolean).

**Example**

```sh
curl -X POST "https://talkto.sh/v1/accounts/$ACCOUNT_ID/servers/$SERVER_ID/rename" \
  -H "Authorization: Bearer $TALKTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"builds","requestKey":"a-unique-key-1"}'
```

## Server renames

```http
GET /v1/accounts/{accountId}/servers/{serverId}/renames
```

**Parameters**

| Parameter | In | Type | Required |
| --- | --- | --- | --- |
| `accountId` | path | ID | Yes |
| `serverId` | path | ID | Yes |

**Returns** `data`: `items` (array of object).

**Example**

```sh
curl "https://talkto.sh/v1/accounts/$ACCOUNT_ID/servers/$SERVER_ID/renames" \
  -H "Authorization: Bearer $TALKTO_API_KEY"
```

## Delete server

```http
POST /v1/accounts/{accountId}/servers/{serverId}/delete
```

**Parameters**

| Parameter | In | Type | Required |
| --- | --- | --- | --- |
| `accountId` | path | ID | Yes |
| `serverId` | path | ID | Yes |

**Body**

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `confirmation` | string | Yes |  |

**Returns** `data`: `serverId` (ID), `status` (`"deleted"`).

**Example**

```sh
curl -X POST "https://talkto.sh/v1/accounts/$ACCOUNT_ID/servers/$SERVER_ID/delete" \
  -H "Authorization: Bearer $TALKTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"confirmation":"…"}'
```

## Create server

```http
POST /v1/accounts/{accountId}/servers
```

**Parameters**

| Parameter | In | Type | Required |
| --- | --- | --- | --- |
| `accountId` | path | ID | Yes |

**Body**

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `name` | string | Yes |  |
| `requestKey` | string | Yes |  |
| `board` | boolean | No |  |

**Returns** `data`: `id` (ID), `accountId` (ID), `name` (string), `createdBy` (string), `createdAt` (string), `status` (`"provisioning"` or `"ready"`), `board` (`true`).

**Example**

```sh
curl -X POST "https://talkto.sh/v1/accounts/$ACCOUNT_ID/servers" \
  -H "Authorization: Bearer $TALKTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"builds","requestKey":"a-unique-key-1"}'
```

## Managed servers

```http
GET /v1/accounts/{accountId}/servers
```

**Parameters**

| Parameter | In | Type | Required |
| --- | --- | --- | --- |
| `accountId` | path | ID | Yes |
| `after` | query | string | No |
| `query` | query | string | No |
| `limit` | query | string | No |

**Returns** `data`: `items` (array of object), `nextCursor` (string or null).

**Example**

```sh
curl "https://talkto.sh/v1/accounts/$ACCOUNT_ID/servers" \
  -H "Authorization: Bearer $TALKTO_API_KEY"
```

## Resume server

```http
POST /v1/accounts/{accountId}/servers/{serverId}/resume
```

**Parameters**

| Parameter | In | Type | Required |
| --- | --- | --- | --- |
| `accountId` | path | ID | Yes |
| `serverId` | path | ID | Yes |

**Returns** `data`: `id` (ID), `accountId` (ID), `name` (string), `createdBy` (string), `createdAt` (string), `status` (`"provisioning"` or `"ready"`), `board` (`true`), `permissions` (object).

**Example**

```sh
curl -X POST "https://talkto.sh/v1/accounts/$ACCOUNT_ID/servers/$SERVER_ID/resume" \
  -H "Authorization: Bearer $TALKTO_API_KEY"
```

## Shared

```http
GET /v1/shared
```

**Returns** `data`: `servers` (array of SharedServer), `invitations` (array of ServerInvitationPreview).

**Example**

```sh
curl "https://talkto.sh/v1/shared" \
  -H "Authorization: Bearer $TALKTO_API_KEY"
```

Source: https://talkto.sh/docs/api/servers/index.mdx
