SDKs
Other Languages
Use the Bag REST API from any language with cURL examples.
Other Languages
This page is under construction. Check back soon, or reach out to us if you need help with this topic now.
Bag's API is a standard REST API with JSON request/response bodies and Bearer token authentication. You can call it from any language that can make HTTP requests.
cURL example
curl -X POST https://justusebag.xyz/api/payment-links \
-H "Authorization: Bearer $BAG_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "Pro Plan", "amount": 29.99, "network": "base_sepolia"}'Building your own client
If you're building a client library, here's what you need:
- Base URL:
https://justusebag.xyz - Auth:
Authorization: Bearer {apiKey}header on every request - Content type:
application/jsonfor all request and response bodies - OpenAPI spec: Available at justusebag.xyz/openapi.yaml — use it to generate typed clients in any language
See the API Reference for full endpoint documentation.