Pi Durable Platformdocs
ReferenceOAuth consent and connected apps

Allow or deny an app's authorization request; returns where to send the browser

POST
/v1/oauth/consent

Allowing records the person's consent (a connected app, remembered until revoked) and returns the app's redirect URI with an authorization code; denying returns it with error=access_denied.

Request Body

application/json
  1. body
query*string

The authorization request's query string, as the consent page received it

Lengthlength <= 8000
decision*string
Value in"allow""deny"

Response Body

Where to send the browser

application/json
  1. response
data*
curl -X POST 'https://agents.example.com/v1/oauth/consent' \  -H 'Content-Type: application/json' \  -d '{  "query": "string",  "decision": "allow"}'
{  "data": {    "redirectUrl": "string"  }}