Skip to content

Depot portal oauth

This page is generated from the Depot route table. Every operation carries the permission it needs and the anchor an agent can link to.

GET /api/portal/v1/ai-approvals/{approvalID}

Section titled “GET /api/portal/v1/ai-approvals/{approvalID}”

GETportal facemspIdempotent

Source: [object Object]

Ai approval read

NameInTypeRequiredDescription
approvalIDpathstringYes
StatusBodyDescription
200application/json, AIApprovalViewSuccess.
404application/problem+json, ProblemDetailsNo resource matches that id.

200 response body

FieldTypeDescription
createdAtrequiredstring (date-time)
expiresAtrequiredstring (date-time)
idrequiredstring
statusrequiredstring, one of approved, denied, expired, pending, used
summaryrequiredany

Arbitrary JSON.

toolrequiredstring
Terminal window
# Sign in first. __Host-portal_session is a session cookie, so send it with every request.
# This operation is idempotent. Repeating it does not repeat its effect.
curl -X GET 'https://depot.example.com/api/portal/v1/ai-approvals/<approvalID>' \
-H 'X-Csrf-Token: <portal-csrf>' \
-H 'Accept: application/json' \
-b '__Host-portal_session=<portal-session>'

POST /api/portal/v1/ai-approvals/{approvalID}/approve

Section titled “POST /api/portal/v1/ai-approvals/{approvalID}/approve”

POSTportal facemspNot fully resolved

What this page does not know
  • handler-body
  • response

These are parts of the route the extractor could not read from the source. Everything else on this page came straight from it.

Source: [object Object]

Serve HTTP

NameInTypeRequiredDescription
approvalIDpathstringYes
StatusBodyDescription
200NoneSuccess. The body shape was not resolved; see x-outpost-unresolved.
404application/problem+json, ProblemDetailsNo resource matches that id.
Terminal window
# Sign in first. __Host-portal_session is a session cookie, so send it with every request.
curl -X POST 'https://depot.example.com/api/portal/v1/ai-approvals/<approvalID>/approve' \
-H 'X-Csrf-Token: <portal-csrf>' \
-H 'Accept: application/json' \
-b '__Host-portal_session=<portal-session>'

POST /api/portal/v1/ai-approvals/{approvalID}/deny

Section titled “POST /api/portal/v1/ai-approvals/{approvalID}/deny”

POSTportal facemsp

Source: [object Object]

Ai approval deny

NameInTypeRequiredDescription
approvalIDpathstringYes
StatusBodyDescription
200application/json, AIApprovalViewSuccess.
404application/problem+json, ProblemDetailsNo resource matches that id.

200 response body

FieldTypeDescription
createdAtrequiredstring (date-time)
expiresAtrequiredstring (date-time)
idrequiredstring
statusrequiredstring, one of approved, denied, expired, pending, used
summaryrequiredany

Arbitrary JSON.

toolrequiredstring
Terminal window
# Sign in first. __Host-portal_session is a session cookie, so send it with every request.
curl -X POST 'https://depot.example.com/api/portal/v1/ai-approvals/<approvalID>/deny' \
-H 'X-Csrf-Token: <portal-csrf>' \
-H 'Accept: application/json' \
-b '__Host-portal_session=<portal-session>'

GETportal facemspIdempotent

Source: [object Object]

connectedApps lists the person’s live AI connections across their organizations, newest first.

StatusBodyDescription
200application/json, array of ConnectedAppSuccess.

200 response body

FieldTypeDescription
[].appNamerequiredstring
[].connectedAtrequiredstring (date-time)
[].expiresAtrequiredstring (date-time)
[].idrequiredstring
[].lastUsedAtstring (date-time) or null
[].orgIdrequiredstring
[].orgNamerequiredstring
[].softwareIdstring
Terminal window
# Sign in first. __Host-portal_session is a session cookie, so send it with every request.
# This operation is idempotent. Repeating it does not repeat its effect.
curl -X GET 'https://depot.example.com/api/portal/v1/me/connected-apps' \
-H 'X-Csrf-Token: <portal-csrf>' \
-H 'Accept: application/json' \
-b '__Host-portal_session=<portal-session>'

