The official Postman collection, OpenAPI 3.1 specification, and quickstart guides for the Ruby Developer REST API.
Ruby is a modern, high-performance enterprise URL shortener and link management platform offering ultra-low latency global redirects, dynamic vector QR codes, deep real-time clickstream analytics, and transparent tier capacity with zero link rot.
- Short Link Management: Create short links on the default
rby.onedomain (auto-allocated 8-character Base36 codes) or verified branded custom domains (with custom aliases). - Dynamic QR Codes & Device Targeting: Mobile operating system routing (iOS App Store vs. Android Google Play URLs) and instant scannable QR codes for print collateral.
- Link Groups & Batch Operations: Organize links into campaign collections, retrieve aggregated metrics, programmatically batch create links, and export full CSV datasets.
- Dual Authentication:
- Basic Bearer Token (
Authorization: Bearer <key_id>:<key_secret>) for frictionless server-to-server integration. - Enterprise HMAC-SHA256 Request Signing (
X-Rby-Key-Id,X-Rby-Timestamp,X-Rby-Signature) for tamper-proof requests and replay defense.
- Basic Bearer Token (
- Real-Time Clickstream Analytics: Time-series click metrics, unique visitors, bot filtering, and categorical breakdowns (devices, browsers, OS, countries, referrers).
- Predictable Rate Limiting: Sliding-window token bucket with standardized rate limit headers (
X-RateLimit-Limit,X-RateLimit-Remaining,X-RateLimit-Reset,Retry-After).
You can get started either by opening the official Postman public workspace or by importing the collection files manually.
- Navigate to the Ruby Public API Workspace on Postman.
- Select the Ruby Developer API collection and click Fork to add it to your own Postman workspace.
- Select the Ruby API (Production) environment.
- Clone this repository or download the files from
postman/: - Open Postman and click Import to load both files.
- Select the Ruby API (Production) environment.
In your Postman Environment, fill in your credentials obtained from the Ruby CMS dashboard (Settings > Developer):
baseUrl:https://api.rby.oneauthMethod:bearer(default) orhmacapiKeyId: Your API Key ID (ak_...)apiKeySecret: Your API Key Secret (forbearermode,as_...)hmacSecret: Your HMAC Secret (only needed ifauthMethodis set tohmac,hs_...)defaultDomain: Default short domain (e.g.rby.oneor your verified custom domain)shortCode: Sample short code for lookup requestslinkPublicId: Sample link public ID (e.g.lnk_...)groupPublicId: Sample group public ID (e.g.grp_...)
Note: The collection includes an automatic Pre-request Script that signs requests using HMAC-SHA256 when
authMethodis set tohmac, or formats theAuthorization: Bearerheader when set tobearer.
Ruby supports two authentication mechanisms:
Header:
Authorization: Bearer <key_id>:<key_secret>curl -X POST "https://api.rby.one/v1/links" \
-H "Authorization: Bearer YOUR_API_KEY_ID:YOUR_API_KEY_SECRET" \
-H "Content-Type: application/json" \
-d '{
"destination_url": "https://example.com/summer-promotion",
"domain": "rby.one",
"title": "Summer Campaign",
"utm_source": "newsletter",
"utm_medium": "email",
"utm_campaign": "summer_sale",
"forward_parameters": true
}'For environments requiring request tamper-proofing and replay defense.
Headers:
X-Rby-Key-Id: Your API Key ID (ak_...)X-Rby-Timestamp: Current UNIX timestamp in seconds (must be within ±60 seconds of server time)X-Rby-Signature: Hex-encoded HMAC-SHA256 signature calculated over the canonical payload
{timestamp}\n{METHOD}\n{path}\n{body_hash}
Where {body_hash} is the SHA-256 hex digest of the raw request body (or empty string hash e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 if no body).
Executable code examples are provided in the examples/ directory:
- Python:
- Node.js:
- cURL:
- OpenAPI 3.1 Specification:
openapi_v1.json - Official Documentation: https://docs.rby.one
- Interactive Swagger UI: https://docs.rby.one/api/reference/swagger/
This collection and its example code are licensed under the MIT License.