⚡ Quick Start (5 min)

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

  1. Go to dashboard.protectmyapi.com
  2. Sign up with email or GitHub
  3. Verify your email address
🎉

Free tier includes: Unlimited apps, 10,000 requests/month, all AI providers

Create Your First App

  1. Click “Create App” in the dashboard
  2. Select your platform: iOS, Android, Flutter, or React Native
  3. 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
  1. Click “Create” and copy your App Token

Add Your API Keys

  1. Go to Secrets in the sidebar
  2. Click “Add Secret”
  3. Enter your API key details:
    • Name: OPENAI_API_KEY (or your provider)
    • Value: Your actual API key
  4. 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-sdk

Or in Package.swift:

dependencies: [
    .package(url: "https://github.com/protectmyapi/ios-sdk", from: "1.0.0")
]

Enable App Attest:

  1. Open your project in Xcode
  2. Select target → Signing & Capabilities
  3. 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


Common Issues

ProblemSolution
”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.