Skip to main content
POST
/
public-api
/
channels
Create a channel
curl --request POST \
  --url https://api.neoagent.io/public-api/channels \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "internal_name": "<string>",
  "agent_id": 123,
  "color_icon_url": "<string>",
  "description": "<string>",
  "display_name": "<string>",
  "outline_icon_url": "<string>",
  "relay_prefix": "<string>",
  "show_agent_progress_steps": true,
  "status": "ACTIVE",
  "welcome_message": "<string>"
}
'
{
  "data": {
    "agent_id": 123,
    "color_icon_url": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "description": "<string>",
    "display_name": "<string>",
    "id": "<string>",
    "internal_name": "<string>",
    "outline_icon_url": "<string>",
    "relay_prefix": "<string>",
    "show_agent_progress_steps": true,
    "updated_at": "2023-11-07T05:31:56Z",
    "welcome_message": "<string>"
  },
  "meta": {
    "request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "timings_ms": {},
    "pagination": {
      "has_more": true,
      "next_cursor": "<string>"
    },
    "warnings": [
      "<string>"
    ]
  }
}

Authorizations

Authorization
string
header
required

Authorization: Bearer <token> where <token> is either a neo_sk_<env>_<secret> API key (service account) or a Microsoft Entra ID access token (dashboard user).

Body

application/json
audience
enum<string>
required

Trust domain a tool / agent / channel may be exposed to.

MSP — technician/dashboard surfaces; tools may take MSP-wide scope and accept company/ contact identifiers as LLM-supplied parameters. An agent/channel with this audience is the MSP's own INTERNAL surface (the dashboard labels MSP as "Internal"). END_USER — the MSP's end-client users (white-label Teams bots, embedded end-company chat). END_USER tools must derive ALL identity (end-company, contact) from the session context, never from tool parameters, so a prompt-injected or curious end user cannot widen scope. The two surfaces are disjoint by construction: resolve_end_user_toolbox resolves only END_USER tools (deny-by-default, no auto-injection), and resolve_full_toolbox is for MSP surfaces only.

Available options:
MSP,
END_USER
internal_name
string
required
type
enum<string>
required

Transport a channel binds an agent to. TEAMS is the only M2 transport; the rest are reserved.

Available options:
TEAMS,
SLACK,
PORTAL,
EMAIL
agent_id
integer | null
color_icon_url
string | null
description
string | null
display_name
string | null
outline_icon_url
string | null
relay_prefix
string | null
show_agent_progress_steps
boolean
default:true
status
enum<string>
default:ACTIVE
Available options:
ACTIVE,
DISCONNECTED
welcome_message
string | null

Response

Success.

data
PublicChannel · object
required

A channel: a CONVERSATIONAL agent bound to a transport, plus its branding.

meta
object
required