Skip to main content

Create a 2FA session via Voice

POST 

https://authenticalls.com/2fa/api/voice

Create a new two factor authentication session via Voice. It will return the session id

Request

Bodyrequired

    tokenstring

    The token for the session. If null, a code will be generated

    sessionTTLnumber

    The session TTL in seconds. If null, it will default to 60 seconds

    Default value: 60

Responses

Schema
    sessionIdstringrequired

    The session id, used to identify the session

    tokenstringrequired

    The token used to verify the session

Authorization: Authorization

name: Authorizationtype: httpscheme: bearerbearerFormat: JWTin: header
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://authenticalls.com/2fa/api/voice");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <Authorization>");
var content = new StringContent("{\n \"token\": \"string\",\n \"sessionTTL\": 60\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://authenticalls.com/2fa/api
Auth
Body required
{
  "token": "string",
  "sessionTTL": 60
}
ResponseClear

Click the Send API Request button above and see the response here!