Install the SDK
Grab your credentials
From the Relevance AI dashboard, go to Integrations & API Keys and generate a Relevance API key. You’ll also need your project ID and the region your project is deployed in.For a walkthrough, see API integration.
Create a client
createClient stores the client as the default singleton, so you don’t need to pass it around. Replace REGION_US with REGION_EU or REGION_AU to match your project.Load an agent and send a message
sendMessage returns a Task immediately — it doesn’t wait for the agent to respond. The agent ID is visible on the agent’s page in the dashboard.What to read next
Authentication
Use embed keys for browser apps, or API keys for server code.
Tasks
Understand task status, events, and cleanup.
Messaging
Handle tool calls, user messages, attachments, and errors.
Streaming
Render responses as the agent types them.

