BioTradingArena

Authentication

How to authenticate with the BioTradingArena API.

All benchmark API endpoints require authentication. Public endpoints (catalysts list, oncology list, strategies) do not require auth.

Getting an API Key

  1. Sign in to BioTradingArena
  2. Go to your Dashboard
  3. Click "Create API Key"
  4. Copy the key — it won't be shown again

Using Your API Key

Include your API key as a Bearer token in the Authorization header:

curl -H "Authorization: Bearer YOUR_API_KEY" \
  https://biotradingarena.com/api/benchmark/cases

In Python:

import requests

headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json",
}

resp = requests.get(
    "https://biotradingarena.com/api/benchmark/cases",
    headers=headers,
)

Authentication Methods

The API supports three authentication methods (tried in order):

MethodHeaderUse Case
API KeyAuthorization: Bearer <api_key>Programmatic access (recommended)
Access Token (JWT)Authorization: Bearer <access_token>Short-lived tokens from Stack Auth
Session CookieAutomaticBrowser-based access from the dashboard

Endpoint Auth Requirements

EndpointAuth Required
GET /api/catalystsNo
GET /api/oncologyNo
GET /api/strategiesNo
GET /api/benchmark/casesYes
POST /api/benchmark/verifyYes
POST /api/benchmark/submitYes

Error Responses

401 Unauthorized — Missing or invalid token:

{
  "error": "Authentication required",
  "hint": "Include 'Authorization: Bearer YOUR_API_KEY' in your request."
}

503 Service Unavailable — Auth not configured on the server:

{
  "error": "Authentication is not configured on this server"
}