Fetch Design
curl --request POST \
--url https://api.pitchprint.io/runtime/fetch-design \
--header 'Content-Type: application/json' \
--data '
{
"apiKey": "your-api-key",
"timestamp": 1485934721,
"signature": "e2fc714c4727ee9395f324cd2e7f331f",
"designId": "5afb3c7960aa7ff504632367553a3fa2"
}
'import requests
url = "https://api.pitchprint.io/runtime/fetch-design"
payload = {
"apiKey": "your-api-key",
"timestamp": 1485934721,
"signature": "e2fc714c4727ee9395f324cd2e7f331f",
"designId": "5afb3c7960aa7ff504632367553a3fa2"
}
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({
apiKey: 'your-api-key',
timestamp: 1485934721,
signature: 'e2fc714c4727ee9395f324cd2e7f331f',
designId: '5afb3c7960aa7ff504632367553a3fa2'
})
};
fetch('https://api.pitchprint.io/runtime/fetch-design', 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.pitchprint.io/runtime/fetch-design",
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([
'apiKey' => 'your-api-key',
'timestamp' => 1485934721,
'signature' => 'e2fc714c4727ee9395f324cd2e7f331f',
'designId' => '5afb3c7960aa7ff504632367553a3fa2'
]),
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://api.pitchprint.io/runtime/fetch-design"
payload := strings.NewReader("{\n \"apiKey\": \"your-api-key\",\n \"timestamp\": 1485934721,\n \"signature\": \"e2fc714c4727ee9395f324cd2e7f331f\",\n \"designId\": \"5afb3c7960aa7ff504632367553a3fa2\"\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://api.pitchprint.io/runtime/fetch-design")
.header("Content-Type", "application/json")
.body("{\n \"apiKey\": \"your-api-key\",\n \"timestamp\": 1485934721,\n \"signature\": \"e2fc714c4727ee9395f324cd2e7f331f\",\n \"designId\": \"5afb3c7960aa7ff504632367553a3fa2\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pitchprint.io/runtime/fetch-design")
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 \"apiKey\": \"your-api-key\",\n \"timestamp\": 1485934721,\n \"signature\": \"e2fc714c4727ee9395f324cd2e7f331f\",\n \"designId\": \"5afb3c7960aa7ff504632367553a3fa2\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"_id": "5afb3c7960aa7ff504632367553a3fa2",
"lastModified": "2015-01-12T06:01:20.000Z",
"_owner": "***",
"map": {
"backgroundimages": {
"items": "",
"mode": "exclude"
},
"colors": {
"items": "",
"mode": "exclude"
},
"images": {
"items": "",
"mode": "exclude"
},
"modules": "{}",
"fonts": {
"items": "",
"mode": "exclude"
}
},
"design": {}
}
}Runtime API
Fetch Design
Retrieve the stored data for a single design, including its pages and configuration, using its design ID.
POST
/
runtime
/
fetch-design
Fetch Design
curl --request POST \
--url https://api.pitchprint.io/runtime/fetch-design \
--header 'Content-Type: application/json' \
--data '
{
"apiKey": "your-api-key",
"timestamp": 1485934721,
"signature": "e2fc714c4727ee9395f324cd2e7f331f",
"designId": "5afb3c7960aa7ff504632367553a3fa2"
}
'import requests
url = "https://api.pitchprint.io/runtime/fetch-design"
payload = {
"apiKey": "your-api-key",
"timestamp": 1485934721,
"signature": "e2fc714c4727ee9395f324cd2e7f331f",
"designId": "5afb3c7960aa7ff504632367553a3fa2"
}
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({
apiKey: 'your-api-key',
timestamp: 1485934721,
signature: 'e2fc714c4727ee9395f324cd2e7f331f',
designId: '5afb3c7960aa7ff504632367553a3fa2'
})
};
fetch('https://api.pitchprint.io/runtime/fetch-design', 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.pitchprint.io/runtime/fetch-design",
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([
'apiKey' => 'your-api-key',
'timestamp' => 1485934721,
'signature' => 'e2fc714c4727ee9395f324cd2e7f331f',
'designId' => '5afb3c7960aa7ff504632367553a3fa2'
]),
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://api.pitchprint.io/runtime/fetch-design"
payload := strings.NewReader("{\n \"apiKey\": \"your-api-key\",\n \"timestamp\": 1485934721,\n \"signature\": \"e2fc714c4727ee9395f324cd2e7f331f\",\n \"designId\": \"5afb3c7960aa7ff504632367553a3fa2\"\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://api.pitchprint.io/runtime/fetch-design")
.header("Content-Type", "application/json")
.body("{\n \"apiKey\": \"your-api-key\",\n \"timestamp\": 1485934721,\n \"signature\": \"e2fc714c4727ee9395f324cd2e7f331f\",\n \"designId\": \"5afb3c7960aa7ff504632367553a3fa2\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pitchprint.io/runtime/fetch-design")
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 \"apiKey\": \"your-api-key\",\n \"timestamp\": 1485934721,\n \"signature\": \"e2fc714c4727ee9395f324cd2e7f331f\",\n \"designId\": \"5afb3c7960aa7ff504632367553a3fa2\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"_id": "5afb3c7960aa7ff504632367553a3fa2",
"lastModified": "2015-01-12T06:01:20.000Z",
"_owner": "***",
"map": {
"backgroundimages": {
"items": "",
"mode": "exclude"
},
"colors": {
"items": "",
"mode": "exclude"
},
"images": {
"items": "",
"mode": "exclude"
},
"modules": "{}",
"fonts": {
"items": "",
"mode": "exclude"
}
},
"design": {}
}
}Body
application/json
Your domain's API key.
Example:
"your-api-key"
UNIX timestamp (seconds since epoch) generated at request time. Valid for one hour.
Example:
1485934721
MD5(apiKey + secretKey + timestamp).
Example:
"e2fc714c4727ee9395f324cd2e7f331f"
ID of a single design.
Example:
"5afb3c7960aa7ff504632367553a3fa2"
Response
200 - application/json
The source data for the requested design.
The response is of type object.