secret-share
Get public share metadata
Returns the share’s metadata (expiry, view count, whether a password is required) without consuming a view. Public endpoint, no authentication required.
GET
/
v1
/
share
/
{token}
/
meta
cURL
curl -X GET 'http://localhost:8080/v1/share/share_example/meta' \
-H 'Authorization: Bearer ek_live_xxxxx'const response = await fetch('http://localhost:8080/v1/share/share_example/meta', {
method: 'GET',
headers: {
Authorization: 'Bearer ek_live_xxxxx',
},
});
const data = await response.json();import requests
response = requests.get(
'http://localhost:8080/v1/share/share_example/meta',
headers={
'Authorization': 'Bearer ek_live_xxxxx',
},
)
data = response.json()<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/v1/share/{token}/meta",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:8080/v1/share/{token}/meta"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:8080/v1/share/{token}/meta")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/v1/share/{token}/meta")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"requiresPassword": true,
"expiresAt": "<string>",
"viewsUsed": 123,
"maxViews": 123,
"secretCount": 123,
"environmentName": "<string>",
"projectName": "<string>"
}Path Parameters
Required string length:
1 - 128Pattern:
^[a-f0-9]+$Response
200 - application/json
Default Response
⌘I
cURL
curl -X GET 'http://localhost:8080/v1/share/share_example/meta' \
-H 'Authorization: Bearer ek_live_xxxxx'const response = await fetch('http://localhost:8080/v1/share/share_example/meta', {
method: 'GET',
headers: {
Authorization: 'Bearer ek_live_xxxxx',
},
});
const data = await response.json();import requests
response = requests.get(
'http://localhost:8080/v1/share/share_example/meta',
headers={
'Authorization': 'Bearer ek_live_xxxxx',
},
)
data = response.json()<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/v1/share/{token}/meta",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:8080/v1/share/{token}/meta"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:8080/v1/share/{token}/meta")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/v1/share/{token}/meta")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"requiresPassword": true,
"expiresAt": "<string>",
"viewsUsed": 123,
"maxViews": 123,
"secretCount": 123,
"environmentName": "<string>",
"projectName": "<string>"
}