Build Your Omniagent

Manage Your Agent

List, update, and delete your Omniagents

After creating an agent, you can list all your agents, update their configuration, or delete them.

List agents

Retrieve all agents in your project:

curl https://napster-api.napster.com/public/agents \
  -H "X-Api-Key: $NAPSTER_API_KEY"

Get a single agent

curl https://napster-api.napster.com/public/agents/agent_abc123 \
  -H "X-Api-Key: $NAPSTER_API_KEY"

Update an agent

Use PATCH to update any field on the agent. Only the fields you include in the request body are changed — everything else stays the same.

curl -X PATCH https://napster-api.napster.com/public/agents/agent_abc123 \
  -H "X-Api-Key: $NAPSTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "language": "es",
    "voiceId": "shimmer"
  }'

You can update any of the fields from the creation request: companionId, name, voiceId, language, functions, faqCollections, knowledgeBaseId, and providerSettings. Changes apply to all channels that use this agent.

Delete an agent

curl -X DELETE https://napster-api.napster.com/public/agents/agent_abc123 \
  -H "X-Api-Key: $NAPSTER_API_KEY"

Deleting an agent removes it for all channels — WebRTC, WebSocket, VoIP, and SIP. To remove only a specific channel configuration while keeping the agent, delete the channel config instead (e.g. DELETE /public/agents/{agentId}/channels/sip).

Managing channel configs

Each channel can have its own configuration that overrides the agent's defaults. You can retrieve or remove a channel config without affecting the agent itself:

# Get a channel config (e.g. SIP)
curl https://napster-api.napster.com/public/agents/agent_abc123/channels/sip \
  -H "X-Api-Key: $NAPSTER_API_KEY"

# Delete a channel config (keeps the agent, removes channel overrides)
curl -X DELETE https://napster-api.napster.com/public/agents/agent_abc123/channels/sip \
  -H "X-Api-Key: $NAPSTER_API_KEY"

If the agent has no config for that channel, the GET returns 404 with an AgentChannelConfigNotFound error, and sessions on that channel use the agent's base configuration. The same error comes back for an agent ID that doesn't exist, so use GET /public/agents/{agentId} to check the agent itself.

For details on setting up channel configs, see the channel-specific guides: WebRTC, WebSockets, VoIP, SIP.

On this page