# API Documentation

## API Documentation

### Authentication

```javascript
// API Key required for all endpoints
headers: {
  'X-API-Key': 'your-api-key',
  'Content-Type': 'application/json'
}
```

### Core Endpoints

#### Create Token Validation

POST /api/v1/validate { "platform": "twitter", "content": "Launch $MOON - To the moon! @launchium", "user\_id": "twitter\_user\_id" }

Get Token Info

GET /api/v1/token/{token\_address}

Response:\
{\
"address": "...",\
"name": "Moon Token",\
"symbol": "MOON",\
"market\_cap": 75000,\
"holders": 150,\
"volume\_24h": 25000,\
"creator": "...",\
"created\_at": "2025-07-10T10:00:00Z"\
}

Creator Statistics

GET /api/v1/creator/{wallet\_address}

Response: { "total\_tokens": 5, "successful\_tokens": 3, "total\_fees\_earned": 150.5, "total\_volume": 500000 }

WebSocket Events

// Connect to real-time updates const ws = new WebSocket('wss\://api.launchium.app/v1/stream');

// Subscribe to events ws.send(JSON.stringify({ type: 'subscribe', channels: \['new\_tokens', 'price\_updates', 'migrations'] }));

// Receive updates ws.on('message', (data) => { const event = JSON.parse(data); console.log(event); });

### Rate Limits

* Public endpoints: 100 requests/minute
* Authenticated: 1000 requests/minute
* WebSocket: 100 messages/minute

````
## **14. SDK & Integration**

```markdown
# SDK & Integration

## JavaScript/TypeScript SDK

### Installation
```bash
npm install @launchium/sdk
# or
yarn add @launchium/sdk
````


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://launchium.gitbook.io/launchium/api-documentation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
