Every project comes with the same set of services, endpoints and credentials.
#Services and endpoints
| Service | Endpoint |
|---|---|
| REST API | https://<project-ref>.p.stitchdb.com/rest/v1/ |
| Auth | https://<project-ref>.p.stitchdb.com/auth/v1/ |
| Storage | https://<project-ref>.p.stitchdb.com/storage/v1/ |
| Realtime | wss://<project-ref>.p.stitchdb.com/realtime/v1/ |
| Postgres | Your database host (Settings → Database) on port 5432 (session) and 6543 (transaction) |
| Studio | Open from your dashboard |
#API keys
Each project has two API keys and a JWT secret: the public anon key for browsers and mobile apps, the secret service_role key for servers, and the JWT secret for verifying user tokens. See API keys.
#Database credentials
The database has its own owner user and password, used for connections with psql, ORMs and migration tools over TLS. See Connect to Postgres.
#Project reference and URL
Every project has a reference ID of 16 lowercase letters. It appears in the project URL, https://<project-ref>.p.stitchdb.com, and in the database name and user.
#Regions
You choose a region when creating a project; it determines where your database and files are stored. On plans with read replicas, read-only copies can serve reads closer to your users.