Testing

Guide to testing your AIDP integration.

Test Environment

AIDP provides a sandbox environment for testing:

Sandbox API Base URL:

https://sandbox-api.aidp.dev/v1

Features:

  • Separate from production data

  • No rate limits

  • Test API keys

  • Mock responses available


Getting Test API Keys

  1. Navigate to "API Keys"

  2. Click "Create Test Key"

  3. Copy your test key (starts with test_)

Test Key Format: test_abc123... Production Key Format: live_abc123...


Test Data

Sample Businesses

The sandbox includes test businesses you can use:

Sample Queries

Pre-configured test queries:


Unit Testing

Testing API Calls

Mocking Responses


Integration Testing

End-to-End Tests


Testing Webhooks

Local Webhook Testing

Use tools like ngrok to test webhooks locally:

Webhook Test Events

Send test events from the Developer Dashboard:

  1. Go to Webhooks section

  2. Select your webhook

  3. Click "Send Test Event"

  4. Choose event type

  5. Verify receipt


Performance Testing

Load Testing


Best Practices

1. Use Test Keys

Never use production keys in tests:

2. Clean Up Test Data

Remove test data after tests:

3. Test Error Scenarios


CI/CD Integration

GitHub Actions Example


Need Help?

Last updated