Book a Meeting
curl --request POST \
--url https://external.sakari.io/v1/meetingevents/{slug}/book \
--header 'Content-Type: application/json' \
--data '
{
"start": "2023-11-07T05:31:56Z",
"duration": 123,
"attendees": [
{
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>"
}
],
"notes": "<string>"
}
'import requests
url = "https://external.sakari.io/v1/meetingevents/{slug}/book"
payload = {
"start": "2023-11-07T05:31:56Z",
"duration": 123,
"attendees": [
{
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>"
}
],
"notes": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
start: '2023-11-07T05:31:56Z',
duration: 123,
attendees: [{firstName: '<string>', lastName: '<string>', email: '<string>'}],
notes: '<string>'
})
};
fetch('https://external.sakari.io/v1/meetingevents/{slug}/book', 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://external.sakari.io/v1/meetingevents/{slug}/book",
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([
'start' => '2023-11-07T05:31:56Z',
'duration' => 123,
'attendees' => [
[
'firstName' => '<string>',
'lastName' => '<string>',
'email' => '<string>'
]
],
'notes' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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://external.sakari.io/v1/meetingevents/{slug}/book"
payload := strings.NewReader("{\n \"start\": \"2023-11-07T05:31:56Z\",\n \"duration\": 123,\n \"attendees\": [\n {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"email\": \"<string>\"\n }\n ],\n \"notes\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://external.sakari.io/v1/meetingevents/{slug}/book")
.header("Content-Type", "application/json")
.body("{\n \"start\": \"2023-11-07T05:31:56Z\",\n \"duration\": 123,\n \"attendees\": [\n {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"email\": \"<string>\"\n }\n ],\n \"notes\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://external.sakari.io/v1/meetingevents/{slug}/book")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"start\": \"2023-11-07T05:31:56Z\",\n \"duration\": 123,\n \"attendees\": [\n {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"email\": \"<string>\"\n }\n ],\n \"notes\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "<string>",
"name": "<string>",
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"description": "<string>",
"notes": "<string>",
"hosts": [
{
"id": "<string>",
"email": "chris@sakari.io",
"firstName": "Chris",
"lastName": "Bloggs",
"mobile": {
"country": "<string>",
"number": "123-456-7890",
"verified": "2023-11-07T05:31:56Z",
"valid": true,
"lineType": "mobile"
}
}
],
"attendees": [
"<unknown>"
],
"rescheduleLink": "<string>",
"cancelLink": "<string>"
}
}{
"success": true,
"error": {
"code": "CONT-010",
"description": "Contact has requested no further communication"
}
}{
"success": true,
"error": {
"code": "CONT-010",
"description": "Contact has requested no further communication"
}
}externals.meetingevents
Book a Meeting
POST
/
v1
/
meetingevents
/
{slug}
/
book
Book a Meeting
curl --request POST \
--url https://external.sakari.io/v1/meetingevents/{slug}/book \
--header 'Content-Type: application/json' \
--data '
{
"start": "2023-11-07T05:31:56Z",
"duration": 123,
"attendees": [
{
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>"
}
],
"notes": "<string>"
}
'import requests
url = "https://external.sakari.io/v1/meetingevents/{slug}/book"
payload = {
"start": "2023-11-07T05:31:56Z",
"duration": 123,
"attendees": [
{
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>"
}
],
"notes": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
start: '2023-11-07T05:31:56Z',
duration: 123,
attendees: [{firstName: '<string>', lastName: '<string>', email: '<string>'}],
notes: '<string>'
})
};
fetch('https://external.sakari.io/v1/meetingevents/{slug}/book', 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://external.sakari.io/v1/meetingevents/{slug}/book",
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([
'start' => '2023-11-07T05:31:56Z',
'duration' => 123,
'attendees' => [
[
'firstName' => '<string>',
'lastName' => '<string>',
'email' => '<string>'
]
],
'notes' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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://external.sakari.io/v1/meetingevents/{slug}/book"
payload := strings.NewReader("{\n \"start\": \"2023-11-07T05:31:56Z\",\n \"duration\": 123,\n \"attendees\": [\n {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"email\": \"<string>\"\n }\n ],\n \"notes\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://external.sakari.io/v1/meetingevents/{slug}/book")
.header("Content-Type", "application/json")
.body("{\n \"start\": \"2023-11-07T05:31:56Z\",\n \"duration\": 123,\n \"attendees\": [\n {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"email\": \"<string>\"\n }\n ],\n \"notes\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://external.sakari.io/v1/meetingevents/{slug}/book")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"start\": \"2023-11-07T05:31:56Z\",\n \"duration\": 123,\n \"attendees\": [\n {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"email\": \"<string>\"\n }\n ],\n \"notes\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "<string>",
"name": "<string>",
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"description": "<string>",
"notes": "<string>",
"hosts": [
{
"id": "<string>",
"email": "chris@sakari.io",
"firstName": "Chris",
"lastName": "Bloggs",
"mobile": {
"country": "<string>",
"number": "123-456-7890",
"verified": "2023-11-07T05:31:56Z",
"valid": true,
"lineType": "mobile"
}
}
],
"attendees": [
"<unknown>"
],
"rescheduleLink": "<string>",
"cancelLink": "<string>"
}
}{
"success": true,
"error": {
"code": "CONT-010",
"description": "Contact has requested no further communication"
}
}{
"success": true,
"error": {
"code": "CONT-010",
"description": "Contact has requested no further communication"
}
}⌘I