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

# API Keys

> Inspect, manage, and audit API keys issued to your business.

API keys are used to authenticate requests between your application and the Pursar API.

Pursar issues distinct keys for your Sandbox and Live environments:

* **Publishable keys** (`pk_test_`, `pk_live_`): Intended for public client-side applications, websites, mobile apps, and Checkout SDKs.
* **Secret keys** (`sk_test_`, `sk_live_`): Must be kept confidential on your secure backend server. Never expose secret keys in client-side code, public GitHub repositories, or mobile app binaries.

***

### List API Keys

`GET /api_keys`

Returns all active API keys provisioned for your business.

### Code Examples

```bash cURL theme={null}
curl -G https://api.viarosandbox.com/v1/api_keys \
  -u sk_test_uLsofsae3tB9Izwgeuy0Mxbh4JIxUPSG:
```

```python Python theme={null}
import requests

url = "https://api.viarosandbox.com/v1/api_keys"
auth = ("sk_test_uLsofsae3tB9Izwgeuy0Mxbh4JIxUPSG", "")

response = requests.get(url, auth=auth)
print(response.json())
```

```javascript Node.js theme={null}
const axios = require('axios');

async function listApiKeys() {
  const response = await axios.get('https://api.viarosandbox.com/v1/api_keys', {
    auth: {
      username: 'sk_test_uLsofsae3tB9Izwgeuy0Mxbh4JIxUPSG',
      password: ''
    }
  });

  console.log(response.data);
}

listApiKeys();
```

***

### Response

```json theme={null}
{
  "object": "list",
  "data": [
    {
      "id": "key_sandbox_sec_01",
      "object": "api_key",
      "name": "Default Test Secret Key",
      "key_prefix": "sk_test_uLso",
      "environment": "sandbox",
      "is_active": true,
      "created_at": "2026-11-06T10:00:00Z"
    },
    {
      "id": "key_sandbox_pub_01",
      "object": "api_key",
      "name": "Default Test Publishable Key",
      "key_prefix": "pk_test_a8b9",
      "environment": "sandbox",
      "is_active": true,
      "created_at": "2026-11-06T10:00:00Z"
    }
  ]
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.