Create a share link (view-only) for a version
curl --request POST \
--url https://hiimpria.ai/api/user/presentations/{id}/shares \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"revision": 2,
"expiresAt": "2023-11-07T05:31:56Z",
"label": "<string>"
}
'import requests
url = "https://hiimpria.ai/api/user/presentations/{id}/shares"
payload = {
"revision": 2,
"expiresAt": "2023-11-07T05:31:56Z",
"label": "<string>"
}
headers = {
"x-access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({revision: 2, expiresAt: '2023-11-07T05:31:56Z', label: '<string>'})
};
fetch('https://hiimpria.ai/api/user/presentations/{id}/shares', 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://hiimpria.ai/api/user/presentations/{id}/shares",
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([
'revision' => 2,
'expiresAt' => '2023-11-07T05:31:56Z',
'label' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-access-token: <api-key>"
],
]);
$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://hiimpria.ai/api/user/presentations/{id}/shares"
payload := strings.NewReader("{\n \"revision\": 2,\n \"expiresAt\": \"2023-11-07T05:31:56Z\",\n \"label\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-access-token", "<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://hiimpria.ai/api/user/presentations/{id}/shares")
.header("x-access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"revision\": 2,\n \"expiresAt\": \"2023-11-07T05:31:56Z\",\n \"label\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://hiimpria.ai/api/user/presentations/{id}/shares")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"revision\": 2,\n \"expiresAt\": \"2023-11-07T05:31:56Z\",\n \"label\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"share": {
"shareId": "<string>",
"url": "https://pria.praxis-ai.com/share#3q2-7wAbCdEfGhIjKlMnOpQrStUvWxYz0123456789_-A",
"path": "/share#3q2-7wAbCdEfGhIjKlMnOpQrStUvWxYz0123456789_-A",
"label": "Acme — Bob",
"audience": "public",
"revision": {
"number": 123,
"version": 123
},
"expiresAt": "2023-11-07T05:31:56Z",
"revokedAt": "2023-11-07T05:31:56Z",
"state": "live",
"reason": "turned_off",
"viewCount": 123,
"lastViewedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"download": {
"mp4": true,
"vtt": true
}
}
}Presentations
Create a share link (view-only) for a version
revision (a revision number from the versions list) defaults to the current version; it must have its narration ready and not be the version being built. audience defaults to the first one the twin allows (public = anyone with the link, twin = people in this Digital Twin, who must sign in). expiresAt: optional, in the next 365 days (null = no end). label: your note (≤ 80 characters, one line), never shown to viewers. Viewers never see your source file names: vault sources read “Internal document”, public web pages their hostname. At most 20 live links per presentation. 30 link changes per minute. The version must be the newest revision of its version (as listed) — an older revision of a version is not shareable.
POST
/
api
/
user
/
presentations
/
{id}
/
shares
Create a share link (view-only) for a version
curl --request POST \
--url https://hiimpria.ai/api/user/presentations/{id}/shares \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"revision": 2,
"expiresAt": "2023-11-07T05:31:56Z",
"label": "<string>"
}
'import requests
url = "https://hiimpria.ai/api/user/presentations/{id}/shares"
payload = {
"revision": 2,
"expiresAt": "2023-11-07T05:31:56Z",
"label": "<string>"
}
headers = {
"x-access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({revision: 2, expiresAt: '2023-11-07T05:31:56Z', label: '<string>'})
};
fetch('https://hiimpria.ai/api/user/presentations/{id}/shares', 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://hiimpria.ai/api/user/presentations/{id}/shares",
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([
'revision' => 2,
'expiresAt' => '2023-11-07T05:31:56Z',
'label' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-access-token: <api-key>"
],
]);
$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://hiimpria.ai/api/user/presentations/{id}/shares"
payload := strings.NewReader("{\n \"revision\": 2,\n \"expiresAt\": \"2023-11-07T05:31:56Z\",\n \"label\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-access-token", "<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://hiimpria.ai/api/user/presentations/{id}/shares")
.header("x-access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"revision\": 2,\n \"expiresAt\": \"2023-11-07T05:31:56Z\",\n \"label\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://hiimpria.ai/api/user/presentations/{id}/shares")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"revision\": 2,\n \"expiresAt\": \"2023-11-07T05:31:56Z\",\n \"label\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"share": {
"shareId": "<string>",
"url": "https://pria.praxis-ai.com/share#3q2-7wAbCdEfGhIjKlMnOpQrStUvWxYz0123456789_-A",
"path": "/share#3q2-7wAbCdEfGhIjKlMnOpQrStUvWxYz0123456789_-A",
"label": "Acme — Bob",
"audience": "public",
"revision": {
"number": 123,
"version": 123
},
"expiresAt": "2023-11-07T05:31:56Z",
"revokedAt": "2023-11-07T05:31:56Z",
"state": "live",
"reason": "turned_off",
"viewCount": 123,
"lastViewedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"download": {
"mp4": true,
"vtt": true
}
}
}Body
application/json
Was this page helpful?