Integrate payments, crons, and third-party APIs in a secure environment.
When you need to interact with your database from a secure environment you can use the Instant Admin SDK.
It has the same API as the client SDK but with elevated permissions. This makes it perfect for running background jobs, integrating third-party APIs like Stripe, and executing any transactions that you don't want exposed to the client.
1// Read data with the same InstaQL API2const { data } = await adminDb.query({3 orders: { customer: {} },4});1# Read data with InstaQL2curl -X POST "https://api.instantdb.com/admin/query" \3 -H "Content-Type: application/json" \4 -H "Authorization: Bearer $ADMIN_TOKEN" \5 -H "App-Id: $APP_ID" \6 -d '{"query":{"goals":{},"todos":{}}}'The Admin SDK is built on top of our HTTP API. If you're using a non-JS backend you can use Instant by hitting the API directly.
Everything you can do with the Admin SDK you can do with the HTTP API!
Instant has you covered on both the frontend and the backend.