GET
/
v4
/
application-variants
/
{application_variant_id}
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 applicationVariant = await client.applicationVariants.retrieve('application_variant_id');

  console.log(applicationVariant);
}

main();
{
  "id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "configuration": {
    "metadata": {},
    "guardrail_config": {
      "guardrails_to_execute": [
        "<string>"
      ]
    },
    "nodes": [
      {
        "id": "<string>",
        "application_node_schema_id": "text_input_schema",
        "configuration": {}
      }
    ],
    "edges": [
      {
        "from_node": "<string>",
        "to_node": "<string>",
        "from_field": "<string>",
        "to_field": "<string>"
      }
    ]
  },
  "version": "V0",
  "application_spec_id": "<string>",
  "draft": true,
  "published_at": "2023-11-07T05:31:56Z",
  "account_id": "<string>",
  "created_by_user_id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

x-api-key
string
header
required

Path Parameters

application_variant_id
string
required

Response

200
application/json

Successful Response

The response is of type object.