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

The API Keys tab: every credential your project exposes lives here.
What’s in the modal, and where to use each value
The rest of this guide uses the Service Role (Secret) Key as
API_KEY. It authenticates every endpoint under /api/*, which is what most of the platform docs assume.
Use it from code
1
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.
2
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/agents3
Connect 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.