Import Conversation
curl --request POST \
--url https://api.attention.tech/v2/conversations/import \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"mediaURL": "https://storage.example.com/recordings/call-abc123.mp4",
"userID": "user-uuid-123",
"conversationTitle": "Q1 Deal Review - Acme Corp",
"conversationStartedAt": "2024-03-18T10:30:00Z",
"applicationName": "zoom",
"applicationExternalID": "zoom-meeting-987654",
"opportunityID": "opp-uuid-456",
"linkedCrmRecords": [
{
"id": "001ABC123",
"code": "Account"
}
],
"externalMetadata": {
"participants": [
{
"email": "jane@example.com",
"name": "Jane Smith",
"accessType": "Internal",
"organizer": true
},
{
"email": "john@customer.com",
"name": "John Doe",
"accessType": "External",
"organizer": false
}
],
"extra": {
"source": "zoom",
"meetingDuration": 1800
}
},
"transcriptionSettings": {
"gladia": {
"enableDiarization": true
}
},
"headers": [
{
"key": "Authorization",
"value": "Bearer token123"
}
],
"skipCRMFieldsCalculation": false,
"skipOpportunitiesExport": false,
"skipScorecardCalculation": false
}
'import requests
url = "https://api.attention.tech/v2/conversations/import"
payload = {
"mediaURL": "https://storage.example.com/recordings/call-abc123.mp4",
"userID": "user-uuid-123",
"conversationTitle": "Q1 Deal Review - Acme Corp",
"conversationStartedAt": "2024-03-18T10:30:00Z",
"applicationName": "zoom",
"applicationExternalID": "zoom-meeting-987654",
"opportunityID": "opp-uuid-456",
"linkedCrmRecords": [
{
"id": "001ABC123",
"code": "Account"
}
],
"externalMetadata": {
"participants": [
{
"email": "jane@example.com",
"name": "Jane Smith",
"accessType": "Internal",
"organizer": True
},
{
"email": "john@customer.com",
"name": "John Doe",
"accessType": "External",
"organizer": False
}
],
"extra": {
"source": "zoom",
"meetingDuration": 1800
}
},
"transcriptionSettings": { "gladia": { "enableDiarization": True } },
"headers": [
{
"key": "Authorization",
"value": "Bearer token123"
}
],
"skipCRMFieldsCalculation": False,
"skipOpportunitiesExport": False,
"skipScorecardCalculation": False
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
mediaURL: 'https://storage.example.com/recordings/call-abc123.mp4',
userID: 'user-uuid-123',
conversationTitle: 'Q1 Deal Review - Acme Corp',
conversationStartedAt: '2024-03-18T10:30:00Z',
applicationName: 'zoom',
applicationExternalID: 'zoom-meeting-987654',
opportunityID: 'opp-uuid-456',
linkedCrmRecords: [{id: '001ABC123', code: 'Account'}],
externalMetadata: {
participants: [
{
email: 'jane@example.com',
name: 'Jane Smith',
accessType: 'Internal',
organizer: true
},
{
email: 'john@customer.com',
name: 'John Doe',
accessType: 'External',
organizer: false
}
],
extra: {source: 'zoom', meetingDuration: 1800}
},
transcriptionSettings: {gladia: {enableDiarization: true}},
headers: [{key: 'Authorization', value: 'Bearer token123'}],
skipCRMFieldsCalculation: false,
skipOpportunitiesExport: false,
skipScorecardCalculation: false
})
};
fetch('https://api.attention.tech/v2/conversations/import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.attention.tech/v2/conversations/import",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'mediaURL' => 'https://storage.example.com/recordings/call-abc123.mp4',
'userID' => 'user-uuid-123',
'conversationTitle' => 'Q1 Deal Review - Acme Corp',
'conversationStartedAt' => '2024-03-18T10:30:00Z',
'applicationName' => 'zoom',
'applicationExternalID' => 'zoom-meeting-987654',
'opportunityID' => 'opp-uuid-456',
'linkedCrmRecords' => [
[
'id' => '001ABC123',
'code' => 'Account'
]
],
'externalMetadata' => [
'participants' => [
[
'email' => 'jane@example.com',
'name' => 'Jane Smith',
'accessType' => 'Internal',
'organizer' => true
],
[
'email' => 'john@customer.com',
'name' => 'John Doe',
'accessType' => 'External',
'organizer' => false
]
],
'extra' => [
'source' => 'zoom',
'meetingDuration' => 1800
]
],
'transcriptionSettings' => [
'gladia' => [
'enableDiarization' => true
]
],
'headers' => [
[
'key' => 'Authorization',
'value' => 'Bearer token123'
]
],
'skipCRMFieldsCalculation' => false,
'skipOpportunitiesExport' => false,
'skipScorecardCalculation' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.attention.tech/v2/conversations/import"
payload := strings.NewReader("{\n \"mediaURL\": \"https://storage.example.com/recordings/call-abc123.mp4\",\n \"userID\": \"user-uuid-123\",\n \"conversationTitle\": \"Q1 Deal Review - Acme Corp\",\n \"conversationStartedAt\": \"2024-03-18T10:30:00Z\",\n \"applicationName\": \"zoom\",\n \"applicationExternalID\": \"zoom-meeting-987654\",\n \"opportunityID\": \"opp-uuid-456\",\n \"linkedCrmRecords\": [\n {\n \"id\": \"001ABC123\",\n \"code\": \"Account\"\n }\n ],\n \"externalMetadata\": {\n \"participants\": [\n {\n \"email\": \"jane@example.com\",\n \"name\": \"Jane Smith\",\n \"accessType\": \"Internal\",\n \"organizer\": true\n },\n {\n \"email\": \"john@customer.com\",\n \"name\": \"John Doe\",\n \"accessType\": \"External\",\n \"organizer\": false\n }\n ],\n \"extra\": {\n \"source\": \"zoom\",\n \"meetingDuration\": 1800\n }\n },\n \"transcriptionSettings\": {\n \"gladia\": {\n \"enableDiarization\": true\n }\n },\n \"headers\": [\n {\n \"key\": \"Authorization\",\n \"value\": \"Bearer token123\"\n }\n ],\n \"skipCRMFieldsCalculation\": false,\n \"skipOpportunitiesExport\": false,\n \"skipScorecardCalculation\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.attention.tech/v2/conversations/import")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"mediaURL\": \"https://storage.example.com/recordings/call-abc123.mp4\",\n \"userID\": \"user-uuid-123\",\n \"conversationTitle\": \"Q1 Deal Review - Acme Corp\",\n \"conversationStartedAt\": \"2024-03-18T10:30:00Z\",\n \"applicationName\": \"zoom\",\n \"applicationExternalID\": \"zoom-meeting-987654\",\n \"opportunityID\": \"opp-uuid-456\",\n \"linkedCrmRecords\": [\n {\n \"id\": \"001ABC123\",\n \"code\": \"Account\"\n }\n ],\n \"externalMetadata\": {\n \"participants\": [\n {\n \"email\": \"jane@example.com\",\n \"name\": \"Jane Smith\",\n \"accessType\": \"Internal\",\n \"organizer\": true\n },\n {\n \"email\": \"john@customer.com\",\n \"name\": \"John Doe\",\n \"accessType\": \"External\",\n \"organizer\": false\n }\n ],\n \"extra\": {\n \"source\": \"zoom\",\n \"meetingDuration\": 1800\n }\n },\n \"transcriptionSettings\": {\n \"gladia\": {\n \"enableDiarization\": true\n }\n },\n \"headers\": [\n {\n \"key\": \"Authorization\",\n \"value\": \"Bearer token123\"\n }\n ],\n \"skipCRMFieldsCalculation\": false,\n \"skipOpportunitiesExport\": false,\n \"skipScorecardCalculation\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.attention.tech/v2/conversations/import")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"mediaURL\": \"https://storage.example.com/recordings/call-abc123.mp4\",\n \"userID\": \"user-uuid-123\",\n \"conversationTitle\": \"Q1 Deal Review - Acme Corp\",\n \"conversationStartedAt\": \"2024-03-18T10:30:00Z\",\n \"applicationName\": \"zoom\",\n \"applicationExternalID\": \"zoom-meeting-987654\",\n \"opportunityID\": \"opp-uuid-456\",\n \"linkedCrmRecords\": [\n {\n \"id\": \"001ABC123\",\n \"code\": \"Account\"\n }\n ],\n \"externalMetadata\": {\n \"participants\": [\n {\n \"email\": \"jane@example.com\",\n \"name\": \"Jane Smith\",\n \"accessType\": \"Internal\",\n \"organizer\": true\n },\n {\n \"email\": \"john@customer.com\",\n \"name\": \"John Doe\",\n \"accessType\": \"External\",\n \"organizer\": false\n }\n ],\n \"extra\": {\n \"source\": \"zoom\",\n \"meetingDuration\": 1800\n }\n },\n \"transcriptionSettings\": {\n \"gladia\": {\n \"enableDiarization\": true\n }\n },\n \"headers\": [\n {\n \"key\": \"Authorization\",\n \"value\": \"Bearer token123\"\n }\n ],\n \"skipCRMFieldsCalculation\": false,\n \"skipOpportunitiesExport\": false,\n \"skipScorecardCalculation\": false\n}"
response = http.request(request)
puts response.read_body{
"uuid": "conv-uuid-new-123"
}{
"id": "not_found_error",
"status": "404",
"code": "404",
"title": "Not Found Error",
"detail": "The requested resource was not found",
"source": {
"pointer": "/data/attributes/id"
}
}{
"id": "not_found_error",
"status": "404",
"code": "404",
"title": "Not Found Error",
"detail": "The requested resource was not found",
"source": {
"pointer": "/data/attributes/id"
}
}{
"id": "not_found_error",
"status": "404",
"code": "404",
"title": "Not Found Error",
"detail": "The requested resource was not found",
"source": {
"pointer": "/data/attributes/id"
}
}{
"id": "not_found_error",
"status": "404",
"code": "404",
"title": "Not Found Error",
"detail": "The requested resource was not found",
"source": {
"pointer": "/data/attributes/id"
}
}Conversation
Import Conversation
Import a conversation from a media file. This endpoint creates a new conversation from an external source (e.g., Gong, Salesforce) and processes it through the Attention platform’s transcription and analysis pipeline.
POST
/
conversations
/
import
Import Conversation
curl --request POST \
--url https://api.attention.tech/v2/conversations/import \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"mediaURL": "https://storage.example.com/recordings/call-abc123.mp4",
"userID": "user-uuid-123",
"conversationTitle": "Q1 Deal Review - Acme Corp",
"conversationStartedAt": "2024-03-18T10:30:00Z",
"applicationName": "zoom",
"applicationExternalID": "zoom-meeting-987654",
"opportunityID": "opp-uuid-456",
"linkedCrmRecords": [
{
"id": "001ABC123",
"code": "Account"
}
],
"externalMetadata": {
"participants": [
{
"email": "jane@example.com",
"name": "Jane Smith",
"accessType": "Internal",
"organizer": true
},
{
"email": "john@customer.com",
"name": "John Doe",
"accessType": "External",
"organizer": false
}
],
"extra": {
"source": "zoom",
"meetingDuration": 1800
}
},
"transcriptionSettings": {
"gladia": {
"enableDiarization": true
}
},
"headers": [
{
"key": "Authorization",
"value": "Bearer token123"
}
],
"skipCRMFieldsCalculation": false,
"skipOpportunitiesExport": false,
"skipScorecardCalculation": false
}
'import requests
url = "https://api.attention.tech/v2/conversations/import"
payload = {
"mediaURL": "https://storage.example.com/recordings/call-abc123.mp4",
"userID": "user-uuid-123",
"conversationTitle": "Q1 Deal Review - Acme Corp",
"conversationStartedAt": "2024-03-18T10:30:00Z",
"applicationName": "zoom",
"applicationExternalID": "zoom-meeting-987654",
"opportunityID": "opp-uuid-456",
"linkedCrmRecords": [
{
"id": "001ABC123",
"code": "Account"
}
],
"externalMetadata": {
"participants": [
{
"email": "jane@example.com",
"name": "Jane Smith",
"accessType": "Internal",
"organizer": True
},
{
"email": "john@customer.com",
"name": "John Doe",
"accessType": "External",
"organizer": False
}
],
"extra": {
"source": "zoom",
"meetingDuration": 1800
}
},
"transcriptionSettings": { "gladia": { "enableDiarization": True } },
"headers": [
{
"key": "Authorization",
"value": "Bearer token123"
}
],
"skipCRMFieldsCalculation": False,
"skipOpportunitiesExport": False,
"skipScorecardCalculation": False
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
mediaURL: 'https://storage.example.com/recordings/call-abc123.mp4',
userID: 'user-uuid-123',
conversationTitle: 'Q1 Deal Review - Acme Corp',
conversationStartedAt: '2024-03-18T10:30:00Z',
applicationName: 'zoom',
applicationExternalID: 'zoom-meeting-987654',
opportunityID: 'opp-uuid-456',
linkedCrmRecords: [{id: '001ABC123', code: 'Account'}],
externalMetadata: {
participants: [
{
email: 'jane@example.com',
name: 'Jane Smith',
accessType: 'Internal',
organizer: true
},
{
email: 'john@customer.com',
name: 'John Doe',
accessType: 'External',
organizer: false
}
],
extra: {source: 'zoom', meetingDuration: 1800}
},
transcriptionSettings: {gladia: {enableDiarization: true}},
headers: [{key: 'Authorization', value: 'Bearer token123'}],
skipCRMFieldsCalculation: false,
skipOpportunitiesExport: false,
skipScorecardCalculation: false
})
};
fetch('https://api.attention.tech/v2/conversations/import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.attention.tech/v2/conversations/import",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'mediaURL' => 'https://storage.example.com/recordings/call-abc123.mp4',
'userID' => 'user-uuid-123',
'conversationTitle' => 'Q1 Deal Review - Acme Corp',
'conversationStartedAt' => '2024-03-18T10:30:00Z',
'applicationName' => 'zoom',
'applicationExternalID' => 'zoom-meeting-987654',
'opportunityID' => 'opp-uuid-456',
'linkedCrmRecords' => [
[
'id' => '001ABC123',
'code' => 'Account'
]
],
'externalMetadata' => [
'participants' => [
[
'email' => 'jane@example.com',
'name' => 'Jane Smith',
'accessType' => 'Internal',
'organizer' => true
],
[
'email' => 'john@customer.com',
'name' => 'John Doe',
'accessType' => 'External',
'organizer' => false
]
],
'extra' => [
'source' => 'zoom',
'meetingDuration' => 1800
]
],
'transcriptionSettings' => [
'gladia' => [
'enableDiarization' => true
]
],
'headers' => [
[
'key' => 'Authorization',
'value' => 'Bearer token123'
]
],
'skipCRMFieldsCalculation' => false,
'skipOpportunitiesExport' => false,
'skipScorecardCalculation' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.attention.tech/v2/conversations/import"
payload := strings.NewReader("{\n \"mediaURL\": \"https://storage.example.com/recordings/call-abc123.mp4\",\n \"userID\": \"user-uuid-123\",\n \"conversationTitle\": \"Q1 Deal Review - Acme Corp\",\n \"conversationStartedAt\": \"2024-03-18T10:30:00Z\",\n \"applicationName\": \"zoom\",\n \"applicationExternalID\": \"zoom-meeting-987654\",\n \"opportunityID\": \"opp-uuid-456\",\n \"linkedCrmRecords\": [\n {\n \"id\": \"001ABC123\",\n \"code\": \"Account\"\n }\n ],\n \"externalMetadata\": {\n \"participants\": [\n {\n \"email\": \"jane@example.com\",\n \"name\": \"Jane Smith\",\n \"accessType\": \"Internal\",\n \"organizer\": true\n },\n {\n \"email\": \"john@customer.com\",\n \"name\": \"John Doe\",\n \"accessType\": \"External\",\n \"organizer\": false\n }\n ],\n \"extra\": {\n \"source\": \"zoom\",\n \"meetingDuration\": 1800\n }\n },\n \"transcriptionSettings\": {\n \"gladia\": {\n \"enableDiarization\": true\n }\n },\n \"headers\": [\n {\n \"key\": \"Authorization\",\n \"value\": \"Bearer token123\"\n }\n ],\n \"skipCRMFieldsCalculation\": false,\n \"skipOpportunitiesExport\": false,\n \"skipScorecardCalculation\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.attention.tech/v2/conversations/import")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"mediaURL\": \"https://storage.example.com/recordings/call-abc123.mp4\",\n \"userID\": \"user-uuid-123\",\n \"conversationTitle\": \"Q1 Deal Review - Acme Corp\",\n \"conversationStartedAt\": \"2024-03-18T10:30:00Z\",\n \"applicationName\": \"zoom\",\n \"applicationExternalID\": \"zoom-meeting-987654\",\n \"opportunityID\": \"opp-uuid-456\",\n \"linkedCrmRecords\": [\n {\n \"id\": \"001ABC123\",\n \"code\": \"Account\"\n }\n ],\n \"externalMetadata\": {\n \"participants\": [\n {\n \"email\": \"jane@example.com\",\n \"name\": \"Jane Smith\",\n \"accessType\": \"Internal\",\n \"organizer\": true\n },\n {\n \"email\": \"john@customer.com\",\n \"name\": \"John Doe\",\n \"accessType\": \"External\",\n \"organizer\": false\n }\n ],\n \"extra\": {\n \"source\": \"zoom\",\n \"meetingDuration\": 1800\n }\n },\n \"transcriptionSettings\": {\n \"gladia\": {\n \"enableDiarization\": true\n }\n },\n \"headers\": [\n {\n \"key\": \"Authorization\",\n \"value\": \"Bearer token123\"\n }\n ],\n \"skipCRMFieldsCalculation\": false,\n \"skipOpportunitiesExport\": false,\n \"skipScorecardCalculation\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.attention.tech/v2/conversations/import")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"mediaURL\": \"https://storage.example.com/recordings/call-abc123.mp4\",\n \"userID\": \"user-uuid-123\",\n \"conversationTitle\": \"Q1 Deal Review - Acme Corp\",\n \"conversationStartedAt\": \"2024-03-18T10:30:00Z\",\n \"applicationName\": \"zoom\",\n \"applicationExternalID\": \"zoom-meeting-987654\",\n \"opportunityID\": \"opp-uuid-456\",\n \"linkedCrmRecords\": [\n {\n \"id\": \"001ABC123\",\n \"code\": \"Account\"\n }\n ],\n \"externalMetadata\": {\n \"participants\": [\n {\n \"email\": \"jane@example.com\",\n \"name\": \"Jane Smith\",\n \"accessType\": \"Internal\",\n \"organizer\": true\n },\n {\n \"email\": \"john@customer.com\",\n \"name\": \"John Doe\",\n \"accessType\": \"External\",\n \"organizer\": false\n }\n ],\n \"extra\": {\n \"source\": \"zoom\",\n \"meetingDuration\": 1800\n }\n },\n \"transcriptionSettings\": {\n \"gladia\": {\n \"enableDiarization\": true\n }\n },\n \"headers\": [\n {\n \"key\": \"Authorization\",\n \"value\": \"Bearer token123\"\n }\n ],\n \"skipCRMFieldsCalculation\": false,\n \"skipOpportunitiesExport\": false,\n \"skipScorecardCalculation\": false\n}"
response = http.request(request)
puts response.read_body{
"uuid": "conv-uuid-new-123"
}{
"id": "not_found_error",
"status": "404",
"code": "404",
"title": "Not Found Error",
"detail": "The requested resource was not found",
"source": {
"pointer": "/data/attributes/id"
}
}{
"id": "not_found_error",
"status": "404",
"code": "404",
"title": "Not Found Error",
"detail": "The requested resource was not found",
"source": {
"pointer": "/data/attributes/id"
}
}{
"id": "not_found_error",
"status": "404",
"code": "404",
"title": "Not Found Error",
"detail": "The requested resource was not found",
"source": {
"pointer": "/data/attributes/id"
}
}{
"id": "not_found_error",
"status": "404",
"code": "404",
"title": "Not Found Error",
"detail": "The requested resource was not found",
"source": {
"pointer": "/data/attributes/id"
}
}Body
application/jsonapplication/vnd.api+json
Conversation import data including media URL, user information, and optional metadata
Was this page helpful?