Skip to main content

Download program config artifact (JSON)

Public endpoint returning a scoped, signed version of an app config. Used when enrolling a mobile client via QR code.

Request

Method: GET
Path: /artifacts/{artifactId}.json

Authentication: Not required

Parameters

NameTypeInRequiredDescription
artifactIdstringpathYes

Responses

200 - App config JSON

404 - Artifact not found

Examples

cURL

curl -X GET \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
http://localhost:3000/artifacts/{artifactId}.json

JavaScript

const response = await fetch('http://localhost:3000/artifacts/{artifactId}.json', {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer ' + token,
},
});

const data = await response.json();
console.log(data);

This documentation is automatically generated from the OpenAPI specification.