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

# Introduction

> Archefusion is a payment orchestrator that helps businesses accept payments through multiple gateways with a single integration. Learn how to integrate the Archefusion APIs into your application.

## API basics

The Archefusion API is a RESTful, JSON-based API that uses standard HTTP methods and requires authentication for all requests. All requests must be made over HTTPS.

## Base URL

The base URL for all endpoints is `https://dev.api-gateway.archefusion.com`. This works for both test and live environments. Your API key determines which environment you are in.

## Environment and API keys

Archefusion offers two completely isolated environments: Test and Live. Each of these environments has its own set of keys.

| Key type            | Prefix           |
| ------------------- | ---------------- |
| Test API key        | `af_test_`       |
| Test webhook secret | `af_whsec_test_` |
| Live API key        | `af_live_`       |
| Live webhook secret | `af_whsec_live_` |

Use the test keys for development and testing. Switch to live keys when you are ready for production.

<Note>
  See [authentication](https://docs.archefusion.com/pages/api-reference/authentication) for details on obtaining and managing your API keys.
</Note>

## Content-Type

All requests must include a `Content-Type` header set to `application/json`. Requests and response bodies are formatted as JSON.

## HTTP methods

Archefusion uses standard HTTP verbs for different actions.

| Method | Description           |
| ------ | --------------------- |
| GET    | Retrieves data        |
| POST   | Creates new resources |

## HTTP response codes

Archefusion returns standard HTTP response codes to indicate the outcome of each request.

| HTTP code | Description                                                                                                                                                             |
| --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 200       | The request was processed successfully. However, this doesn't mean the intended action was successful. You should check the `data.status` field to confirm the outcome. |
| 201       | A new resource was created successfully.                                                                                                                                |
| 400       | The request was not processed. This occurs when query or body parameters are invalid or a required field is missing.                                                    |
| 401       | The request was not authorized. This occurs when the provided API key is invalid or missing.                                                                            |
| 404       | The requested resource does not exist.                                                                                                                                  |
| 500       | An error occurred on Archefusion's servers. If you encounter this error, contact [support@archefusion.com](mailto:support@archefusion.com).                             |

<Card title="Next step" icon="rocket" href="https://docs.archefusion.com/pages/api-reference/authentication">
  Learn how to authenticate API requests and manage your API keys.
</Card>
