I’m building a developer tool product, which will be accessible solely by APIs. Following are a few features I’ve identified that will be needed:
- Issuing/refreshing API keys
- Purchasing API credits
- Subscriptions for API credits
- Monitoring usage of API for each user
- Deducting an API credit for each call
What all considerations should I take into account when designing a schema for this? Are there any open examples of schemas for such a product? Is there a term for this?
Note that this would be quite similar to what something like Stripe or any API-based SaaS is doing.