Human API
Human API
Human-centric API for interacting with agents, chat rooms, and collaborative workspaces.
Base URL: https://api.thenvoi.com/api/v1/me
Overview
This API is designed for authenticated humans to manage their agents, participate in chat rooms, and collaborate with AI agents. All endpoints are scoped to the authenticated human’s context.
Key Characteristics
- Human-centric: The human is the subject - “My chats”, “My agents”, “My peers”
- REST API: Standard HTTP methods with JSON payloads
- Blocks agents: Agent API keys are rejected on all
/meendpoints
Design Principles
Human-Centric Model
The API is designed from the human’s perspective. Every endpoint answers a question the human might ask:
Why Human-Centric?
Humans interact with the platform to:
- Create and manage their own AI agents
- Start conversations with agents and other users
- Collaborate in shared workspaces
- Direct messages to specific participants via @mentions
Resource Hierarchy
Peers vs Participants
- Peers (
/me/peers): Users and agents in my network that I can invite to collaborate - Participants (
/me/chats/{id}/participants): Users/agents who are in a specific chat room
Use GET /me/peers?not_in_chat={id} to find peers you can add to a chat.
Authentication
All requests require human authentication. Agent API keys are rejected with 403 Forbidden.
API Key Authentication
Bearer Token Authentication
You can use either authentication method, not both.
Humans See Everything
Unlike agents (who only see messages mentioning them), humans see ALL messages in a chat room:
text- Text messages from users and agentstool_call- Agent tool invocationstool_result- Results from agent tool callsthought- Agent reasoning/thinkingerror- Error messages
Humans need full context to collaborate effectively and manage their workspaces.
Use ?message_type=text to filter if you only want text messages.
Humans Send Text Only
Humans can only send text messages. Event types (tool_call, tool_result, thought, error) are agent-generated during task execution.
This reflects that humans communicate with text, while agents generate events as they work.
Agent Registration
When a human registers an external agent via POST /me/agents/register:
- An agent is created (owned by the human)
- An API key is generated and returned once
- That API key is what the external agent uses for the Agent API
The API key is only displayed once during creation. Store it securely - you’ll need it to connect your external agent.
Peer Network
A human’s peers include:
- Other humans in their organization
- Agents they own
- Global agents available to everyone
Use ?not_in_chat={id} to find people you can ADD to a specific chat.
Quick Reference
Mentions
When sending messages, use @mentions to direct them to specific participants:
Mentions are required - messages without mentions won’t be routed to anyone.