Open the Connect modal
In the Studio at app.powabase.ai, click the Connect button in the top-right of your project header.

What’s in the modal, and where to use each value
| Field | Use it for | Safe to ship to clients? |
|---|---|---|
| Project URL | The BASE_URL for every HTTP call — /api/*, /rest/v1/*, /auth/*, /storage/* | Yes |
| Anon (Publishable) Key | Client-side calls to PostgREST and Storage that respect Row Level Security | Yes |
| Service Role (Secret) Key | Server-side calls to /api/* (AI surface) and any RLS-bypassing PostgREST access | No — server only |
| JWT Secret | Verifying user-signed JWTs on your own backend | No — server only |
| Database URL | Direct Postgres access (psql, migrations, ORMs, BI tools) | No — server only |
API_KEY. It authenticates every endpoint under /api/*, which is what most of the platform docs assume.
Use it from code
Set your Base URL and headers
Every request to /api/* and /rest/v1/* needs both an
apikey header and an Authorization: Bearer header, set to the same key. Use the Service Role (Secret) Key for /api/* and server-side PostgREST.Endpoint: Headers: apikey + AuthorizationSending only one of the two headers is the most common cause of 401 errors. PostgREST and Kong both reject the request.
Verify your setup
Hit a cheap, idempotent endpoint to confirm the credentials work end-to-end. An empty array and a populated array both count as success.Endpoint: Response:
GET /api/agentsConnect directly to Postgres (optional)
For migrations, dashboards, ORMs, or any tool that speaks the Postgres wire protocol, grab the Database URL from the API Keys tab, or open the Connection Strings tab and copy a pre-built snippet in your language. Use this from servers and trusted environments only.Endpoint:
Postgres wire protocolThe Database URL embeds the database password in cleartext. Treat it like the Service Role key: never commit it, never expose it client-side, and rotate the database password (Studio → Settings → Database) if it leaks.
What’s Next
Quickstart
Build an end-to-end RAG agent in 5 minutes.
Database Access
AI schema vs public schema, plus PostgREST and direct Postgres usage.
Architecture
How Kong routes /api/, /rest/v1/, /auth/, and /storage/ to your project’s stack.