Account
- class ab.api.endpoints.account.AccountEndpoint(client)[source]
Current-user account operations (ACPortal API).
- Parameters:
client (HttpClient)
- get_profile()[source]
GET /account/profile— the authenticated user’s account profile.Returns the profile of whoever the client’s token belongs to (user name, email, company, contact id, roles).
Response model: AccountProfile
Docs: https://ab-sdk.readthedocs.io/en/latest/api/account/get_profile.html Response model: AccountProfile
- Return type:
AccountProfile
- delete_account_paymentsource_source_id(source_id)
DELETE /account/paymentsource/{sourceId}Schema route on the
acportalAPI surface. This SDK method is a placeholder and raisesNotImplementedErroruntil request/response models and dispatch behavior are implemented.- Parameters:
self (BaseEndpoint)
- Return type:
- get_account_verifyresettoken()
GET /account/verifyresettokenSchema route on the
acportalAPI surface. This SDK method is a placeholder and raisesNotImplementedErroruntil request/response models and dispatch behavior are implemented.- Parameters:
self (BaseEndpoint)
- Return type:
- post_account_confirm(*, data=None)
POST /account/confirmSchema route on the
acportalAPI surface. This SDK method is a placeholder and raisesNotImplementedErroruntil request/response models and dispatch behavior are implemented.
- post_account_forgot(*, data=None)
POST /account/forgotSchema route on the
acportalAPI surface. This SDK method is a placeholder and raisesNotImplementedErroruntil request/response models and dispatch behavior are implemented.
- post_account_register(*, data=None)
POST /account/registerSchema route on the
acportalAPI surface. This SDK method is a placeholder and raisesNotImplementedErroruntil request/response models and dispatch behavior are implemented.
- post_account_resetpassword(*, data=None)
POST /account/resetpasswordSchema route on the
acportalAPI surface. This SDK method is a placeholder and raisesNotImplementedErroruntil request/response models and dispatch behavior are implemented.
- post_account_send_confirmation(*, data=None)
POST /account/sendConfirmationSchema route on the
acportalAPI surface. This SDK method is a placeholder and raisesNotImplementedErroruntil request/response models and dispatch behavior are implemented.
- post_account_setpassword(*, data=None)
POST /account/setpasswordSchema route on the
acportalAPI surface. This SDK method is a placeholder and raisesNotImplementedErroruntil request/response models and dispatch behavior are implemented.
- put_account_paymentsource_source_id(source_id, *, data=None)
PUT /account/paymentsource/{sourceId}Schema route on the
acportalAPI surface. This SDK method is a placeholder and raisesNotImplementedErroruntil request/response models and dispatch behavior are implemented.
Per-endpoint reference
Each route-backed method has its own page rendering the HTTP route, the
Python and CLI call signatures, and the request/response model field tables.
This is the page help(api.account.<method>) links to via its Docs: footer.
These pages are generated by scripts/generate_endpoint_docs.py and kept
current by a CI freshness gate.
Methods
get_profile
GET /account/profile — The authenticated user’s account profile (user
name, email, company, contact id, roles).
profile = api.account.get_profile()
print(profile.company_id)