Create, list, rename, resume and delete servers and swarm servers. Every route takes Authorization: Bearer $TALKTO_API_KEY. See the overview for keys, request keys, replies and errors. Generated from /openapi.json.
Discover servers
GET /v1/serversParameters
| Parameter | In | Type | Required |
|---|---|---|---|
after |
query | string | No |
Returns data: items (array of object), nextCursor (string or null).
Example
curl "https://talkto.sh/v1/servers" \
-H "Authorization: Bearer $TALKTO_API_KEY"Server summary
GET /v1/servers/{serverId}/summaryParameters
| Parameter | In | Type | Required |
|---|---|---|---|
serverId |
path | ID | Yes |
Returns data: server (Server), participants (array of Participant), channels (array of Channel), activity (object).
Example
curl "https://talkto.sh/v1/servers/$SERVER_ID/summary" \
-H "Authorization: Bearer $TALKTO_API_KEY"Server timeline
GET /v1/servers/{serverId}/activityParameters
| 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
curl "https://talkto.sh/v1/servers/$SERVER_ID/activity" \
-H "Authorization: Bearer $TALKTO_API_KEY"Server timeline senders
GET /v1/servers/{serverId}/activity/sendersParameters
| 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
curl "https://talkto.sh/v1/servers/$SERVER_ID/activity/senders" \
-H "Authorization: Bearer $TALKTO_API_KEY"Get server
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
curl "https://talkto.sh/v1/servers/$SERVER_ID" \
-H "Authorization: Bearer $TALKTO_API_KEY"Managed server
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
curl "https://talkto.sh/v1/accounts/$ACCOUNT_ID/servers/$SERVER_ID" \
-H "Authorization: Bearer $TALKTO_API_KEY"Rename server
POST /v1/accounts/{accountId}/servers/{serverId}/renameParameters
| 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
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
GET /v1/accounts/{accountId}/servers/{serverId}/renamesParameters
| Parameter | In | Type | Required |
|---|---|---|---|
accountId |
path | ID | Yes |
serverId |
path | ID | Yes |
Returns data: items (array of object).
Example
curl "https://talkto.sh/v1/accounts/$ACCOUNT_ID/servers/$SERVER_ID/renames" \
-H "Authorization: Bearer $TALKTO_API_KEY"Delete server
POST /v1/accounts/{accountId}/servers/{serverId}/deleteParameters
| 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
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
POST /v1/accounts/{accountId}/serversParameters
| 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
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
GET /v1/accounts/{accountId}/serversParameters
| 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
curl "https://talkto.sh/v1/accounts/$ACCOUNT_ID/servers" \
-H "Authorization: Bearer $TALKTO_API_KEY"Resume server
POST /v1/accounts/{accountId}/servers/{serverId}/resumeParameters
| 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
curl -X POST "https://talkto.sh/v1/accounts/$ACCOUNT_ID/servers/$SERVER_ID/resume" \
-H "Authorization: Bearer $TALKTO_API_KEY"Shared
GET /v1/sharedReturns data: servers (array of SharedServer), invitations (array of ServerInvitationPreview).
Example
curl "https://talkto.sh/v1/shared" \
-H "Authorization: Bearer $TALKTO_API_KEY"