Quick Start Guide
Get your mobile app protected in under 5 minutes. This guide walks you through the fastest path to securing your API keys and AI integrations.
⏱️
Time to complete: 5 minutes | Prerequisites: A mobile app (iOS, Android, Flutter, or React Native)
What You’ll Achieve
By the end of this guide, your app will:
- ✅ Have API keys stored securely (never in your app code)
- ✅ Verify every request comes from a real device
- ✅ Be protected against API key theft and abuse
- ✅ Be ready to call AI providers (OpenAI, Claude, etc.)
Create Your Account
- Go to dashboard.protectmyapi.com
- Sign up with email or GitHub
- Verify your email address
🎉
Free tier includes: Unlimited apps, 10,000 requests/month, all AI providers
Create Your First App
- Click “Create App” in the dashboard
- Select your platform: iOS, Android, Flutter, or React Native
- Enter your app details:
- App Name: Your app’s display name
- Bundle ID: e.g.,
com.yourcompany.myapp - Apple Team ID: Found in Apple Developer Portal
- Click “Create” and copy your App Token
Add Your API Keys
- Go to Secrets in the sidebar
- Click “Add Secret”
- Enter your API key details:
- Name:
OPENAI_API_KEY(or your provider) - Value: Your actual API key
- Name:
- Click “Save”
🔐
Your API keys are encrypted with AES-256 and never exposed to your mobile app.
Install the SDK
Swift Package Manager:
// In Xcode: File → Add Package Dependencies
// URL: https://github.com/protectmyapi/ios-sdkOr in Package.swift:
dependencies: [
.package(url: "https://github.com/protectmyapi/ios-sdk", from: "1.0.0")
]Enable App Attest:
- Open your project in Xcode
- Select target → Signing & Capabilities
- Click + Capability → Add App Attest
Initialize and Use
import ProtectMyAPI
// In your App init or AppDelegate
ProtectMyAPI.shared.configure(appId: "app_your_id_here")
// Make a secure API call
let openai = ProtectMyAPI.openAIService()
let response = try await openai.chat(
message: "Hello!",
model: "gpt-4o-mini"
)
print(response)🎉 You’re Protected!
Your app now:
- Stores API keys securely on ProtectMyAPI servers
- Verifies every request using device attestation
- Blocks hackers, bots, and emulators automatically
Next Steps
Complete iOS integration with all features
📱 iOS SDK GuideComplete Android integration guide
🤖 Android SDK GuideIntegrate OpenAI, Claude, Gemini, and 20+ more
🧠 AI ProvidersManage apps, secrets, and analytics
📊 Dashboard GuideCommon Issues
| Problem | Solution |
|---|---|
| ”Attestation failed” | Test on a real device, not simulator |
| ”App not found” | Check your App Token matches the dashboard |
| ”Secret not found” | Verify secret name spelling in dashboard |
Need help? Check our Troubleshooting Guide or FAQ.