# Overview

## Overview

Something.cool provides rewards to users holding tokens or providing liquidity. These rewards can be claimed through our public API, allowing users to receive their earned SOL or tokens.

## API Basics

* **Base URL**: **Coming Soon**
* **Status**: **Coming Soon**

## Authentication

The API uses Solana wallet signature verification to authenticate users. This ensures that only the actual wallet owner can request a claim transaction to avoid spam. We do not use API keys or tokens; instead, users must sign messages with their wallet to prove ownership.

## Available Endpoints

The API provides several endpoints for interacting with the rewards claiming system:

| Endpoint                                 | Method | Description                                                         |
| ---------------------------------------- | ------ | ------------------------------------------------------------------- |
| `/rewards/:address`                      | GET    | Get all claimable rewards for a wallet address (requires signature) |
| `/rewards/:address/tokens/:tokenAddress` | GET    | Get claimable rewards for a specific token (requires signature)     |
| `/rewards/:signature/status`             | GET    | Check status of a claim transaction                                 |
| `/rewards/:address/initiate`             | POST   | Initiate a claim transaction (requires signature)                   |

## Claim Process Flow

The rewards claiming process follows these steps:

1. **Check Claimable Rewards**
   * Query the API to see what rewards are available for claiming
2. **Initiate Claim**
   * Send a signed request to initiate the claim process
   * The API returns a partially signed transaction
3. **Complete Claim**
   * Sign the transaction with your wallet
   * Submit the fully signed transaction to the Solana network
4. **Verify Status**
   * Check the status of your claim transaction

## Rate Limits

To ensure fair usage of the API, rate limits are enforced:

* **100 requests per 15-minute window** per IP address
* Exceeding this limit will result in HTTP 429 (Too Many Requests) responses

## Error Handling

All errors follow a standardized format with unique error codes. See the [Error Codes](/rewards-claiming/errors.md) page for a comprehensive list.

## Response Format

All API responses follow a consistent format:

### Success Response

```json
{
  "status": "success",
  "data": {
    // Response data specific to the endpoint
  }
}
```

### Error Response

```json
{
  "status": "error",
  "code": "ERROR_CODE",
  "message": "Human-readable error message"
}
```

## Next Steps

* [Authentication Guide](/rewards-claiming/auth.md) - Learn how to authenticate with the API
* [Endpoints Reference](/rewards-claiming/endpoints.md) - Detailed information on API endpoints
* [Errors](/rewards-claiming/errors.md) - All error codes explained
* [Example](/rewards-claiming/example.md) - Look at a simple example in js


---

# 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://docs.something.cool/rewards-claiming/overview.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.
