Skip to main content

Overview

gu1 uses API keys to authenticate requests. All API requests must include your API key in the Authorization header using the Bearer scheme. Keys are issued in the format gk_<environment>_... (see API key format below).
Keep your API keys secure! Never commit them to version control or share them publicly.

Getting Your API Key

1

Log in to Dashboard

Navigate to app.gu1.ai and log in to your account
2

Access API Keys Section

Click SettingsAPI Keys in the sidebar
3

Create New Key

Click Create API Key button
4

Configure Key

  • Give your key a descriptive name (e.g., “Production API”, “Development”)
  • Open Manage permissions and select granular permissions (resource:action pairs) aligned with your workspace RBAC. Grant only what the integration needs.
  • Optionally set an expiration date
5

Copy and Store

Copy the generated key immediately - it will only be shown once!

Using Your API Key

Include your API key in the Authorization header of every request:

Example with Different Methods

API Key Format

API keys are opaque strings with the prefix gk_, followed by an environment segment and a random suffix (for example gk_prod_...). The segment reflects the environment you chose when creating the key (for example production vs sandbox). Use production keys only with production organizations and data.

Permissions

Permissions are granular: in the dashboard you assign allowed resources and actions (the same resource:action model as workspace RBAC). Each integration should receive the smallest set of permissions required for its endpoints.
Follow the principle of least privilege — prefer explicit resource:action grants over broad access.

Best Practices

  • Store API keys in environment variables or secret management systems
  • Never hardcode keys in your source code
  • Never commit keys to version control (use .env files and .gitignore)
  • Rotate API keys regularly (every 90 days recommended)
  • Create new keys before revoking old ones to avoid downtime
  • Update all systems that use the old key
  • Regularly review API key activity in the dashboard
  • Set up alerts for unusual usage patterns
  • Immediately revoke compromised keys
  • Use test keys for development and staging
  • Use live keys only in production
  • Never use live keys on developer machines

Error Responses

If authentication fails, you’ll receive one of these error responses:

Missing API Key

HTTP Status: 401 Unauthorized

Invalid API Key

HTTP Status: 401 Unauthorized

Expired API Key

HTTP Status: 401 Unauthorized

Insufficient Permissions

HTTP Status: 403 Forbidden

Rate Limiting

API keys are subject to rate limits based on your plan:

Rate Limit Headers

All API responses include rate limit information in the headers:

Rate Limit Exceeded Response

When you exceed rate limits, you’ll receive:
HTTP Status: 429 Too Many Requests Response Headers:
Monitor the rate limit headers in your responses to implement proactive rate limiting in your application. The Retry-After header indicates how many seconds you should wait before retrying.

Testing Your API Key

Use this simple test to verify your API key is working:
Success Response:

Next Steps

Create Your First Entity

Start using the API to create entities

Define Custom Schemas

Set up data mapping for your use case

Webhooks

Receive real-time notifications

KYC complete flow

End-to-end KYC integration guide