Skip to main content
Prisma Documentation Docs

Search documentation

Type to search this documentation.

On this pageOverview

Authentication

How this API authenticates requests, and where your API keys live.

Prisma Postgres Management API declares the schemes below. Each operation documents which schemes it requires; public operations need no credentials.

Your API keys

Bearer

HTTP Bearer

OAuth2 token for API authentication

For operations using this scheme, send your token in the Authorization header.

Token format: JWT.

curl arguments for operations using this scheme (add the operation URL):

-H 'Authorization: Bearer YOUR_API_KEY'

OAuth2

OAuth 2.0

OAuth2 authentication

This scheme uses OAuth 2.0.

FlowAuthorization URLToken URLScopes
Authorization codehttps://auth.prisma.io/authorizehttps://auth.prisma.io/token
offline_access Offline access
workspace:admin Full access to workspace resources

Code example

A request using the declared server and authentication requirements:

curl --globoff -X GET -H 'Authorization: Bearer YOUR_API_KEY' 'https://api.prisma.io/v1/buckets'
Export
Documentation menu