Skip to main content

Manage API Keys

Create and manage API keys to access Antryk resources programmatically.

Creating API Keys

Step 1: Navigate to API Keys

  1. Go to your account settings
  2. Click on “API Keys” section
  3. Click “Create New Key”

Step 2: Configure Key

  • Name: Give your key a descriptive name
  • Permissions: Select appropriate permissions
  • Expiration: Set expiration date (optional)

Step 3: Generate Key

  • Click “Generate Key”
  • Copy the key immediately (it won’t be shown again)
  • Store it securely

Using API Keys

Authentication

# Set your API key
export ANTRYK_API_KEY="your-api-key-here"

# Use in API calls
curl -H "Authorization: Bearer $ANTRYK_API_KEY" \
  https://api.antryk.com/v1/services

Best Practices

  • Rotate regularly - Change keys periodically
  • Use environment variables - Don’t hardcode keys
  • Limit permissions - Use least privilege principle
  • Monitor usage - Track key usage and activity

Key Management

Viewing Keys

  • Active keys - See all active API keys
  • Usage statistics - View usage per key
  • Last used - See when each key was last used

Revoking Keys

  • Individual revocation - Revoke specific keys
  • Bulk revocation - Revoke multiple keys
  • Emergency revocation - Revoke all keys at once

API Docs

Learn about API endpoints and usage

Security Best Practices

Learn about security best practices