Skip to content

Authentication

The ByteConnect API uses JWT (JSON Web Token) authentication. You’ll need to obtain an access token before making API requests.

https://quinix.byteconnect.us

Exchange your credentials for access and refresh tokens.

Request:

Terminal window
curl -X POST https://quinix.byteconnect.us/auth \
-H "Content-Type: application/json" \
-d '{
"username": "your_username",
"password": "your_password"
}'

Response:

{
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...",
"token_type": "bearer",
"refresh_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9..."
}
TokenLifetime
Access Token15 minutes
Refresh Token15 days

When your access token expires, use the refresh token to get a new one.

Request:

Terminal window
curl -X POST https://quinix.byteconnect.us/auth_refresh \
-H "Content-Type: application/json" \
-d '{
"access_token": "expired_access_token",
"refresh_token": "your_refresh_token"
}'

Response:

{
"access_token": "new_access_token",
"token_type": "bearer",
"refresh_token": "new_refresh_token"
}

Include the access token in your API requests:

Terminal window
curl -X POST https://quinix.byteconnect.us/create_transaction \
-H "Content-Type: application/json" \
-d '{
"access_token": "your_access_token",
"amount": "25.00",
"crypto_selected": "BTC"
}'
  • Store credentials in environment variables
  • Use .gitignore to prevent committing .env files
  • Rotate credentials periodically
  • Use HTTPS for all API requests
Terminal window
# .env file
BYTECONNECT_USERNAME=your_username
BYTECONNECT_PASSWORD=your_password
# Python example
import os
import requests
response = requests.post(
"https://quinix.byteconnect.us/auth",
json={
"username": os.environ["BYTECONNECT_USERNAME"],
"password": os.environ["BYTECONNECT_PASSWORD"]
}
)
Status CodeDescription
401Invalid credentials or expired token
403Insufficient permissions
429Rate limit exceeded

Example Error:

{
"error": "invalid_credentials",
"message": "The provided username or password is incorrect"
}