Ingest a meeting from any source - Momentum
Ingest a meeting from any source
cURL
curl --request POST \
--url https://receiver.momentum.io/v1/user-provided-meeting \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"meeting": {
"title": "<string>",
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"host": {
"name": "<string>",
"email": "jsmith@example.com"
},
"id": "<string>",
"callUrl": "<string>",
"recordingUrl": "<string>",
"attendees": [
{
"email": "jsmith@example.com",
"isInternal": true,
"name": "<string>"
}
],
"salesforceAccountId": "<string>",
"salesforceOpportunityId": "<string>"
},
"processImportedMeeting": true
}
'
JavaScript
const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
meeting: {
title: '<string>',
startTime: '2023-11-07T05:31:56Z',
endTime: '2023-11-07T05:31:56Z',
host: {name: '<string>', email: 'jsmith@example.com'},
id: '<string>',
callUrl: '<string>',
recordingUrl: '<string>',
attendees: [{email: 'jsmith@example.com', isInternal: true, name: '<string>'}],
salesforceAccountId: '<string>',
salesforceOpportunityId: '<string>'
},
processImportedMeeting: true
})
};
fetch('https://receiver.momentum.io/v1/user-provided-meeting', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
Python
import requests
url = "https://receiver.momentum.io/v1/user-provided-meeting"
payload = {
"meeting": {
"title": "<string>",
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"host": {
"name": "<string>",
"email": "jsmith@example.com"
},
"id": "<string>",
"callUrl": "<string>",
"recordingUrl": "<string>",
"attendees": [
{
"email": "jsmith@example.com",
"isInternal": True,
"name": "<string>"
}
],
"salesforceAccountId": "<string>",
"salesforceOpportunityId": "<string>"
},
"processImportedMeeting": True
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
Go
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://receiver.momentum.io/v1/user-provided-meeting"
payload := strings.NewReader("{\n \"meeting\": {\n \"title\": \"<string>\",\n \"startTime\": \"2023-11-07T05:31:56Z\",\n \"endTime\": \"2023-11-07T05:31:56Z\",\n \"host\": {\n \"name\": \"<string>\",\n \"email\": \"jsmith@example.com\"\n },\n \"id\": \"<string>\",\n \"callUrl\": \"<string>\",\n \"recordingUrl\": \"<string>\",\n \"attendees\": [\n {\n \"email\": \"jsmith@example.com\",\n \"isInternal\": true,\n \"name\": \"<string>\"\n }]\n ,\n \"salesforceAccountId\": \"<string>\",\n \"salesforceOpportunityId\": \"<string>\"\n },\n \"processImportedMeeting\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<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))
}
Authorizations
X-API-Key
- Type: string
- Location: header
- Required: Yes
- Description: API key for authenticating requests
Body
- Content-Type: application/json
meeting
- Type: object
- Required: Yes
processImportedMeeting
- Type: boolean
- Required: Yes
- Description: Whether to process the imported meeting.
Response
- Status Code: 200
- Description: Meeting successfully created.