Skip to main content
Prerequisites
  • A ClientId and ClientSecret provided by the Ginkgo Biosecurity team
  • A machine with cURL installed

Obtain an authorization token

curl -X POST \
  "https://sso.ginkgobiosecurity.com/oauth/token" \
  -H "Content-Type: application/json" \
  -d '{
    "client_id": "YOUR_CLIENT_ID",
    "client_secret": "YOUR_CLIENT_SECRET", 
    "audience": "https://api.ginkgobiosecurity.com",
    "grant_type": "client_credentials"
  }'

Make API requests using your authentication token

# The value in the "access_token" field in the reponse payload from the above POST is your auth token
curl -X GET \
  "https://api.ginkgobiosecurity.com/v2/hed-outbreaks/event-names" \
  -H "Authorization: Bearer YOUR_AUTH_TOKEN_HERE" \
  -H "Content-Type: application/json"