Golden Archive API

API Documentation

Learn how to integrate with Golden Archive API securely and efficiently.

Getting Started

To use the Golden Archive API, you need an API key. You can generate your API key in your account dashboard.

curl -H "Authorization: Bearer YOUR_API_KEY" https://goldenarchive.com/api/v1/account
  

Base URL

All API endpoints are prefixed with:

https://goldenarchive.com/api/v1/
  

API Endpoints

GET /account

Fetch your account details including balances, status, and investment info.

curl -H "Authorization: Bearer YOUR_API_KEY" https://goldenarchive.com/api/v1/account
    

Response:

{
  "id": 1,
  "username": "john_doe",
  "fiat_balance": 1200.50,
  "btc_balance": 0.025,
  "status": "Active"
}
    

POST /deposit

Deposit funds into your account. Amount must be in USD.

curl -X POST -H "Authorization: Bearer YOUR_API_KEY" \
     -H "Content-Type: application/json" \
     -d '{"amount":1000}' \
     https://goldenarchive.com/api/v1/deposit
    

Response:

{
  "success": true,
  "message": "Deposit successful",
  "new_balance": 2200.50
}
    

POST /withdraw

Request a withdrawal. Amount must be in USD and under your available balance.

curl -X POST -H "Authorization: Bearer YOUR_API_KEY" \
     -H "Content-Type: application/json" \
     -d '{"amount":500}' \
     https://goldenarchive.com/api/v1/withdraw
    

Response:

{
  "success": true,
  "message": "Withdrawal request submitted",
  "pending_balance": 1700.50
}