TuCloudAPI authrequest: Difference between revisions
TuCloudAPI reference regenerated from func=help: tenancy rule, pbx notes on every PBX-scoped function, error codes |
TuCloudAPI reference (generated from func=help): authrequest relays login_code, authpoll names denied |
||
| Line 2: | Line 2: | ||
== Description == | == Description == | ||
Ask for a magic-link e-mail. PUBLIC: needs no ukey and no session, because neither exists yet. Relayed to magiclogin, whose answer is passed through unchanged -- including the fake session code it returns for an address that does not exist, so the form cannot be used to discover which e-mails are registered. | Ask for a magic-link e-mail. PUBLIC: needs no ukey and no session, because neither exists yet. Relayed to magiclogin, whose answer is passed through unchanged -- including the fake session code it returns for an address that does not exist, so the form cannot be used to discover which e-mails are registered. login_code is the 3-digit code the user must see on the screen where they asked for the link and compare with the one on the link page before authorizing; it is a STRING with its leading zeros ("003"), never a number. | ||
== Call == | == Call == | ||
| Line 18: | Line 18: | ||
== Response == | == Response == | ||
{ok, status, session_code, expires_in}. | {ok, status, session_code, login_code, expires_in}. Show login_code as-is; poll session_code with authpoll. | ||
---- | ---- | ||
Back to [[TuCloudAPI]] | Back to [[TuCloudAPI]] | ||
[[Category:TuCloudAPI SuperRoot]][[Category:TuCloudAPI Operator]][[Category:TuCloudAPI Client]][[Category:TuCloudAPI]] | [[Category:TuCloudAPI SuperRoot]][[Category:TuCloudAPI Operator]][[Category:TuCloudAPI Client]][[Category:TuCloudAPI]] | ||
Revision as of 18:59, 26 October 2026
TuCloudAPI function to manage FuturePBX (the cloud PBX). Available to: SuperRoot, Operator, Client.
Description
Ask for a magic-link e-mail. PUBLIC: needs no ukey and no session, because neither exists yet. Relayed to magiclogin, whose answer is passed through unchanged -- including the fake session code it returns for an address that does not exist, so the form cannot be used to discover which e-mails are registered. login_code is the 3-digit code the user must see on the screen where they asked for the link and compare with the one on the link page before authorizing; it is a STRING with its leading zeros ("003"), never a number.
Call
https://tucloudapi.7kas.com:9087/tucloud?func=authrequest&ukey=YOUR_KEY
GET, or POST with the parameters form-urlencoded in the body. Requires the ukey parameter.
Parameters
| Parameter | Type | Required | Default | Meaning |
|---|---|---|---|---|
email |
string | Yes | — | The e-mail to send the link to. |
Example
https://tucloudapi.7kas.com:9087/tucloud?func=authrequest&email=alguien@example.com
Response
{ok, status, session_code, login_code, expires_in}. Show login_code as-is; poll session_code with authpoll.
Back to TuCloudAPI