Skip to content

Getting Started

SlaunchX provides a RESTful API for server-to-server integration. All API endpoints use HMAC-SHA256 signature authentication for secure access.

Base URL

https://{{API_HOST}}/api/v1/

Authentication

Every API request must include four headers:

HeaderDescription
X-Api-KeyYour API key identifier (sk_live_xxx)
X-SignatureHMAC-SHA256 signature of the request
X-TimestampUnix timestamp in seconds
X-NonceUnique request identifier (UUID)

See the Authentication Guide for signature computation details.

Quick Example

bash
curl -X GET https://{{API_HOST}}/api/v1/wallets \
  -H "X-Api-Key: sk_live_xxx" \
  -H "X-Signature: <computed_signature>" \
  -H "X-Timestamp: 1709337600" \
  -H "X-Nonce: 550e8400-e29b-41d4-a716-446655440000"

Response Format

All responses follow a standard envelope:

200 OK200
{
  "version": "1.3.0",
  "timestamp": 1709337600000,
  "success": true,
  "code": "2000",
  "message": "SUCCESS",
  "data": {
    "bizId": "ws_abc123",
    "workspaceName": "My Workspace"
  }
}
FieldTypeDescription
versionstringAPI version
timestampnumberResponse timestamp (epoch ms)
successbooleantrue for 2xx, false for errors
codestringMachine-readable status code
messagestringHuman-readable message
dataobjectResponse payload (null on error)

Error Codes

Error codes are organized by domain prefix. See the Error Handling Guide for the full catalog.

PrefixDomain
SSystem / Validation
WWallet
TTransfer
GAGateway Auth

Pagination

List endpoints support pagination via query parameters:

ParameterDefaultDescription
page0Page number (0-based)
size20Items per page (max 100)
sortvariesSort expression (e.g., createdAt,desc)

See the Pagination Guide for details.

Next Steps

SlaunchX API Documentation