RequestRocket Documentation
Getting Started

Getting Started

Learn how to use RequestRocket to secure your API requests

Getting Started with RequestRocket

This guide will walk you through the essential steps to get started with RequestRocket and create your first API proxy.

Quick Start Guide

Create an Account or Sign In

Visit the RequestRocket platform and create a new account or sign in with your existing credentials.

Create an Organisation

Organisations allow you to manage team members, projects, and access controls in one place.

  1. Click the user profile icon (or account menu) in the top right corner of the screen
  2. Click "Organisations" in the dropdown menu
  3. On the Clients tab (Your Orgs), click "Create"
  4. Enter your organisation details
  5. Click "Create" to finalize

Create a Target Credential

This credential is used by RequestRocket to authenticate with your target API.

  1. Navigate to the Target Credentials section
  2. Click "Create"
  3. Choose a Region as your target will be in
  4. Select the appropriate Auth Type for your target API
  5. Configure the authentication details
  6. Click "Create"

Enter your details carefully - they cannot be viewed or changed after creation!

Create a Target

Define the destination API you want to connect to.

  1. Navigate to the Targets section
  2. Click "Create"
  3. Enter a descriptive Name
  4. Select the same Region as your target credential
  5. Enter the Base URL (e.g., https://api.example.com)
  6. Click "Create"

Create a Proxy Credential

This is the credential your application will use to authenticate with RequestRocket's proxy API.

  1. Navigate to the Credentials section
  2. Click "Create"
  3. Choose your Region as your target will be in
  4. Select an Auth Type (API Key, Bearer Token, JWT, etc.)
  5. Configure the authentication details
  6. Click "Create"

Save your credential details securely - they cannot be viewed after creation!

Create a Proxy

Now combine your target and proxy credential into a proxy configuration.

  1. Navigate to the Proxies section
  2. Click "Create"
  3. Enter a Proxy Name
  4. Select the same Region as your credentials and target
  5. Choose your Proxy Credential
  6. Select your Target
  7. Choose your Target Credential
  8. Set the proxy to Active
  9. Click "Create"

You'll receive a Base URL for your proxy - this is what your application will use!

You can assign an alias to your proxy that gives you a more meaningful URL to use.

Test Your Endpoint

Make a test request to your proxy using the provided Base URL and your proxy credential.

const response = await fetch('https://{Your_Proxy_Base_URL}/{target_path}', {
  headers: {
    'Content-Type': 'application/json',
    'Authorization': '{Your_Proxy_Credential}'
  }
});

// Check for successful proxy authentication
const proxyCode = response.headers.get('requestrocket-proxy-code');
console.log('Proxy Status:', proxyCode); // Should be 'proxy-access-granted'

const data = await response.json();
console.log(data);
import requests

response = requests.get(
    'https://{Your_Proxy_Base_URL}/{target_path}',
    headers={
        'Content-Type': 'application/json',
        'Authorization': '{Your_Proxy_Credential}'
    }
)

# Check for successful proxy authentication
proxy_code = response.headers.get('requestrocket-proxy-code')
print(f'Proxy Status: {proxy_code}')  # Should be 'proxy-access-granted'

data = response.json()
print(data)
package main

import (
    "encoding/json"
    "fmt"
    "io"
    "net/http"
)

func main() {
    client := &http.Client{}
    req, _ := http.NewRequest("GET", "https://{Your_Proxy_Base_URL}/{target_path}", nil)
    req.Header.Set("Content-Type", "application/json")
    req.Header.Set("Authorization", "{Your_Proxy_Credential}")

    resp, _ := client.Do(req)
    defer resp.Body.Close()

    // Check for successful proxy authentication
    proxyCode := resp.Header.Get("requestrocket-proxy-code")
    fmt.Printf("Proxy Status: %s\n", proxyCode) // Should be 'proxy-access-granted'

    body, _ := io.ReadAll(resp.Body)
    var data map[string]interface{}
    json.Unmarshal(body, &data)
    fmt.Println(data)
}
import java.net.http.*;
import java.net.URI;

public class TestProxy {
    public static void main(String[] args) throws Exception {
        HttpClient client = HttpClient.newHttpClient();
        HttpRequest request = HttpRequest.newBuilder()
            .uri(URI.create("https://{Your_Proxy_Base_URL}/{target_path}"))
            .header("Content-Type", "application/json")
            .header("Authorization", "{Your_Proxy_Credential}")
            .GET()
            .build();

        HttpResponse<String> response = client.send(request, 
            HttpResponse.BodyHandlers.ofString());

        // Check for successful proxy authentication
        String proxyCode = response.headers()
            .firstValue("requestrocket-proxy-code").orElse("");
        System.out.println("Proxy Status: " + proxyCode); // Should be 'proxy-access-granted'

        System.out.println(response.body());
    }
}
curl -X GET "https://{Your_Proxy_Base_URL}/{target_path}" \
  -H "Content-Type: application/json" \
  -H "Authorization: {Your_Proxy_Credential}"

Look for the requestrocket-proxy-code: proxy-access-granted header in the response to confirm successful authentication!

Common Use Cases

Securing Outbount API requests

Add a drop-in authentication and authorization layer in between all outbound API requests - instantly gathering telemetry data and creating an auditable trail of traffic into and out of your environment.

Building RESTful APIs

Use RequestRocket as a gateway layer to add authentication and authorization to your APIs.

Creating Mock APIs

Set up target APIs pointing to mock services for frontend development and testing.

Testing Third-Party Integrations

Safely test integrations with external APIs using RequestRocket's request logging and monitoring.

Tip: All components (proxy, credentials, and target) must be in the same region. Plan your regional deployment based on your application's geographic requirements.

What's Next?

Now that you have a working proxy, explore these topics:

On this page