Skip to main content
POST
/
v4
/
applications
/
validate
JavaScript
import SGPClient from 'sgp';

const client = new SGPClient({
  apiKey: 'My API Key',
});

const response = await client.applications.validate({
  edges: [{ from_field: 'from_field', from_node: 'from_node', to_field: 'to_field', to_node: 'to_node' }],
  nodes: [{ id: 'id', application_node_schema_id: 'text_input_schema' }],
  version: 'V0',
});

console.log(response);
{
  "errors": [
    {
      "error_code": "INVALID_APPLICATION_NO_INPUT_NODE",
      "message": "<string>"
    }
  ],
  "sgp_error_code": "APPLICATION_BUILDER_VALIDATION_ERROR"
}

Authorizations

x-api-key
string
header
required

Headers

x-selected-account-id
string

Body

application/json
nodes
ApplicationNode · object[]
required

List of nodes in the application graph

edges
ApplicationEdge · object[]
required

List of edges in the application graph

version
string
required

Version of the application schema

Allowed value: "V0"
overrides
AgenticApplicationOverrides · object

Optional overrides for the application

  • AgenticApplicationOverrides
  • Overrides

Response

Successful Response