Penv Cloud
Start free
Docs
Reference

Trade an app grant for a short-lived credential

Call it whenever you need to read.

POST/api/v1/auth/app

Call it whenever you need to read. Each call rotates the grant. Read the environment with the credential at GET /api/v1/envs/{org}/{project}/{environment}; keys the person did not share are left out.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/auth/app" \  -H "Content-Type: application/json" \  -d '{    "grant": "string"  }'
{  "credential": "string",  "expiresAt": "2019-08-24T14:15:22Z",  "grant": "string"}