Skip to article
NEXUSDocs
Documentation/Administration
Configuration guide

OpenAPI

Configure custom actions in Nexus with OpenAPI

Before you begin

Availability depends on your school's enabled tools, provider setup, and account permissions. These settings are managed in the web workspace. A class policy may restrict a feature described here.

You can create custom actions in Nexus using an OpenAPI 3.0 or 3.1 specification of an API. This enables your AI agents to interact with REST APIs and trigger workflows in external systems.

Include only the endpoints you want your agent to call in the OpenAPI spec. Remove any endpoints you don't want the agent to access.

Setting Up Custom Actions#

Click your user profile icon and select Admin Panel, then click the OpenAPI Actions tab in the sidebar.

Add an OpenAPI Action#

Click the Add OpenAPI Action button.

Paste your OpenAPI spec and configure any required authentication or headers.

Example#

The below OpenAPI spec can be used to create a Custom Action for fetching and creating Agents in Nexus.

{
"openapi": "3.1.0",
"info": {
  "title": "Agents API",
  "version": "1.0.0",
  "description": "Minimal OpenAPI schema for creating and fetching agents in Onyx"
},
"servers": [
  {
    "url": "https://school.narb.cc/api"
  }
],
"paths": {
  "/persona": {
    "post": {
      "summary": "Create Agent (Persona)",
      "operationId": "create_persona",
      "requestBody": {
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "name": { "type": "string" },
                "description": { "type": "string" },
                "document_set_ids": {
                  "type": "array",
                  "items": { "type": "integer" }
                },
                "num_chunks": { "type": "number" },
                "is_public": { "type": "boolean" },
                "recency_bias": {
                  "type": "string",
                  "enum": ["favor_recent", "base_decay", "no_decay", "auto"]
                },
                "llm_filter_extraction": { "type": "boolean" },
                "llm_relevance_filter": { "type": "boolean" },
                "tool_ids": {
                  "type": "array",
                  "items": { "type": "integer" }
                },
                "system_prompt": { "type": "string" },
                "task_prompt": { "type": "string" },
                "datetime_aware": { "type": "boolean" }
              },
              "required": [
                "name",
                "description",
                "document_set_ids",
                "num_chunks",
                "is_public",
                "recency_bias",
                "llm_filter_extraction",
                "llm_relevance_filter",
                "tool_ids",
                "system_prompt",
                "task_prompt",
                "datetime_aware"
              ]
            }
          }
        }
      },
      "responses": {
        "200": { "description": "Created" }
      }
    }
  },
  "/persona/{persona_id}": {
    "get": {
      "summary": "Get Agent (Persona) By ID",
      "operationId": "get_persona",
      "parameters": [
        {
          "name": "persona_id",
          "in": "path",
          "required": true,
          "schema": { "type": "integer" }
        }
      ],
      "responses": {
        "200": { "description": "OK" }
      }
    }
  }
}
}

NEXUS

Nexus helps students think, practice, and learn, with teachers guiding AI use.

[ Support ]

[ NARB TECHNOLOGY INC. ]

Nexus is a school AI platform by narb Technology Inc. · 16192 Coastal Hwy, Lewes, DE 19958

© 2026 narb Technology Inc.

Nexus

Nexus helps schools make room for questions, practice, and reflection — with teacher guidance in view.

[ Contact us through e-mail ]

© 2026 narb Technology Inc.

NEXUS

Nexus helps students think, practice, and learn, with teachers guiding AI use.

[ Support ]

[ NARB TECHNOLOGY INC. ]

Nexus is a school AI platform by narb Technology Inc.

© 2026 narb Technology Inc.