DELETE /api/portal/v1/me/connected-apps/{appID}

Section titled “DELETE /api/portal/v1/me/connected-apps/{appID}”

DELETEportal facemspIdempotent

Source: [object Object]

disconnectApp revokes one of the person’s AI connections and its tokens.

NameInTypeRequiredDescription
appIDpathstringYes
StatusBodyDescription
204NoneSuccess, with no body.
404application/problem+json, ProblemDetailsNo resource matches that id.
Terminal window
# Sign in first. __Host-portal_session is a session cookie, so send it with every request.
# This operation is idempotent. Repeating it does not repeat its effect.
curl -X DELETE 'https://depot.example.com/api/portal/v1/me/connected-apps/<appID>' \
-H 'X-Csrf-Token: <portal-csrf>' \
-H 'Accept: application/json' \
-b '__Host-portal_session=<portal-session>'

GET /api/portal/v1/oauth/requests/{requestID}

Section titled “GET /api/portal/v1/oauth/requests/{requestID}”

GETportal facemspIdempotent

Source: [object Object]

Consent read

NameInTypeRequiredDescription
requestIDpathstringYes
StatusBodyDescription
200application/json, ConsentViewSuccess.
404application/problem+json, ProblemDetailsNo resource matches that id.

200 response body

FieldTypeDescription
appNamerequiredstring
expiresAtrequiredstring (date-time)
orgsrequiredarray of OrgSummary
orgs[].clientIdrequiredstring
orgs[].memberIdrequiredstring
orgs[].namerequiredstring
orgs[].statusrequiredstring
redirectHostrequiredstring
requestIdrequiredstring
softwareIdstring
Terminal window
# Sign in first. __Host-portal_session is a session cookie, so send it with every request.
# This operation is idempotent. Repeating it does not repeat its effect.
curl -X GET 'https://depot.example.com/api/portal/v1/oauth/requests/<requestID>' \
-H 'X-Csrf-Token: <portal-csrf>' \
-H 'Accept: application/json' \
-b '__Host-portal_session=<portal-session>'

POST /api/portal/v1/oauth/requests/{requestID}/approve

Section titled “POST /api/portal/v1/oauth/requests/{requestID}/approve”

POSTportal facemsp

Source: [object Object]

Consent approve

NameInTypeRequiredDescription
requestIDpathstringYes

Required, sent as application/json.

The body is any.

StatusBodyDescription
200application/json, ConsentResultSuccess.
400NoneThe request was refused.
404application/problem+json, ProblemDetailsNo resource matches that id.

200 response body

FieldTypeDescription
redirectUrlrequiredstring
Terminal window
# Sign in first. __Host-portal_session is a session cookie, so send it with every request.
curl -X POST 'https://depot.example.com/api/portal/v1/oauth/requests/<requestID>/approve' \
-H 'X-Csrf-Token: <portal-csrf>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-b '__Host-portal_session=<portal-session>' \
--data '"string"'

POST /api/portal/v1/oauth/requests/{requestID}/deny

Section titled “POST /api/portal/v1/oauth/requests/{requestID}/deny”

POSTportal facemsp

Source: [object Object]

Consent deny

NameInTypeRequiredDescription
requestIDpathstringYes
StatusBodyDescription
200application/json, ConsentResultSuccess.
404application/problem+json, ProblemDetailsNo resource matches that id.

200 response body

FieldTypeDescription
redirectUrlrequiredstring
Terminal window
# Sign in first. __Host-portal_session is a session cookie, so send it with every request.
curl -X POST 'https://depot.example.com/api/portal/v1/oauth/requests/<requestID>/deny' \
-H 'X-Csrf-Token: <portal-csrf>' \
-H 'Accept: application/json' \
-b '__Host-portal_session=<portal-session>'

Content is licensed CC BY 4.0. Code samples are MIT. Outpost and the Outpost mark are trademarks of Outpost Business Solutions, PBC and are not covered by either license.