Skip to content

About

Official Postman collection, OpenAPI 3.1 spec, and quickstarts for Ruby: short links, branded domains, dynamic QR codes, and clickstream analytics.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby Developer REST API — Official Postman Collection & Quickstart

OpenAPI 3.1 License: MIT Run in Postman

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.


Key Features

  • Short Link Management: Create short links on the default rby.one domain (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.
  • 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).

Quickstart with Postman

You can get started either by opening the official Postman public workspace or by importing the collection files manually.

Option A: Open in Postman Public Workspace (Recommended)

  1. Navigate to the Ruby Public API Workspace on Postman.
  2. Select the Ruby Developer API collection and click Fork to add it to your own Postman workspace.
  3. Select the Ruby API (Production) environment.

Option B: Manual File Import

  1. Clone this repository or download the files from postman/:
  2. Open Postman and click Import to load both files.
  3. Select the Ruby API (Production) environment.

Configure Your Credentials

In your Postman Environment, fill in your credentials obtained from the Ruby CMS dashboard (Settings > Developer):

  • baseUrl: https://api.rby.one
  • authMethod: bearer (default) or hmac
  • apiKeyId: Your API Key ID (ak_...)
  • apiKeySecret: Your API Key Secret (for bearer mode, as_...)
  • hmacSecret: Your HMAC Secret (only needed if authMethod is set to hmac, hs_...)
  • defaultDomain: Default short domain (e.g. rby.one or your verified custom domain)
  • shortCode: Sample short code for lookup requests
  • linkPublicId: 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 authMethod is set to hmac, or formats the Authorization: Bearer header when set to bearer.


Authentication Schemes

Ruby supports two authentication mechanisms:

1. Basic Bearer Token (Recommended for Standard Integrations)

Header:

Authorization: Bearer <key_id>:<key_secret>

Example cURL:

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
  }'

2. Enterprise HMAC-SHA256 Request Signing

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

Canonical String-to-Sign:

{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).


Code Examples

Executable code examples are provided in the examples/ directory:


Specification & Documentation


License

This collection and its example code are licensed under the MIT License.

About

Official Postman collection, OpenAPI 3.1 spec, and quickstarts for Ruby: short links, branded domains, dynamic QR codes, and clickstream analytics.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors