Create a 2FA session via Voice
POSThttps://authenticalls.com/2fa/api/voice
Create a new two factor authentication session via Voice. It will return the session id
Request
- application/json
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
- 200
- 400
- 401
- 403
- application/json
- Schema
- Example (auto)
Schema
sessionIdstringrequired
The session id, used to identify the session
tokenstringrequired
The token used to verify the session
{
"sessionId": "string",
"token": "string"
}
Invalid data provided
Invalid API key provided
Integration is not allowed to run 2FA with Voice
Authorization: Authorization
name: Authorizationtype: httpscheme: bearerbearerFormat: JWTin: header
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
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());
ResponseClear