GET
/
v4
/
application-schemas
import SGPClient from 'sgp';

const client = new SGPClient({
  apiKey: process.env['SGP_API_KEY'], // This is the default and can be omitted
});

async function main() {
  const applicationSchema = await client.applicationSchemas.retrieve({ version: 'OFFLINE' });

  console.log(applicationSchema);
}

main();
{}

Authorizations

x-api-key
string
header
required

Query Parameters

version
enum<string>
required

An enum representing the version states of an application and its nodes' schemas. Attributes: V0: The initial version of an application schema. AGENTS_SERVICE: Application schema references egp_services definition. OFFLINE: Application schema for applications that do not run on SGP directly.

Available options:
OFFLINE,
V0,
AGENTS_SERVICE

Response

200
application/json
Successful Response
{key}
object