Quickstart
This walks through the full path for a platform that serves many customer accounts. It takes about ten minutes once your MCP Gateway is running.
Before you start
Section titled “Before you start”- A UAVCrew organization. Sign in to the dashboard.
- An MCP Gateway connected to your API. See Connect your MCP Gateway.
1. Get a platform key
Section titled “1. Get a platform key”In the dashboard, open MCP connections, select your connection, and generate a platform key. Copy it now; it is shown only once.
export UAV_PLATFORM_KEY="uav_..."2. Create a tenant
Section titled “2. Create a tenant”Create one tenant per customer account. external_id is your own ID for that account.
curl -X POST https://api.uavcrew.ai/v1/tenants \ -H "X-API-Key: $UAV_PLATFORM_KEY" \ -H "Content-Type: application/json" \ -d '{"name": "Skyline Aerial", "external_id": "acct_4821"}'The response includes api_key, the tenant’s chat key. It is returned only once; store it securely.
export UAV_TENANT_KEY="uav_..."3. Start a conversation
Section titled “3. Start a conversation”curl -X POST https://api.uavcrew.ai/v1/chat/conversations \ -H "X-API-Key: $UAV_TENANT_KEY" \ -H "Content-Type: application/json" \ -d '{"title": "Inspection planning", "agent_slugs": ["tucker"]}'Note the id in the response.
4. Send a message
Section titled “4. Send a message”tenant_id must match the tenant your key belongs to.
curl -X POST https://api.uavcrew.ai/v1/chat/conversations/$CONVERSATION_ID/messages \ -H "X-API-Key: $UAV_TENANT_KEY" \ -H "Content-Type: application/json" \ -d '{ "content": "Which aircraft are due for maintenance in the next 30 days?", "tenant_id": "acct_4821", "agent": "tucker" }'The call returns your message right away. The agent’s reply arrives on the conversation’s event stream.
5. Read the reply
Section titled “5. Read the reply”curl -N https://api.uavcrew.ai/v1/chat/conversations/$CONVERSATION_ID/stream \ -H "X-API-Key: $UAV_TENANT_KEY"You will see stream_start, a series of stream_chunk events, and a final message event with the complete reply. See Stream replies for how to render them.
Next steps
Section titled “Next steps”- Add chat to your app covers context, mentions and feedback.
- Approve what the crew writes covers agentic mode.
