Developer Quickstart — Make Your First Call in 2 Minutes

Developer Quickstart Guide

Generate an API key, run your first verified AI request in under 2 minutes, and inspect deterministic JSON responses.

Quickstart Overview & Execution SLA

The RSFlowHub Quickstart enables software engineers to integrate production AI endpoints with zero boilerplate. All requests use HTTP POST with Content-Type: application/json and x-api-key authentication. Responses follow a uniform JSON schema delivering results, confidence metrics, and remaining wallet balance with sub-150ms median p50 latency.

1

Create an Account & Retrieve Secret API Key

Register for a free account. Once logged in, open the developer dashboard at Dashboard → API Keys and generate a new key. Copy it immediately to your secret environment store (e.g. .env as RSFLOWHUB_API_KEY). For security, plaintext keys are displayed exactly once and stored as SHA-256 hashes.

2

Execute Your First AI Request

Interactive Playground

Authenticate via the custom x-api-key HTTP header (or Authorization: Bearer <KEY>). Below is a verified request classifying user intent with the Intent Detection endpoint:

curl-exec.sh
curl -X POST "https://www.rsflowhub.com/api/v1/ai/intent-detection" \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{"text":"I want to cancel my subscription and review my invoices.","intent_types":["cancel_subscription","billing_issue","upgrade_plan"]}'
<?php

use GuzzleHttp\Client;

$client = new Client();
$response = $client->request('POST', 'https://www.rsflowhub.com/api/v1/ai/intent-detection', [
    'headers' => [
        'x-api-key' => 'YOUR_API_KEY',
        'Content-Type' => 'application/json',
    ],
    'json' => array (
      'text' => 'I want to cancel my subscription and review my invoices.',
      'intent_types' => 
      array (
        0 => 'cancel_subscription',
        1 => 'billing_issue',
        2 => 'upgrade_plan',
      ),
    ),
]);

$data = json_decode($response->getBody(), true);
print_r($data);
use Illuminate\Support\Facades\Http;

$response = Http::withHeaders([
    'x-api-key' => 'YOUR_API_KEY',
    'Content-Type' => 'application/json',
])->post('https://www.rsflowhub.com/api/v1/ai/intent-detection', array (
      'text' => 'I want to cancel my subscription and review my invoices.',
      'intent_types' => 
      array (
        0 => 'cancel_subscription',
        1 => 'billing_issue',
        2 => 'upgrade_plan',
      ),
    ));

$data = $response->json();
const response = await fetch('https://www.rsflowhub.com/api/v1/ai/intent-detection', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'x-api-key': 'YOUR_API_KEY'
  },
  body: JSON.stringify({"text":"I want to cancel my subscription and review my invoices.","intent_types":["cancel_subscription","billing_issue","upgrade_plan"]})
});

const data = await response.json();
console.log(data);
const axios = require('axios');

const response = await axios.post('https://www.rsflowhub.com/api/v1/ai/intent-detection', {"text":"I want to cancel my subscription and review my invoices.","intent_types":["cancel_subscription","billing_issue","upgrade_plan"]}, {
  headers: {
    'Content-Type': 'application/json',
    'x-api-key': 'YOUR_API_KEY'
  }
});

console.log(response.data);
import requests

url = "https://www.rsflowhub.com/api/v1/ai/intent-detection"
headers = {
    "Content-Type": "application/json",
    "x-api-key": "YOUR_API_KEY"
}
payload = {"text":"I want to cancel my subscription and review my invoices.","intent_types":["cancel_subscription","billing_issue","upgrade_plan"]}

response = requests.post(url, json=payload, headers=headers)
print(response.json())
3

Inspect the Deterministic JSON Envelope

Every RSFlowHub endpoint adheres to a standardized JSON response contract containing execution data, confidence metrics, and realtime credit balances:

response.json JSON
200 OK 112ms
{
  "success": true,
  "data": {
    "result": {
      "intent": "cancel_subscription",
      "confidence": 0.98,
      "entities": {
        "action": "cancel",
        "target": "subscription"
      }
    }
  },
  "meta": {
    "credits_used": 1,
    "credits_remaining": 999,
    "execution_time_ms": 112
  }
}
4

Production Reliability Hardening

Before launching into production, integrate these three resilience controls:

  • 5-Second Client Timeout: Prevent thread pool exhaustion by configuring strict HTTP socket timeouts.
  • Exponential Backoff with Jitter: If you receive an HTTP 429 Rate Limit, respect the Retry-After header and retry with randomized jitter.
  • Environment Isolation: Use distinct API keys for local development, staging tests, and production traffic.
Test Interactively in the Playground
Don't want to write code right away? Use the RSFlowHub Live API Playground to test endpoints, customize JSON parameters, and inspect responses directly in your browser.

Quickstart Technical Q&A

In under two minutes. Register for a free RSFlowHub account, generate your API key in Dashboard -> API Keys, and copy any cURL, Python, Node.js, PHP, or Laravel code snippet from this quickstart.

You must provide "Content-Type: application/json" and "x-api-key: YOUR_API_KEY" (or "Authorization: Bearer YOUR_API_KEY").

Yes. RSFlowHub features an interactive API Playground where you can select any endpoint, test payloads live, inspect JSON responses, and view credit costs with zero code.

Ready to build?

Create your free account and make your first API call in minutes.