Get the message draft
curl --request GET \
--url https://workspace.passionfroot.me/api/v1/conversations/{conversationId}/draft \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://workspace.passionfroot.me/api/v1/conversations/{conversationId}/draft', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://workspace.passionfroot.me/api/v1/conversations/{conversationId}/draft"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"conversationId": "<string>",
"text": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"url": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "Invalid or expired API key"
}
}{
"error": {
"code": "MISSING_SCOPE",
"message": "API key missing required scope: write:conversations"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Conversation not found"
}
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "This API key is over its rate limit. Wait for Retry-After before sending more.",
"details": {
"limit": 10,
"windowSeconds": 1
}
}
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "SERVICE_UNAVAILABLE",
"message": "API key verification is temporarily unavailable, retry shortly"
}
}Conversations
Get the message draft
Returns the unsent message that the member who created the API key keeps in this conversation, or data null when there is none. Check it before a save, because a save replaces the draft.
GET
/
conversations
/
{conversationId}
/
draft
Get the message draft
curl --request GET \
--url https://workspace.passionfroot.me/api/v1/conversations/{conversationId}/draft \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://workspace.passionfroot.me/api/v1/conversations/{conversationId}/draft', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://workspace.passionfroot.me/api/v1/conversations/{conversationId}/draft"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"conversationId": "<string>",
"text": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"url": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "Invalid or expired API key"
}
}{
"error": {
"code": "MISSING_SCOPE",
"message": "API key missing required scope: write:conversations"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Conversation not found"
}
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "This API key is over its rate limit. Wait for Retry-After before sending more.",
"details": {
"limit": 10,
"windowSeconds": 1
}
}
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "SERVICE_UNAVAILABLE",
"message": "API key verification is temporarily unavailable, retry shortly"
}
}
