xhostd Account API
The Account API from xhostd — 10 operation(s) for account.
The Account API from xhostd — 10 operation(s) for account.
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/xhostd-com:xhostd-com-account-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: xhostd web Account API
version: 0.1.0
tags:
- name: Account
paths:
/account/agent-access:
post:
summary: Account Agent Access
description: Set the account default of the agent-access switch (AUTH.md).
operationId: account_agent_access_account_agent_access_post
requestBody:
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/Body_account_agent_access_account_agent_access_post'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Account
/account/password:
post:
summary: Account Password
description: 'Set the first password of the account, or change the one it has.
This is the ONLY route in the platform that writes a FIRST password.
An emailed reset refuses an account that holds none, so a live
console session is what adding one costs (AUTH.md). A CHANGE asks
for the current password as well, and xhostd verifies it: a browser
somebody left open must not be enough to rewrite the credential.
The typed confirmation is checked here and again by nobody: it
guards a typo rather than an authorization, so the second field
never leaves this process.'
operationId: account_password_account_password_post
requestBody:
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/Body_account_password_account_password_post'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Account
/account/password/remove:
post:
summary: Account Password Remove
description: 'Remove the account''s password, leaving Google as its way in.
The current password is the proof, for the reason a change asks for
one. xhostd refuses an account with no email address, because Google
sign-in matches on it and removing the password would leave no way
in at all.'
operationId: account_password_remove_account_password_remove_post
requestBody:
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/Body_account_password_remove_account_password_remove_post'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Account
/account/email-opt-out:
post:
summary: Account Email Opt Out
description: 'Set the account switch of the ``account`` mail category (EMAIL.md).
The console owns the positive word: ``on`` means the account gets the
mail, and the route flips that word to the negative column the
internal route names. The flip happens here alone.
**Neither direction asks for a typed confirmation**, unlike the
sibling agent-access form. Neither direction is dangerous: off stops
non-essential mail, and on restores a default. Neither opens a
permission, so a confirmation step would be ceremony.'
operationId: account_email_opt_out_account_email_opt_out_post
requestBody:
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/Body_account_email_opt_out_account_email_opt_out_post'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Account
/account:
get:
summary: Account Page
operationId: account_page_account_get
parameters:
- name: range
in: query
required: false
schema:
type: string
default: 30d
title: Range
- name: return_to
in: query
required: false
schema:
type: string
default: ''
title: Return To
- name: xt_src
in: query
required: false
schema:
type: string
default: ''
title: Xt Src
- name: xt_med
in: query
required: false
schema:
type: string
default: ''
title: Xt Med
- name: xt_cmp
in: query
required: false
schema:
type: string
default: ''
title: Xt Cmp
- name: xt_rh
in: query
required: false
schema:
type: string
default: ''
title: Xt Rh
- name: xt_lp
in: query
required: false
schema:
type: string
default: ''
title: Xt Lp
- name: xt_ck
in: query
required: false
schema:
type: string
default: ''
title: Xt Ck
- name: ref
in: query
required: false
schema:
type: string
default: ''
title: Ref
- name: fpr
in: query
required: false
schema:
type: string
default: ''
title: Fpr
responses:
'200':
description: Successful Response
content:
text/html:
schema:
type: string
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Account
/account/git-installations/{installation_id}/remove:
post:
summary: Account Git Installation Remove
description: 'Remove one of the caller''s git host accounts, then 303 to the card.
The route reads the caller''s accounts first, for the slug and the
label its flash names: the unbind answers neither.'
operationId: account_git_installation_remove_account_git_installations__installation_id__remove_post
parameters:
- name: installation_id
in: path
required: true
schema:
type: string
format: uuid
title: Installation Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Account
/account/plan:
get:
summary: Account Plan Page
operationId: account_plan_page_account_plan_get
parameters:
- name: purchased
in: query
required: false
schema:
type: string
default: ''
title: Purchased
- name: tier
in: query
required: false
schema:
type: string
default: ''
title: Tier
- name: confirm
in: query
required: false
schema:
type: string
default: ''
title: Confirm
- name: return_to
in: query
required: false
schema:
type: string
default: ''
title: Return To
- name: xt_src
in: query
required: false
schema:
type: string
default: ''
title: Xt Src
- name: xt_med
in: query
required: false
schema:
type: string
default: ''
title: Xt Med
- name: xt_cmp
in: query
required: false
schema:
type: string
default: ''
title: Xt Cmp
- name: xt_rh
in: query
required: false
schema:
type: string
default: ''
title: Xt Rh
- name: xt_lp
in: query
required: false
schema:
type: string
default: ''
title: Xt Lp
- name: xt_ck
in: query
required: false
schema:
type: string
default: ''
title: Xt Ck
- name: ref
in: query
required: false
schema:
type: string
default: ''
title: Ref
- name: fpr
in: query
required: false
schema:
type: string
default: ''
title: Fpr
responses:
'200':
description: Successful Response
content:
text/html:
schema:
type: string
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Account
post:
summary: Account Plan Change
operationId: account_plan_change_account_plan_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Account
/account/plan/checkout:
post:
summary: Account Plan Checkout
description: 'Mint a checkout at the payment provider and send the buyer to it.
A form POST, not an XHR, so the button needs no JavaScript and works
with scripts off. The one form that posts here is on the console''s
own plan page, ``templates/account_plan.html``.
The route carries NO cross-site request forgery (CSRF) token, like
every other console form route.
``src/xhost_web/middleware.py::origin_admitted`` refuses a POST from
any other origin, the apex included, and this path has no entry in
``src/xhost_web/middleware.py::CROSS_HOST_POSTS``.
A success answers 303 to the minted URL at the payment provider. Every
fault answers 303 back to the plan page with a flash. The route
re-reads no billing summary: xhostd''s 409 is the ONE enforcement
point, and the console only names it.
The sibling of ``POST /account/plan``, which is also a form POST, a
303 and a flash.'
operationId: account_plan_checkout_account_plan_checkout_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Account
/account/billing/portal:
post:
summary: Account Billing Portal
description: 'Mint the billing-management URL and send the user to it.
A one-button form POST, not a link. Under Paddle xhostd mints a
SINGLE-USE portal session, and a browser prefetches a link, so a
prefetch would spend the session before the person clicks. Every
route that mints outbound is a POST, on both sides of the console
boundary.
The route reads no billing summary. xhostd owns the three-leg
decision and the 409, exactly as it owns the checkout route''s 409,
and the console only names the answer.
A success answers 303 to the minted URL. Every fault answers 303 back
to the plan page with a flash. This is ``account_plan_checkout`` with
the tier removed.'
operationId: account_billing_portal_account_billing_portal_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Account
/account/delete:
post:
summary: Account Delete
operationId: account_delete_account_delete_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Account
components:
schemas:
Body_account_agent_access_account_agent_access_post:
properties:
mode:
type: string
title: Mode
default: ''
confirm_username:
type: string
title: Confirm Username
default: ''
type: object
title: Body_account_agent_access_account_agent_access_post
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
Body_account_email_opt_out_account_email_opt_out_post:
properties:
mode:
type: string
title: Mode
default: ''
type: object
title: Body_account_email_opt_out_account_email_opt_out_post
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
Body_account_password_account_password_post:
properties:
current_password:
type: string
title: Current Password
default: ''
password:
type: string
title: Password
default: ''
confirm_password:
type: string
title: Confirm Password
default: ''
type: object
title: Body_account_password_account_password_post
Body_account_password_remove_account_password_remove_post:
properties:
current_password:
type: string
title: Current Password
default: ''
type: object
title: Body_account_password_remove_account_password_remove_post