# API Reference

Integrate Game Launcher Cloud into your workflows with our RESTful API.

***

{% hint style="success" %}
**Looking for the End-points?**

<a href="https://api.gamelauncher.cloud/swagger/index.html" class="button primary" data-icon="up-right-from-square">Visit Swagger API Reference</a>
{% endhint %}

## Overview

The Game Launcher Cloud API provides programmatic access to all platform features.

{% @mermaid/diagram content="graph LR
Client\[Your Application] --> Auth\[Authenticate]
Auth --> API\[API Endpoints]
API --> Response\[JSON Response]

```
style Auth fill:#4f46e5,stroke:#4338ca,color:#fff
style Response fill:#10b981,stroke:#059669,color:#fff" %}
```

**Base URL:**

```
https://api.gamelauncher.cloud/api
```

***

## Authentication

### API Keys

Generate an API key from your dashboard:

**Dashboard** → **User** → **API Keys** → **Create API Key**

<a href="https://app.gamelauncher.cloud/user/api-keys" class="button primary" data-icon="up-right-from-square">Create API Key in your account</a>

```bash
Authorization: Bearer YOUR_API_KEY
```

**Example Request:**

```bash
curl -X GET "https://api.gamelauncher.cloud/api/apps" \
  -H "Authorization: Bearer glc_1234567890abcdef" \
  -H "Content-Type: application/json"
```

{% hint style="warning" %}
**Keep it Secret**: Never expose API keys in client-side code or public repositories!
{% endhint %}

***

## Response Format

### Standard Response

All API responses follow this format:

```json
{
  "statusCode": 100,
  "isSuccess": true,
  "errorMessages": [
    "string"
  ],
  "result": "string"
}
```

### Error Response

{% hint style="success" %}
**Need API Support?** Contact our developer team at <support@gamelauncher.cloud>
{% endhint %}


---

# 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://gamelauncher.cloud/help/reference/api-reference.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.
