Crea un documento da una trascrizione (Fathom e simili)
curl --request POST \
--url https://businessinsider.squaddcrm.com/api/v1/transcripts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"date": "2023-11-07T05:31:56Z",
"participants": [
"<string>"
],
"source": "<string>",
"url": "<string>",
"text": "<string>",
"markdown": "<string>",
"parentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
date: '2023-11-07T05:31:56Z',
participants: ['<string>'],
source: '<string>',
url: '<string>',
text: '<string>',
markdown: '<string>',
parentId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://businessinsider.squaddcrm.com/api/v1/transcripts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://businessinsider.squaddcrm.com/api/v1/transcripts"
payload = {
"title": "<string>",
"date": "2023-11-07T05:31:56Z",
"participants": ["<string>"],
"source": "<string>",
"url": "<string>",
"text": "<string>",
"markdown": "<string>",
"parentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "folder",
"name": "<string>",
"section": "private",
"parentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"createdBy": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"updatedBy": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}Archivio
Crea un documento da una trascrizione (Fathom e simili)
In testa al documento: data, partecipanti e fonte; sotto il testo. text è testo semplice (un paragrafo per riga, per esempio «Anna: …»); markdown è Markdown. Con Idempotency-Key uguale all’id della chiamata nella fonte, la stessa trascrizione mandata due volte crea un documento solo.
POST
/
transcripts
Crea un documento da una trascrizione (Fathom e simili)
curl --request POST \
--url https://businessinsider.squaddcrm.com/api/v1/transcripts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"date": "2023-11-07T05:31:56Z",
"participants": [
"<string>"
],
"source": "<string>",
"url": "<string>",
"text": "<string>",
"markdown": "<string>",
"parentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
date: '2023-11-07T05:31:56Z',
participants: ['<string>'],
source: '<string>',
url: '<string>',
text: '<string>',
markdown: '<string>',
parentId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://businessinsider.squaddcrm.com/api/v1/transcripts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://businessinsider.squaddcrm.com/api/v1/transcripts"
payload = {
"title": "<string>",
"date": "2023-11-07T05:31:56Z",
"participants": ["<string>"],
"source": "<string>",
"url": "<string>",
"text": "<string>",
"markdown": "<string>",
"parentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "folder",
"name": "<string>",
"section": "private",
"parentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"createdBy": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"updatedBy": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}Authorizations
Headers
Body
application/json
Maximum string length:
1000000Response
Il documento della trascrizione.