GET /offline-exports/{id}
curl --request GET \
--url https://api.layarva.com/api/platform/v1/workspaces/{workspaceId}/offline-exports/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.layarva.com/api/platform/v1/workspaces/{workspaceId}/offline-exports/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.layarva.com/api/platform/v1/workspaces/{workspaceId}/offline-exports/{id}', 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.layarva.com/api/platform/v1/workspaces/{workspaceId}/offline-exports/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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 := "https://api.layarva.com/api/platform/v1/workspaces/{workspaceId}/offline-exports/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.layarva.com/api/platform/v1/workspaces/{workspaceId}/offline-exports/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.layarva.com/api/platform/v1/workspaces/{workspaceId}/offline-exports/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"screenId": "<string>",
"channelId": "<string>",
"publicationId": "<string>",
"status": "REQUESTED",
"createdAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"leaseValidUntil": "2023-11-07T05:31:56Z",
"sizeBytes": 123,
"checksumSha256": "<string>",
"failureCode": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>"
}
}Offline exports
GET /offline-exports/{id}
If this request returns 503, stop the workflow and retry later when instructed, or contact support with its requestId. Read export status using the API key that requested it. READY means the package was built, not that a Player imported or played it. Save its size and checksum before downloading; stop polling at expiresAt or a terminal failure. Required permissions: screens.offline-export. Use Postman or your backend. Keep your API key private; do not enter it in this public documentation page.
GET
/
offline-exports
/
{id}
GET /offline-exports/{id}
curl --request GET \
--url https://api.layarva.com/api/platform/v1/workspaces/{workspaceId}/offline-exports/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.layarva.com/api/platform/v1/workspaces/{workspaceId}/offline-exports/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.layarva.com/api/platform/v1/workspaces/{workspaceId}/offline-exports/{id}', 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.layarva.com/api/platform/v1/workspaces/{workspaceId}/offline-exports/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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 := "https://api.layarva.com/api/platform/v1/workspaces/{workspaceId}/offline-exports/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.layarva.com/api/platform/v1/workspaces/{workspaceId}/offline-exports/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.layarva.com/api/platform/v1/workspaces/{workspaceId}/offline-exports/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"screenId": "<string>",
"channelId": "<string>",
"publicationId": "<string>",
"status": "REQUESTED",
"createdAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"leaseValidUntil": "2023-11-07T05:31:56Z",
"sizeBytes": 123,
"checksumSha256": "<string>",
"failureCode": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>"
}
}If this request returns
503, stop the workflow and retry later when instructed, or contact support with the response requestId. See the offline export guide.READY means the package was built, not that a Player imported or played it. Save its checksum and size before downloading. Stop polling at expiresAt or a terminal failure.
Required permissions: screens.offline-export.
Read request; no mutation Idempotency-Key is required.
Use your Platform API key in Postman or your backend. Keep it private; do not enter it in this public page. Your workspace permissions and plan limits apply.

