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
| Name | Key | Added | Last used |
|---|
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.
| Flow | Authorization URL | Token URL | Scopes |
|---|---|---|---|
| Authorization code | https://auth.prisma.io/authorize | https://auth.prisma.io/token | offline_access Offline accessworkspace: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'