How to use test mode
In test mode, you can use all Flatpeak API services and create real objects — just like in live mode. All data created in test mode is fully separated from your production environment, so you can freely experiment, simulate edge cases, and test your workflows safely.When to use test mode
Use test mode for:- Initial integration and onboarding
- QA and pre-release validation
- Automated test environments or CI/CD setups
Test mode billing
Test mode usage is billed the same way as live mode. This ensures that development environments reflect real-world API behaviour, including rate limits and performance characteristics.Switching between modes
Both test and live environments share the same API endpoints.The mode is automatically determined by the API key you use:
- Test mode keys start with
sk_test_ - Live mode keys start with
sk_live_
live_mode field to confirm which environment was used.
| Mode | API key prefix | live_mode value |
|---|---|---|
| Test | sk_test_ | false |
| Live | sk_live_ | true |

