Skip to main content
POST
/
user
/
set-auth
Set User Auth
curl --request POST \
  --url https://api.klavis.ai/user/set-auth \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "userId": "<string>",
  "serverName": "Affinity",
  "authData": {
    "token": "<string>",
    "api_key": "<string>"
  }
}'
{
  "success": true,
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Your Klavis AI API key.

Body

application/json
userId
string
required

The unique identifier for the user

Minimum length: 1
serverName
enum<string>
required

The name of the MCP server to set authentication for (e.g., 'GitHub', 'Jira')

Available options:
Affinity,
Airtable,
Asana,
Attio,
Box,
Brave Search,
Cal.com,
ClickUp,
Close,
Cloudflare,
Coinbase,
Confluence,
Dialpad,
Discord,
Doc2markdown,
DocuSign,
Dropbox,
ElevenLabs,
Exa,
Figma,
Fireflies,
Firecrawl Deep Research,
Firecrawl Web Search,
Freshdesk,
GitHub,
GitLab,
Gmail,
Gong,
Google Calendar,
Google Docs,
Google Drive,
Google Jobs,
Google Sheets,
Hacker News,
Heygen,
HubSpot,
Jira,
Klaviyo,
Klavis ReportGen,
Linear,
LinkedIn,
Markdown2doc,
Mem0,
Microsoft Teams,
Mixpanel,
Monday,
Moneybird,
Motion,
Notion,
OneDrive,
Openrouter,
Outlook,
PagerDuty,
Pipedrive,
Plai,
Postgres,
PostHog,
QuickBooks,
Resend,
Salesforce,
SendGrid,
Shopify,
Slack,
Stripe,
Supabase,
Tavily,
Vercel,
WhatsApp,
WordPress,
YouTube,
Zendesk,
ServiceNow
authData
object
required

Authentication data

  • Option 1: API Key
  • Option 2: General Auth Data

Response

Successful Response

success
boolean
required
message
string | null
I