Skip to main content

Overview

The Structify API uses API keys for authentication. You must include your API key in the Authorization header of every request.

Obtaining an API Key

  1. Sign in to Structify Dashboard
  2. Navigate to Settings → API Keys
  3. Click Create New Key
  4. Give your key a descriptive name
  5. Copy the key immediately - it won’t be shown again

Using Your API Key

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

Environment Variables

We recommend using environment variables to manage API keys:

Security Best Practices

Never commit API keys to version control. Add them to .gitignore:

Key Rotation

Regularly rotate your API keys:
  1. Create a new API key
  2. Update your applications to use the new key
  3. Verify everything works
  4. Delete the old key

Key Scopes

Create separate keys for different environments:
  • dev-key - Local development
  • staging-key - Staging environment
  • prod-key - Production only

IP Restrictions

For production keys, consider adding IP restrictions:

Rate Limits

API keys have the following rate limits: When you exceed rate limits, you’ll receive a 429 Too Many Requests response:

JWT to API Token Exchange

For web applications using Supabase authentication, you can exchange a JWT for an API token:

Troubleshooting

Your API key is invalid or missing. Check that:
  • The key is correctly formatted
  • You’re using Bearer prefix
  • The key hasn’t expired or been deleted
Your API key doesn’t have permission for this operation. Check:
  • Key scopes and permissions
  • Team membership for team resources
  • Project access for project resources
Ensure the variable is exported:
In Python, verify it’s loaded:

Next Steps

Make Your First API Call

Explore available endpoints

Python SDK Reference

Detailed Python SDK documentation

TypeScript SDK Reference

Complete TypeScript SDK guide

Rate Limits & Quotas

Understanding rate limits