Create Conversation
curl --request POST \
--url https://api.omi.me/v1/dev/user/conversations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"text": "<string>",
"finished_at": "2023-11-07T05:31:56Z",
"geolocation": {
"latitude": 123,
"longitude": 123,
"accuracy": 1,
"address": "<string>",
"altitude": 123,
"captured_at": "2023-11-07T05:31:56Z",
"google_place_id": "<string>",
"location_type": "<string>"
},
"language": "en",
"started_at": "2023-11-07T05:31:56Z",
"text_source": "other_text",
"text_source_spec": "<string>"
}
'import requests
url = "https://api.omi.me/v1/dev/user/conversations"
payload = {
"text": "<string>",
"finished_at": "2023-11-07T05:31:56Z",
"geolocation": {
"latitude": 123,
"longitude": 123,
"accuracy": 1,
"address": "<string>",
"altitude": 123,
"captured_at": "2023-11-07T05:31:56Z",
"google_place_id": "<string>",
"location_type": "<string>"
},
"language": "en",
"started_at": "2023-11-07T05:31:56Z",
"text_source": "other_text",
"text_source_spec": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
text: '<string>',
finished_at: '2023-11-07T05:31:56Z',
geolocation: {
latitude: 123,
longitude: 123,
accuracy: 1,
address: '<string>',
altitude: 123,
captured_at: '2023-11-07T05:31:56Z',
google_place_id: '<string>',
location_type: '<string>'
},
language: 'en',
started_at: '2023-11-07T05:31:56Z',
text_source: 'other_text',
text_source_spec: '<string>'
})
};
fetch('https://api.omi.me/v1/dev/user/conversations', 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.omi.me/v1/dev/user/conversations",
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([
'text' => '<string>',
'finished_at' => '2023-11-07T05:31:56Z',
'geolocation' => [
'latitude' => 123,
'longitude' => 123,
'accuracy' => 1,
'address' => '<string>',
'altitude' => 123,
'captured_at' => '2023-11-07T05:31:56Z',
'google_place_id' => '<string>',
'location_type' => '<string>'
],
'language' => 'en',
'started_at' => '2023-11-07T05:31:56Z',
'text_source' => 'other_text',
'text_source_spec' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.omi.me/v1/dev/user/conversations"
payload := strings.NewReader("{\n \"text\": \"<string>\",\n \"finished_at\": \"2023-11-07T05:31:56Z\",\n \"geolocation\": {\n \"latitude\": 123,\n \"longitude\": 123,\n \"accuracy\": 1,\n \"address\": \"<string>\",\n \"altitude\": 123,\n \"captured_at\": \"2023-11-07T05:31:56Z\",\n \"google_place_id\": \"<string>\",\n \"location_type\": \"<string>\"\n },\n \"language\": \"en\",\n \"started_at\": \"2023-11-07T05:31:56Z\",\n \"text_source\": \"other_text\",\n \"text_source_spec\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.omi.me/v1/dev/user/conversations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"text\": \"<string>\",\n \"finished_at\": \"2023-11-07T05:31:56Z\",\n \"geolocation\": {\n \"latitude\": 123,\n \"longitude\": 123,\n \"accuracy\": 1,\n \"address\": \"<string>\",\n \"altitude\": 123,\n \"captured_at\": \"2023-11-07T05:31:56Z\",\n \"google_place_id\": \"<string>\",\n \"location_type\": \"<string>\"\n },\n \"language\": \"en\",\n \"started_at\": \"2023-11-07T05:31:56Z\",\n \"text_source\": \"other_text\",\n \"text_source_spec\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.omi.me/v1/dev/user/conversations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"text\": \"<string>\",\n \"finished_at\": \"2023-11-07T05:31:56Z\",\n \"geolocation\": {\n \"latitude\": 123,\n \"longitude\": 123,\n \"accuracy\": 1,\n \"address\": \"<string>\",\n \"altitude\": 123,\n \"captured_at\": \"2023-11-07T05:31:56Z\",\n \"google_place_id\": \"<string>\",\n \"location_type\": \"<string>\"\n },\n \"language\": \"en\",\n \"started_at\": \"2023-11-07T05:31:56Z\",\n \"text_source\": \"other_text\",\n \"text_source_spec\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"discarded": true,
"id": "<string>",
"status": "<string>",
"meeting_treatment_eligible": false
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Conversations
Create Conversation
Create a new conversation from text for the authenticated user.
This endpoint processes the provided text through the full conversation pipeline:
- Generates structured data (title, overview, category, emoji)
- Extracts action items (with deduplication)
- Extracts memories (with quality filtering)
- Determines if conversation should be discarded
- Triggers app integrations
- Triggers webhooks
Request Parameters:
- text: The conversation text/transcript (1-100,000 characters)
- text_source: Source type - audio_transcript, message, or other_text (default: other_text)
- text_source_spec: Additional source info (e.g., ‘email’, ‘slack’)
- started_at: When conversation started (defaults to now)
- finished_at: When conversation finished (defaults to started_at + 5 minutes)
- language: Language code (default: ‘en’)
- geolocation: Optional geolocation data
Response:
- Returns the created conversation ID and status
- Use GET /v1/dev/user/conversations/ to retrieve full details
POST
/
v1
/
dev
/
user
/
conversations
Create Conversation
curl --request POST \
--url https://api.omi.me/v1/dev/user/conversations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"text": "<string>",
"finished_at": "2023-11-07T05:31:56Z",
"geolocation": {
"latitude": 123,
"longitude": 123,
"accuracy": 1,
"address": "<string>",
"altitude": 123,
"captured_at": "2023-11-07T05:31:56Z",
"google_place_id": "<string>",
"location_type": "<string>"
},
"language": "en",
"started_at": "2023-11-07T05:31:56Z",
"text_source": "other_text",
"text_source_spec": "<string>"
}
'import requests
url = "https://api.omi.me/v1/dev/user/conversations"
payload = {
"text": "<string>",
"finished_at": "2023-11-07T05:31:56Z",
"geolocation": {
"latitude": 123,
"longitude": 123,
"accuracy": 1,
"address": "<string>",
"altitude": 123,
"captured_at": "2023-11-07T05:31:56Z",
"google_place_id": "<string>",
"location_type": "<string>"
},
"language": "en",
"started_at": "2023-11-07T05:31:56Z",
"text_source": "other_text",
"text_source_spec": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
text: '<string>',
finished_at: '2023-11-07T05:31:56Z',
geolocation: {
latitude: 123,
longitude: 123,
accuracy: 1,
address: '<string>',
altitude: 123,
captured_at: '2023-11-07T05:31:56Z',
google_place_id: '<string>',
location_type: '<string>'
},
language: 'en',
started_at: '2023-11-07T05:31:56Z',
text_source: 'other_text',
text_source_spec: '<string>'
})
};
fetch('https://api.omi.me/v1/dev/user/conversations', 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.omi.me/v1/dev/user/conversations",
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([
'text' => '<string>',
'finished_at' => '2023-11-07T05:31:56Z',
'geolocation' => [
'latitude' => 123,
'longitude' => 123,
'accuracy' => 1,
'address' => '<string>',
'altitude' => 123,
'captured_at' => '2023-11-07T05:31:56Z',
'google_place_id' => '<string>',
'location_type' => '<string>'
],
'language' => 'en',
'started_at' => '2023-11-07T05:31:56Z',
'text_source' => 'other_text',
'text_source_spec' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.omi.me/v1/dev/user/conversations"
payload := strings.NewReader("{\n \"text\": \"<string>\",\n \"finished_at\": \"2023-11-07T05:31:56Z\",\n \"geolocation\": {\n \"latitude\": 123,\n \"longitude\": 123,\n \"accuracy\": 1,\n \"address\": \"<string>\",\n \"altitude\": 123,\n \"captured_at\": \"2023-11-07T05:31:56Z\",\n \"google_place_id\": \"<string>\",\n \"location_type\": \"<string>\"\n },\n \"language\": \"en\",\n \"started_at\": \"2023-11-07T05:31:56Z\",\n \"text_source\": \"other_text\",\n \"text_source_spec\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.omi.me/v1/dev/user/conversations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"text\": \"<string>\",\n \"finished_at\": \"2023-11-07T05:31:56Z\",\n \"geolocation\": {\n \"latitude\": 123,\n \"longitude\": 123,\n \"accuracy\": 1,\n \"address\": \"<string>\",\n \"altitude\": 123,\n \"captured_at\": \"2023-11-07T05:31:56Z\",\n \"google_place_id\": \"<string>\",\n \"location_type\": \"<string>\"\n },\n \"language\": \"en\",\n \"started_at\": \"2023-11-07T05:31:56Z\",\n \"text_source\": \"other_text\",\n \"text_source_spec\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.omi.me/v1/dev/user/conversations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"text\": \"<string>\",\n \"finished_at\": \"2023-11-07T05:31:56Z\",\n \"geolocation\": {\n \"latitude\": 123,\n \"longitude\": 123,\n \"accuracy\": 1,\n \"address\": \"<string>\",\n \"altitude\": 123,\n \"captured_at\": \"2023-11-07T05:31:56Z\",\n \"google_place_id\": \"<string>\",\n \"location_type\": \"<string>\"\n },\n \"language\": \"en\",\n \"started_at\": \"2023-11-07T05:31:56Z\",\n \"text_source\": \"other_text\",\n \"text_source_spec\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"discarded": true,
"id": "<string>",
"status": "<string>",
"meeting_treatment_eligible": false
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Send Authorization: Bearer <firebase_id_token>.
Body
application/json
The conversation text/transcript
Required string length:
1 - 100000When the conversation finished (defaults to started_at + 5 minutes)
Geolocation where conversation occurred
Show child attributes
Show child attributes
Language code (ISO 639-1, e.g., 'en', 'es', 'fr')
When the conversation started (defaults to now)
Source type: audio_transcript, message, or other_text
Available options:
audio_transcript, message, other_text Additional source specification (e.g., 'email', 'slack', 'whatsapp')