Jump to content

TuCloudAPI authwhoami

From Wiki 7Kas
Revision as of 21:16, 8 October 2026 by Maintenance script (talk | contribs) (TuCloudAPI reference regenerated from func=help: tenancy rule, pbx notes on every PBX-scoped function, error codes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

TuCloudAPI function to manage FuturePBX (the cloud PBX). Available to: SuperRoot, Operator, Client.

Description

The current session context, and it refreshes the idle timer. Needs the session cookie. {ok:false,code:no_session} when there is none, {ok:false,code:session_expired} when there was one and it aged out.

Call

https://tucloudapi.7kas.com:9087/tucloud?func=authwhoami&ukey=YOUR_KEY

GET, or POST with the parameters form-urlencoded in the body. Requires the ukey parameter.

Parameters

None beyond ukey and func=authwhoami.

Example

https://tucloudapi.7kas.com:9087/tucloud?func=authwhoami

Response

{ok, pbx, pbx_id, root, admin_ext_id, identity, is_admin, idle_timeout}.


Back to TuCloudAPI