Patricia Desktop Auth API
The desktop-auth API from Patricia — 8 operation(s) for desktop-auth.
The desktop-auth API from Patricia — 8 operation(s) for desktop-auth.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/patricia-app:patricia-app-desktop-auth-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Patricia Desktop Auth API
version: 0.1.0
tags:
- name: desktop-auth
paths:
/v1/desktop-authorizations:
post:
tags:
- desktop-auth
summary: Create Authorization
operationId: create_authorization_v1_desktop_authorizations_post
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/DesktopAuthorizationRequest'
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/DesktopAuthorizationCreated'
'422':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'426':
description: Unsupported desktop protocol (DESKTOP_PROTOCOL_UNSUPPORTED)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Desktop sign-in requires a configured HTTPS dashboard origin
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
parameters:
- name: X-Patricia-Desktop-Protocol
in: header
required: true
schema:
type: string
/v1/desktop-authorizations/{authorization_id}:
get:
tags:
- desktop-auth
summary: Read Consent
operationId: read_consent_v1_desktop_authorizations__authorization_id__get
security:
- HTTPBearer: []
parameters:
- name: authorization_id
in: path
required: true
schema:
type: string
format: uuid
title: Authorization Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/DesktopConsentContext'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: Conflict
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/v1/desktop-authorizations/{authorization_id}/cancellation:
post:
tags:
- desktop-auth
summary: Cancel Authorization
operationId: cancel_authorization_v1_desktop_authorizations__authorization_id__cancellation_post
parameters:
- name: authorization_id
in: path
required: true
schema:
type: string
format: uuid
title: Authorization Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/DesktopAuthorizationCancel'
responses:
'204':
description: Successful Response
'422':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/v1/desktop-authorizations/{authorization_id}/decision:
post:
tags:
- desktop-auth
summary: Decide Consent
operationId: decide_consent_v1_desktop_authorizations__authorization_id__decision_post
security:
- HTTPBearer: []
parameters:
- name: authorization_id
in: path
required: true
schema:
type: string
format: uuid
title: Authorization Id
- name: origin
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Origin
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/DesktopConsentDecision'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/DesktopDecisionResult'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: Conflict
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/v1/desktop-sessions:
post:
tags:
- desktop-auth
summary: Exchange Authorization
operationId: exchange_authorization_v1_desktop_sessions_post
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/DesktopAuthorizationExchange'
responses:
'201':
description: Successful Response
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/DesktopExchangeTokens'
- $ref: '#/components/schemas/DesktopExchangeTerminated'
title: Response Exchange Authorization V1 Desktop Sessions Post
'422':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'426':
description: Unsupported desktop protocol (DESKTOP_PROTOCOL_UNSUPPORTED)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
parameters:
- name: X-Patricia-Desktop-Protocol
in: header
required: true
schema:
type: string
/v1/desktop-sessions/{session_id}:
delete:
tags:
- desktop-auth
summary: Revoke Desktop
operationId: revoke_desktop_v1_desktop_sessions__session_id__delete
parameters:
- name: session_id
in: path
required: true
schema:
type: string
format: uuid
title: Session Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/DesktopRevocationRequest'
responses:
'204':
description: Successful Response
'422':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/v1/desktop-sessions/{session_id}/acknowledgements:
post:
tags:
- desktop-auth
summary: Acknowledge Desktop
operationId: acknowledge_desktop_v1_desktop_sessions__session_id__acknowledgements_post
parameters:
- name: session_id
in: path
required: true
schema:
type: string
format: uuid
title: Session Id
- name: X-Patricia-Desktop-Protocol
in: header
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/DesktopRefreshRequest'
responses:
'204':
description: Successful Response
'422':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'426':
description: Unsupported desktop protocol (DESKTOP_PROTOCOL_UNSUPPORTED)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/v1/desktop-sessions/{session_id}/refresh:
post:
tags:
- desktop-auth
summary: Refresh Desktop
operationId: refresh_desktop_v1_desktop_sessions__session_id__refresh_post
parameters:
- name: session_id
in: path
required: true
schema:
type: string
format: uuid
title: Session Id
- name: X-Patricia-Desktop-Protocol
in: header
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/DesktopRefreshRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/DesktopSessionTokens'
'422':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'426':
description: Unsupported desktop protocol (DESKTOP_PROTOCOL_UNSUPPORTED)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
components:
schemas:
DesktopAuthorizationRequest:
properties:
state:
type: string
maxLength: 128
minLength: 43
format: password
title: State
writeOnly: true
installation_id:
type: string
format: uuid
title: Installation Id
callback_uri:
type: string
maxLength: 128
title: Callback Uri
code_challenge:
type: string
maxLength: 43
minLength: 43
pattern: ^[A-Za-z0-9_-]+$
title: Code Challenge
code_challenge_method:
type: string
const: S256
title: Code Challenge Method
additionalProperties: false
type: object
required:
- state
- installation_id
- callback_uri
- code_challenge
- code_challenge_method
title: DesktopAuthorizationRequest
DesktopRefreshRequest:
properties:
session_id:
type: string
format: uuid
title: Session Id
installation_id:
type: string
format: uuid
title: Installation Id
lifecycle:
type: integer
minimum: 0.0
title: Lifecycle
generation:
type: integer
minimum: 0.0
title: Generation
refresh_token:
type: string
maxLength: 512
minLength: 1
format: password
title: Refresh Token
writeOnly: true
attempt_id:
type: string
format: uuid
title: Attempt Id
additionalProperties: false
type: object
required:
- session_id
- installation_id
- lifecycle
- generation
- refresh_token
- attempt_id
title: DesktopRefreshRequest
DesktopConsentContext:
properties:
eligible_tenant_ids:
items:
type: string
format: uuid
type: array
title: Eligible Tenant Ids
authorization_id:
type: string
format: uuid
title: Authorization Id
installation_id:
type: string
format: uuid
title: Installation Id
expires_at:
type: string
format: date-time
title: Expires At
state:
type: string
title: State
csrf_token:
type: string
title: Csrf Token
type: object
required:
- eligible_tenant_ids
- authorization_id
- installation_id
- expires_at
- state
- csrf_token
title: DesktopConsentContext
DesktopAuthorizationExchange:
properties:
state:
type: string
maxLength: 128
minLength: 43
format: password
title: State
writeOnly: true
terminate:
type: boolean
title: Terminate
default: false
attempt_id:
type: string
format: uuid
title: Attempt Id
authorization_id:
type: string
format: uuid
title: Authorization Id
installation_id:
type: string
format: uuid
title: Installation Id
callback_uri:
type: string
maxLength: 128
title: Callback Uri
code:
type: string
maxLength: 128
minLength: 43
format: password
title: Code
writeOnly: true
verifier:
type: string
maxLength: 128
minLength: 43
format: password
title: Verifier
writeOnly: true
additionalProperties: false
type: object
required:
- state
- attempt_id
- authorization_id
- installation_id
- callback_uri
- code
- verifier
title: DesktopAuthorizationExchange
DesktopSessionTokens:
properties:
session_id:
type: string
format: uuid
title: Session Id
installation_id:
type: string
format: uuid
title: Installation Id
tenant_id:
type: string
format: uuid
title: Tenant Id
lifecycle:
type: integer
title: Lifecycle
generation:
type: integer
title: Generation
expires_at:
type: string
format: date-time
title: Expires At
access_token:
type: string
format: password
title: Access Token
writeOnly: true
refresh_token:
type: string
format: password
title: Refresh Token
writeOnly: true
revocation_token:
anyOf:
- type: string
- type: 'null'
title: Revocation Token
attempt_id:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Attempt Id
type: object
required:
- session_id
- installation_id
- tenant_id
- lifecycle
- generation
- expires_at
- access_token
- refresh_token
title: DesktopSessionTokens
DesktopDecisionResult:
properties:
callback_uri:
anyOf:
- type: string
- type: 'null'
title: Callback Uri
type: object
required:
- callback_uri
title: DesktopDecisionResult
DesktopRevocationRequest:
properties:
session_id:
type: string
format: uuid
title: Session Id
installation_id:
type: string
format: uuid
title: Installation Id
revocation_token:
type: string
maxLength: 512
minLength: 1
format: password
title: Revocation Token
writeOnly: true
additionalProperties: false
type: object
required:
- session_id
- installation_id
- revocation_token
title: DesktopRevocationRequest
DesktopExchangeTerminated:
properties:
outcome:
type: string
const: no_live_session
title: Outcome
default: no_live_session
authorization_id:
type: string
format: uuid
title: Authorization Id
installation_id:
type: string
format: uuid
title: Installation Id
attempt_id:
type: string
format: uuid
title: Attempt Id
session_id:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Session Id
type: object
required:
- authorization_id
- installation_id
- attempt_id
title: DesktopExchangeTerminated
DesktopConsentDecision:
properties:
state:
type: string
maxLength: 128
minLength: 43
format: password
title: State
writeOnly: true
tenant_id:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Tenant Id
allow:
type: boolean
title: Allow
csrf_token:
type: string
maxLength: 2048
minLength: 1
format: password
title: Csrf Token
writeOnly: true
additionalProperties: false
type: object
required:
- state
- allow
- csrf_token
title: DesktopConsentDecision
DesktopExchangeTokens:
properties:
session_id:
type: string
format: uuid
title: Session Id
installation_id:
type: string
format: uuid
title: Installation Id
tenant_id:
type: string
format: uuid
title: Tenant Id
lifecycle:
type: integer
title: Lifecycle
generation:
type: integer
title: Generation
expires_at:
type: string
format: date-time
title: Expires At
access_token:
type: string
format: password
title: Access Token
writeOnly: true
refresh_token:
type: string
format: password
title: Refresh Token
writeOnly: true
revocation_token:
anyOf:
- type: string
- type: 'null'
title: Revocation Token
attempt_id:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Attempt Id
person_email:
type: string
title: Person Email
workspace_name:
type: string
title: Workspace Name
type: object
required:
- session_id
- installation_id
- tenant_id
- lifecycle
- generation
- expires_at
- access_token
- refresh_token
- person_email
- workspace_name
title: DesktopExchangeTokens
ErrorResponse:
properties:
code:
type: string
title: Code
message:
type: string
title: Message
errors:
anyOf:
- items:
additionalProperties: true
type: object
type: array
- type: 'null'
title: Errors
type: object
required:
- code
- message
title: ErrorResponse
description: Standard error envelope, matching exception handler output.
DesktopAuthorizationCancel:
properties:
cancellation_token:
type: string
maxLength: 512
minLength: 1
format: password
title: Cancellation Token
writeOnly: true
additionalProperties: false
type: object
required:
- cancellation_token
title: DesktopAuthorizationCancel
DesktopAuthorizationCreated:
properties:
authorization_id:
type: string
format: uuid
title: Authorization Id
expires_at:
type: string
format: date-time
title: Expires At
cancellation_token:
type: string
format: password
title: Cancellation Token
writeOnly: true
consent_url:
anyOf:
- type: string
- type: 'null'
title: Consent Url
type: object
required:
- authorization_id
- expires_at
- cancellation_token
title: DesktopAuthorizationCreated
securitySchemes:
HTTPBearer:
type: http
scheme: bearer