OAuth 2.1 consent decision
POST
/oauth/authorize
const url = 'https://app.buildworkpro.com/api/v1/oauth/authorize';const options = { method: 'POST', headers: {'Content-Type': 'application/x-www-form-urlencoded'}, body: new URLSearchParams({request_uri: 'example', decision: 'approve'})};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.buildworkpro.com/api/v1/oauth/authorize \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data request_uri=example \ --data decision=approveReceives the user’s Approve/Deny decision from the consent form. Body is form-encoded with request_uri (the original GET URL) and decision (approve or deny). Always redirects back to the client’s redirect_uri.
Request Body
Section titled “ Request Body ”
Media type
application/x-www-form-urlencoded
object
request_uri
required
string
decision
required
string
Responses
Section titled “ Responses ”Redirect to client redirect_uri
Fatal validation error (HTML)
Media type
text/html
string