SkillfulAI
  • Skillful AI
    • Welcome
    • About us
    • Ecosystem
  • Web SDK
    • Overview
    • Getting Started
      • Installation
      • Quick Start
      • Authentication
    • SDK Reference
    • Templates
      • Telegram Bot Template
      • Express Server Template
        • API Reference
      • Discord Bot Template
        • ProActive Mode
      • Kick Stream Bot
        • Getting Started
          • Installation
          • Quick Start
        • Create Commands
        • Advanced Configurations
  • Unity Gaming SDK
    • Overview
    • Getting Started
      • Installation
      • Authentication
    • Services
      • Skillful Agents
        • Overview
        • Quick Start
        • Service Reference
      • Smart NPCs
        • Overview
        • Quick Start
        • Service Reference
      • Skillful Inference
        • Overview
        • Quick Start
        • Service Reference
          • Question Answering
          • Sentence Similarity
          • Speech Recognition
          • Text Classification
          • Text Generation
          • Text Summary
          • Text-To-Image
          • Zero Shot Classification
          • Translation (Localization)
    • Audio Recorder
    • Additional Utilities
Powered by GitBook
On this page
  • Getting Your API Key
  • Setting Up Authentication
  • Best Practices
  • Authentication Errors
  1. Web SDK
  2. Getting Started

Authentication

PreviousQuick StartNextSDK Reference

Last updated 29 days ago

Secure access to Skillful AI agents requires proper authentication setup.

Getting Your API Key

  1. Sign up at

  2. Generate your API Key from within your dashboard

  3. Use your provided API key for authentication as follows:

Setting Up Authentication

const client = new SkillfulClient({
    apiKey: 'your-api-key'
});

Best Practices

  • Never expose your API key in client-side code

  • Use environment variables to store your API key

  • Set up proper error handling for authentication failures

Using Environment Variables

// Using dotenv
require('dotenv').config();

const client = new SkillfulClient({
    apiKey: process.env.SKILLFUL_API_KEY
});

Authentication Errors

Common authentication errors and their solutions:

  1. Unauthorized Error

    • Check if your API key is valid

    • Ensure the API key is correctly formatted

    • Verify your account status

  2. Rate Limiting

    • Check your current API usage

    • Consider upgrading your plan if needed

    • Implement proper request throttling

Skillful AI Dashboard