Skip to content

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.

In the dashboard, open MCP connections, select your connection, and generate a platform key. Copy it now; it is shown only once.

Terminal window
export UAV_PLATFORM_KEY="uav_..."

Create one tenant per customer account. external_id is your own ID for that account.

Terminal window
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.

Terminal window
export UAV_TENANT_KEY="uav_..."
Terminal window
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.

tenant_id must match the tenant your key belongs to.

Terminal window
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.

Terminal window
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.