Chat
62 Bereiche, 612 Operationen. Basis-URL https://production.cashwerk.io, Anmeldung mit X-API-Key.
GET/api/v1/chat/conversationsList chat conversations
- Pfad
/api/v1/chat/conversations- Anmeldung
X-API-Keyim Header- Server
https://production.cashwerk.io· Sandboxhttps://cloud-staging.cashwerk.io
curl https://production.cashwerk.io/api/v1/chat/conversations \
-H "X-API-Key: $CASHWERK_API_KEY"const res = await fetch("https://production.cashwerk.io/api/v1/chat/conversations", {
method: "GET",
headers: { "X-API-Key": process.env.CASHWERK_API_KEY }
});
const data = await res.json();POST/api/v1/chat/conversations/directCreate a direct (1:1) conversation
- Pfad
/api/v1/chat/conversations/direct- Anmeldung
X-API-Keyim Header- Server
https://production.cashwerk.io· Sandboxhttps://cloud-staging.cashwerk.io
curl https://production.cashwerk.io/api/v1/chat/conversations/direct \
-X POST \
-H "X-API-Key: $CASHWERK_API_KEY" \
-H "Content-Type: application/json" \
-d '{ … }'const res = await fetch("https://production.cashwerk.io/api/v1/chat/conversations/direct", {
method: "POST",
headers: { "X-API-Key": process.env.CASHWERK_API_KEY }
});
const data = await res.json();POST/api/v1/chat/conversations/groupCreate a group conversation
- Pfad
/api/v1/chat/conversations/group- Anmeldung
X-API-Keyim Header- Server
https://production.cashwerk.io· Sandboxhttps://cloud-staging.cashwerk.io
curl https://production.cashwerk.io/api/v1/chat/conversations/group \
-X POST \
-H "X-API-Key: $CASHWERK_API_KEY" \
-H "Content-Type: application/json" \
-d '{ … }'const res = await fetch("https://production.cashwerk.io/api/v1/chat/conversations/group", {
method: "POST",
headers: { "X-API-Key": process.env.CASHWERK_API_KEY }
});
const data = await res.json();POST/api/v1/chat/conversations/projectOpen (and create on first use) a project conversation
- Pfad
/api/v1/chat/conversations/project- Anmeldung
X-API-Keyim Header- Server
https://production.cashwerk.io· Sandboxhttps://cloud-staging.cashwerk.io
curl https://production.cashwerk.io/api/v1/chat/conversations/project \
-X POST \
-H "X-API-Key: $CASHWERK_API_KEY" \
-H "Content-Type: application/json" \
-d '{ … }'const res = await fetch("https://production.cashwerk.io/api/v1/chat/conversations/project", {
method: "POST",
headers: { "X-API-Key": process.env.CASHWERK_API_KEY }
});
const data = await res.json();DELETE/api/v1/chat/conversations/{id}Delete a conversation
- Pfad
/api/v1/chat/conversations/{id}- Anmeldung
X-API-Keyim Header- Server
https://production.cashwerk.io· Sandboxhttps://cloud-staging.cashwerk.io
curl https://production.cashwerk.io/api/v1/chat/conversations/{id} \
-X DELETE \
-H "X-API-Key: $CASHWERK_API_KEY"const res = await fetch("https://production.cashwerk.io/api/v1/chat/conversations/{id}", {
method: "DELETE",
headers: { "X-API-Key": process.env.CASHWERK_API_KEY }
});
const data = await res.json();PATCH/api/v1/chat/conversations/{id}Update conversation (rename group)
- Pfad
/api/v1/chat/conversations/{id}- Anmeldung
X-API-Keyim Header- Server
https://production.cashwerk.io· Sandboxhttps://cloud-staging.cashwerk.io
curl https://production.cashwerk.io/api/v1/chat/conversations/{id} \
-X PATCH \
-H "X-API-Key: $CASHWERK_API_KEY" \
-H "Content-Type: application/json" \
-d '{ … }'const res = await fetch("https://production.cashwerk.io/api/v1/chat/conversations/{id}", {
method: "PATCH",
headers: { "X-API-Key": process.env.CASHWERK_API_KEY }
});
const data = await res.json();PATCH/api/v1/chat/conversations/{id}/archiveArchive a conversation
- Pfad
/api/v1/chat/conversations/{id}/archive- Anmeldung
X-API-Keyim Header- Server
https://production.cashwerk.io· Sandboxhttps://cloud-staging.cashwerk.io
curl https://production.cashwerk.io/api/v1/chat/conversations/{id}/archive \
-X PATCH \
-H "X-API-Key: $CASHWERK_API_KEY" \
-H "Content-Type: application/json" \
-d '{ … }'const res = await fetch("https://production.cashwerk.io/api/v1/chat/conversations/{id}/archive", {
method: "PATCH",
headers: { "X-API-Key": process.env.CASHWERK_API_KEY }
});
const data = await res.json();GET/api/v1/chat/conversations/{id}/documentsGet document attachments in a conversation
- Pfad
/api/v1/chat/conversations/{id}/documents- Anmeldung
X-API-Keyim Header- Server
https://production.cashwerk.io· Sandboxhttps://cloud-staging.cashwerk.io
curl https://production.cashwerk.io/api/v1/chat/conversations/{id}/documents \
-H "X-API-Key: $CASHWERK_API_KEY"const res = await fetch("https://production.cashwerk.io/api/v1/chat/conversations/{id}/documents", {
method: "GET",
headers: { "X-API-Key": process.env.CASHWERK_API_KEY }
});
const data = await res.json();GET/api/v1/chat/conversations/{id}/linksGet shared links in a conversation
- Pfad
/api/v1/chat/conversations/{id}/links- Anmeldung
X-API-Keyim Header- Server
https://production.cashwerk.io· Sandboxhttps://cloud-staging.cashwerk.io
curl https://production.cashwerk.io/api/v1/chat/conversations/{id}/links \
-H "X-API-Key: $CASHWERK_API_KEY"const res = await fetch("https://production.cashwerk.io/api/v1/chat/conversations/{id}/links", {
method: "GET",
headers: { "X-API-Key": process.env.CASHWERK_API_KEY }
});
const data = await res.json();GET/api/v1/chat/conversations/{id}/mediaGet media attachments in a conversation
- Pfad
/api/v1/chat/conversations/{id}/media- Anmeldung
X-API-Keyim Header- Server
https://production.cashwerk.io· Sandboxhttps://cloud-staging.cashwerk.io
curl https://production.cashwerk.io/api/v1/chat/conversations/{id}/media \
-H "X-API-Key: $CASHWERK_API_KEY"const res = await fetch("https://production.cashwerk.io/api/v1/chat/conversations/{id}/media", {
method: "GET",
headers: { "X-API-Key": process.env.CASHWERK_API_KEY }
});
const data = await res.json();GET/api/v1/chat/conversations/{id}/messagesGet messages in a conversation
- Pfad
/api/v1/chat/conversations/{id}/messages- Anmeldung
X-API-Keyim Header- Server
https://production.cashwerk.io· Sandboxhttps://cloud-staging.cashwerk.io
curl https://production.cashwerk.io/api/v1/chat/conversations/{id}/messages \
-H "X-API-Key: $CASHWERK_API_KEY"const res = await fetch("https://production.cashwerk.io/api/v1/chat/conversations/{id}/messages", {
method: "GET",
headers: { "X-API-Key": process.env.CASHWERK_API_KEY }
});
const data = await res.json();POST/api/v1/chat/conversations/{id}/messagesSend a message to a conversation
- Pfad
/api/v1/chat/conversations/{id}/messages- Anmeldung
X-API-Keyim Header- Server
https://production.cashwerk.io· Sandboxhttps://cloud-staging.cashwerk.io
curl https://production.cashwerk.io/api/v1/chat/conversations/{id}/messages \
-X POST \
-H "X-API-Key: $CASHWERK_API_KEY" \
-H "Content-Type: application/json" \
-d '{ … }'const res = await fetch("https://production.cashwerk.io/api/v1/chat/conversations/{id}/messages", {
method: "POST",
headers: { "X-API-Key": process.env.CASHWERK_API_KEY }
});
const data = await res.json();POST/api/v1/chat/conversations/{id}/participantsAdd a participant to a group conversation
- Pfad
/api/v1/chat/conversations/{id}/participants- Anmeldung
X-API-Keyim Header- Server
https://production.cashwerk.io· Sandboxhttps://cloud-staging.cashwerk.io
curl https://production.cashwerk.io/api/v1/chat/conversations/{id}/participants \
-X POST \
-H "X-API-Key: $CASHWERK_API_KEY" \
-H "Content-Type: application/json" \
-d '{ … }'const res = await fetch("https://production.cashwerk.io/api/v1/chat/conversations/{id}/participants", {
method: "POST",
headers: { "X-API-Key": process.env.CASHWERK_API_KEY }
});
const data = await res.json();DELETE/api/v1/chat/conversations/{id}/participants/{userId}Remove a participant from a group conversation
- Pfad
/api/v1/chat/conversations/{id}/participants/{userId}- Anmeldung
X-API-Keyim Header- Server
https://production.cashwerk.io· Sandboxhttps://cloud-staging.cashwerk.io
curl https://production.cashwerk.io/api/v1/chat/conversations/{id}/participants/{userId} \
-X DELETE \
-H "X-API-Key: $CASHWERK_API_KEY"const res = await fetch("https://production.cashwerk.io/api/v1/chat/conversations/{id}/participants/{userId}", {
method: "DELETE",
headers: { "X-API-Key": process.env.CASHWERK_API_KEY }
});
const data = await res.json();POST/api/v1/chat/conversations/{id}/readMark messages in a conversation as read
- Pfad
/api/v1/chat/conversations/{id}/read- Anmeldung
X-API-Keyim Header- Server
https://production.cashwerk.io· Sandboxhttps://cloud-staging.cashwerk.io
curl https://production.cashwerk.io/api/v1/chat/conversations/{id}/read \
-X POST \
-H "X-API-Key: $CASHWERK_API_KEY" \
-H "Content-Type: application/json" \
-d '{ … }'const res = await fetch("https://production.cashwerk.io/api/v1/chat/conversations/{id}/read", {
method: "POST",
headers: { "X-API-Key": process.env.CASHWERK_API_KEY }
});
const data = await res.json();GET/api/v1/chat/conversations/{id}/searchSearch messages in a conversation
- Pfad
/api/v1/chat/conversations/{id}/search- Anmeldung
X-API-Keyim Header- Server
https://production.cashwerk.io· Sandboxhttps://cloud-staging.cashwerk.io
curl https://production.cashwerk.io/api/v1/chat/conversations/{id}/search \
-H "X-API-Key: $CASHWERK_API_KEY"const res = await fetch("https://production.cashwerk.io/api/v1/chat/conversations/{id}/search", {
method: "GET",
headers: { "X-API-Key": process.env.CASHWERK_API_KEY }
});
const data = await res.json();DELETE/api/v1/chat/messages/{id}Delete a chat message
- Pfad
/api/v1/chat/messages/{id}- Anmeldung
X-API-Keyim Header- Server
https://production.cashwerk.io· Sandboxhttps://cloud-staging.cashwerk.io
curl https://production.cashwerk.io/api/v1/chat/messages/{id} \
-X DELETE \
-H "X-API-Key: $CASHWERK_API_KEY"const res = await fetch("https://production.cashwerk.io/api/v1/chat/messages/{id}", {
method: "DELETE",
headers: { "X-API-Key": process.env.CASHWERK_API_KEY }
});
const data = await res.json();PATCH/api/v1/chat/messages/{id}Edit a chat message
- Pfad
/api/v1/chat/messages/{id}- Anmeldung
X-API-Keyim Header- Server
https://production.cashwerk.io· Sandboxhttps://cloud-staging.cashwerk.io
curl https://production.cashwerk.io/api/v1/chat/messages/{id} \
-X PATCH \
-H "X-API-Key: $CASHWERK_API_KEY" \
-H "Content-Type: application/json" \
-d '{ … }'const res = await fetch("https://production.cashwerk.io/api/v1/chat/messages/{id}", {
method: "PATCH",
headers: { "X-API-Key": process.env.CASHWERK_API_KEY }
});
const data = await res.json();GET/api/v1/chat/messages/{id}/infoGet message info (read receipts)
- Pfad
/api/v1/chat/messages/{id}/info- Anmeldung
X-API-Keyim Header- Server
https://production.cashwerk.io· Sandboxhttps://cloud-staging.cashwerk.io
curl https://production.cashwerk.io/api/v1/chat/messages/{id}/info \
-H "X-API-Key: $CASHWERK_API_KEY"const res = await fetch("https://production.cashwerk.io/api/v1/chat/messages/{id}/info", {
method: "GET",
headers: { "X-API-Key": process.env.CASHWERK_API_KEY }
});
const data = await res.json();GET/api/v1/chat/unread-countsGet unread message counts per conversation
- Pfad
/api/v1/chat/unread-counts- Anmeldung
X-API-Keyim Header- Server
https://production.cashwerk.io· Sandboxhttps://cloud-staging.cashwerk.io
curl https://production.cashwerk.io/api/v1/chat/unread-counts \
-H "X-API-Key: $CASHWERK_API_KEY"const res = await fetch("https://production.cashwerk.io/api/v1/chat/unread-counts", {
method: "GET",
headers: { "X-API-Key": process.env.CASHWERK_API_KEY }
});
const data = await res.json();