LogoAidir Docs
LogoAidir Docs
Homepage

Getting Started

Twitter API Overview

Tools

Twitter API Claude Code SKILL

API Reference

X (Twitter)

Authentication

How to authenticate with the Twitter API

Authentication

All API requests require authentication using an API token.

Getting Your API Token

  1. Sign up for an account at aidir.fun
  2. Navigate to your dashboard
  3. Generate an API token
  4. Copy and securely store your token

Using Your Token

Include your API token in the Authorization header of every request:

curl -X GET "https://api.aidir.fun/v1/user/profile?username=elonmusk" \
  -H "Authorization: Bearer YOUR_API_TOKEN"

Security Best Practices

  • Never expose your API token in client-side code
  • Store tokens securely using environment variables
  • Rotate tokens regularly
  • Use different tokens for different environments (development, production)

Token Permissions

All tokens have access to the same endpoints. Rate limits apply based on your subscription plan.

Table of Contents

Authentication
Getting Your API Token
Using Your Token
Security Best Practices
Token Permissions