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

# API Reference

> Complete reference for the Atlas Payment API

The Atlas API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

## Base URL

All API requests should be made to:

```
https://api.atlaspay.cc/functions/v1
```

## Authentication

The Atlas API uses API keys to authenticate requests. You can view and manage your API keys in the [Dashboard](https://atlaspay.cc/dashboard/api-keys).

Include your API key in the `Authorization` header:

```bash theme={null}
Authorization: Bearer sk_test_your_api_key
```

## Environments

| Environment | Key Prefix | Description                     |
| ----------- | ---------- | ------------------------------- |
| Test        | `sk_test_` | Use for development and testing |
| Live        | `sk_live_` | Use for production transactions |

## Response Codes

| Code | Description                         |
| ---- | ----------------------------------- |
| 200  | Success                             |
| 400  | Bad Request - Invalid parameters    |
| 401  | Unauthorized - Invalid API key      |
| 404  | Not Found - Resource doesn't exist  |
| 429  | Rate Limited - Too many requests    |
| 500  | Server Error - Something went wrong |
