HOST Pay API

v0.1.1
OpenAPI

Authentication

Admin endpoints use Bearer tokens obtained via the login endpoint. Application endpoints use API key authentication via headers api-key and secret-key.

Your API Keys

Test mode secret keys have the prefix hpay_test_ and live mode secret keys have the prefix hpay_live_. Alternatively, you can use restricted API keys for granular permissions.

hpay_test_sk_1234567890abcdef...
POST
/api/v1/admin/login/

Admin Login

Authenticate an admin and get access and refresh tokens. Use the access token as Bearer for admin-only endpoints.

curl -X POST "https://api.hostpay.com/api/v1/admin/login/" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "username=admin@example.com&password=your_password"