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

# Get Access Token

> Authenticate and obtain an access token

Get an access token to initiate payment transactions.

## Endpoint

`POST https://quickei.io/pay/sandbox/api/v1/authentication/token`

## Parameters

<ParamField body="client_id" type="string" required>
  Your merchant API client/primary key
</ParamField>

<ParamField body="secret_id" type="string" required>
  Your merchant API secret key
</ParamField>

## Request Example — Guzzle (PHP)

```php theme={null}
<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('POST',
  'https://quickei.io/pay/sandbox/api/v1/authentication/token', [
  'json' => [
    'client_id'  => 'YOUR_CLIENT_ID',
    'secret_id'  => 'YOUR_SECRET_ID',
  ],
  'headers' => [
    'accept'       => 'application/json',
    'content-type' => 'application/json',
  ],
]);
echo $response->getBody();
```

## Response — 200 OK

```json theme={null}
{
  "message": {
    "code": 200,
    "success": ["SUCCESS"]
  },
  "data": {
    "access_token": "nyXPO8Re5SXP...",
    "expire_time": 600
  },
  "type": "success"
}
```

## Error Response — 400 FAILED

```json theme={null}
{
  "message": {
    "code": 400,
    "error": ["Invalid secret ID"]
  },
  "data": [],
  "type": "error"
}
```
