> ## Documentation Index
> Fetch the complete documentation index at: https://docs.enginy.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# HTTP

> Learn how to integrate with Enginy API using direct HTTP requests

## Overview

The Enginy API is a RESTful API that can be accessed directly using HTTP requests from any programming language or tool like cURL.

## Quick Start

All requests require an API key in the `x-api-key` header:

```bash theme={null}
curl https://openapi.enginy.ai/endpoint \
  -H "x-api-key: gsk_your_api_key_here" \
  -H "Content-Type: application/json"
```

## Language Examples

<CodeGroup>
  ```python Python theme={null}
  import requests

  headers = {
      "x-api-key": "gsk_your_api_key_here",
      "Content-Type": "application/json"
  }

  response = requests.get("https://openapi.enginy.ai/endpoint", headers=headers)
  data = response.json()
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch('https://openapi.enginy.ai/endpoint', {
    headers: {
      'x-api-key': 'gsk_your_api_key_here',
      'Content-Type': 'application/json',
    },
  })

  const data = await response.json()
  ```

  ```php PHP theme={null}
  <?php
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, "https://api.enginy.ai/endpoint");
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($ch, CURLOPT_HTTPHEADER, [
      "x-api-key: gsk_your_api_key_here",
      "Content-Type: application/json"
  ]);

  $response = curl_exec($ch);
  $data = json_decode($response, true);
  curl_close($ch);
  ?>
  ```

  ```ruby Ruby theme={null}
  require 'net/http'
  require 'json'

  uri = URI('https://openapi.enginy.ai/endpoint')
  http = Net::HTTP.new(uri.host, uri.port)
  http.use_ssl = true

  request = Net::HTTP::Get.new(uri)
  request['x-api-key'] = 'gsk_your_api_key_here'
  request['Content-Type'] = 'application/json'

  response = http.request(request)
  data = JSON.parse(response.body)
  ```
</CodeGroup>

## Next Steps

<CardGroup cols={2}>
  <Card title="API Reference" icon="book" href="/api-reference/introduction">
    View authentication, endpoints, and detailed documentation
  </Card>

  <Card title="Get API Key" icon="key" href="https://app.enginy.ai/api-access">
    Generate and manage your API keys
  </Card>
</CardGroup>
