Authentication

Secure access to Skillful AI agents requires proper authentication setup.

Getting Your API Key

  1. Request early access on our Discord

  2. 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

Last updated