Skip to main content
Help Getting Started
Getting Started

Quickstart: Send Your First Protected Request

2 min read·1 views·100% found this helpful

This guide takes you from a new account to your first protected API call in a few minutes, using the ready-made curl snippet on your Start Here page. By the end, you will see that request appear in your dashboard activity.

Before you begin

You will need:

  • A G8KEPR account (free to create)
  • A terminal with curl, or any HTTP client you prefer

Step 1: Create your account

  1. 1.Sign up and log in. You land on the Start Here page (/dashboard), your onboarding home.
  2. 2.Note the activation checklist near the top: account created, API key generated, first request made, dashboard explored. You have just completed step one.

Step 2: Generate an API key

  1. 1.From Start Here, follow the prompt to create your first API key.
  2. 2.Copy the key the moment it is shown and store it somewhere safe.

Your key is shown in full only once. Treat it like a password, keep it out of source control, and rotate it if it is ever exposed.

Step 3: Send your first protected request

The Start Here page includes a curl example prewired for your account. Copy it, drop in your key, and run it:

bash
curl https://api.g8kepr.com/v1/chat/completions \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-4o-mini",
    "messages": [{ "role": "user", "content": "Hello from G8KEPR" }]
  }'

Replace YOUR_API_KEY with the key from Step 2. A successful call returns a JSON response:

json
{
  "id": "chatcmpl-abc123",
  "object": "chat.completion",
  "choices": [
    { "message": { "role": "assistant", "content": "Hello! ..." } }
  ]
}

Requests that pass through this endpoint are inspected for threats in real time before they reach the model provider, so risky prompts can be flagged or blocked.

No provider key yet? You can send requests using a hosted key on eligible plans, or add your own provider key first. See Bring Your Own Key.

Step 4: Confirm it worked

  1. 1.Return to Start Here. The activation checklist now marks first request made as complete.
  2. 2.Watch your monthly usage bar tick up as requests flow through.
  3. 3.Use the launcher cards to explore your core dashboards, including live threat and gateway activity.

What's next

Was this helpful?Still stuck? Submit a request →

Related articles