> For the complete documentation index, see [llms.txt](https://docs.kangal.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kangal.dev/sdks/language-quickstarts.md).

# Language quickstarts

The examples below use the official Kangal Admin API package coordinates. A registry command works after that package version has been published; otherwise install the matching source package from the signed GitHub release. Set `KANGAL_ADMIN_URL` to the Admin API URL and keep the bearer token in a secret store.

## TypeScript

```bash
npm install @kangal/sdk
```

```ts
import { KangalApiClient } from '@kangal/sdk';

const client = new KangalApiClient(process.env.KANGAL_ADMIN_URL!, {
  bearerToken: process.env.KANGAL_ADMIN_TOKEN,
});

const gateways = await client.listGatewaysAdminGatewaysGet();
```

## Python

```bash
python -m pip install kangal-api-sdk
```

```python
import os
from kangal_api_sdk import KangalApiClient

client = KangalApiClient(
    os.environ["KANGAL_ADMIN_URL"],
    bearer_token=os.environ["KANGAL_ADMIN_TOKEN"],
)
gateways = client.list_gateways_admin_gateways_get()
```

## Go

```bash
go get github.com/latifv/kangal-sdk-go@latest
```

```go
import kangalapi "github.com/latifv/kangal-sdk-go"

client := kangalapi.NewClient(os.Getenv("KANGAL_ADMIN_URL"))
client.BearerToken = os.Getenv("KANGAL_ADMIN_TOKEN")
gateways, err := client.ListGatewaysAdminGatewaysGet(context.Background(), kangalapi.RequestOptions{})
```

## Java

```xml
<dependency>
  <groupId>dev.kangal</groupId>
  <artifactId>kangal-sdk</artifactId>
  <version>1.0.0</version>
</dependency>
```

```java
var client = new KangalApiClient(System.getenv("KANGAL_ADMIN_URL"));
client.bearerToken = System.getenv("KANGAL_ADMIN_TOKEN");
var gateways = client.listGatewaysAdminGatewaysGet(new KangalApiClient.RequestOptions());
```

## C\#

```bash
dotnet add package Kangal.SDK
```

```csharp
using Kangal.Generated;

var client = new KangalApiClient(Environment.GetEnvironmentVariable("KANGAL_ADMIN_URL")!)
{
    BearerToken = Environment.GetEnvironmentVariable("KANGAL_ADMIN_TOKEN")
};
var gateways = await client.ListGatewaysAdminGatewaysGetAsync();
```

## PHP

```bash
composer require kangal/sdk
```

```php
use Kangal\Generated\KangalApiClient;

$client = new KangalApiClient(getenv('KANGAL_ADMIN_URL'));
$client->bearerToken = getenv('KANGAL_ADMIN_TOKEN') ?: null;
$gateways = $client->listGatewaysAdminGatewaysGet();
```

## API-version packages

Developer Portal exports use service-and-version-specific package and module names. Build or install the downloaded package locally, then configure the public gateway Proxy URL and the API key or bearer token required by that API. The package `README.md` contains its exact import name; `REFERENCE.md` lists all generated methods. Use the generic request method only when no generated operation matches the call.

See the [complete Admin API method reference](/sdks/admin-api-methods.md) for all current methods and [SDK distribution](/sdks/distribution.md) for release channels.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.kangal.dev/sdks/language-quickstarts.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
