Create metadata queue item
curl --request POST \
--url https://third-party.etrnl.app/v1/pages/{id}/queue \
--header 'API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"displayName": "<string>",
"tagMetadata": "<string>"
}
'import requests
url = "https://third-party.etrnl.app/v1/pages/{id}/queue"
payload = {
"displayName": "<string>",
"tagMetadata": "<string>"
}
headers = {
"API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({displayName: '<string>', tagMetadata: '<string>'})
};
fetch('https://third-party.etrnl.app/v1/pages/{id}/queue', 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://third-party.etrnl.app/v1/pages/{id}/queue",
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([
'displayName' => '<string>',
'tagMetadata' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"API-Key: <api-key>",
"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://third-party.etrnl.app/v1/pages/{id}/queue"
payload := strings.NewReader("{\n \"displayName\": \"<string>\",\n \"tagMetadata\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("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))
}HttpResponse<String> response = Unirest.post("https://third-party.etrnl.app/v1/pages/{id}/queue")
.header("API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"displayName\": \"<string>\",\n \"tagMetadata\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://third-party.etrnl.app/v1/pages/{id}/queue")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"displayName\": \"<string>\",\n \"tagMetadata\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
success: true,
queueItem: {
id: 200,
tagMetadata: {
nftId: 123
},
displayName: 'My Test',
pageId: 191,
groupId: null,
organizationId: 1276,
fulfillmentDate: null,
fulfilled: false
}
}
Pages
Create metadata queue item
POST
/
v1
/
pages
/
{id}
/
queue
Create metadata queue item
curl --request POST \
--url https://third-party.etrnl.app/v1/pages/{id}/queue \
--header 'API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"displayName": "<string>",
"tagMetadata": "<string>"
}
'import requests
url = "https://third-party.etrnl.app/v1/pages/{id}/queue"
payload = {
"displayName": "<string>",
"tagMetadata": "<string>"
}
headers = {
"API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({displayName: '<string>', tagMetadata: '<string>'})
};
fetch('https://third-party.etrnl.app/v1/pages/{id}/queue', 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://third-party.etrnl.app/v1/pages/{id}/queue",
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([
'displayName' => '<string>',
'tagMetadata' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"API-Key: <api-key>",
"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://third-party.etrnl.app/v1/pages/{id}/queue"
payload := strings.NewReader("{\n \"displayName\": \"<string>\",\n \"tagMetadata\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("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))
}HttpResponse<String> response = Unirest.post("https://third-party.etrnl.app/v1/pages/{id}/queue")
.header("API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"displayName\": \"<string>\",\n \"tagMetadata\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://third-party.etrnl.app/v1/pages/{id}/queue")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"displayName\": \"<string>\",\n \"tagMetadata\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
success: true,
queueItem: {
id: 200,
tagMetadata: {
nftId: 123
},
displayName: 'My Test',
pageId: 191,
groupId: null,
organizationId: 1276,
fulfillmentDate: null,
fulfilled: false
}
}
Add an item to this page’s metadata queue.
Headers
string
required
Your organization’s private API key.
URL Params
string
required
The ID of the secure page. This can be found by editing the page in the etrnl dashboard and retrieving the number from the URL.
Body
string
This is the queue item’s display name as it will appear in the programmer.
string
This is a JSON object that defines additional information that will be tied to the tag that’s programmed for this queue item.
{
success: true,
queueItem: {
id: 200,
tagMetadata: {
nftId: 123
},
displayName: 'My Test',
pageId: 191,
groupId: null,
organizationId: 1276,
fulfillmentDate: null,
fulfilled: false
}
}
⌘I