curl --request GET \
--url https://sandbox.circularo.com/api/v1/nafath/statusimport requests
url = "https://sandbox.circularo.com/api/v1/nafath/status"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sandbox.circularo.com/api/v1/nafath/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.circularo.com/api/v1/nafath/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.circularo.com/api/v1/nafath/status"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.circularo.com/api/v1/nafath/status")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/nafath/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"linkingKey": "<string>",
"message": "<string>",
"shareUnlockToken": "<string>",
"status": "pending"
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Follow a Nafath identity check
GET /nafath/status
Reports where a Nafath check has got to. Poll it after starting one with POST /nafath/login until it stops being pending.
What a finished check yields depends on why it was started. Signing in sets the session cookie and reports the person as logged in. Attaching an identity to an account already signed in reports it as linked. An identity that matches nobody here reports that linking is needed and hands back a key to pass to POST /login with ordinary credentials. A recipient proving who they are reports the check as verified and hands back a one-time token to exchange for the share’s password. Authorizing a signature reports the signing session as ready.
Each outcome is delivered once: the ones that hand back a session or a token drop the check as they are read, so a second poll no longer finds it. Neither running out of time nor asking about a check that is not there is a failure - one that went unanswered for too long is reported as expired, and one that is unknown, made up or already spent as invalid.
No authorization: No authorization is required to call this endpoint.
curl --request GET \
--url https://sandbox.circularo.com/api/v1/nafath/statusimport requests
url = "https://sandbox.circularo.com/api/v1/nafath/status"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sandbox.circularo.com/api/v1/nafath/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.circularo.com/api/v1/nafath/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.circularo.com/api/v1/nafath/status"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.circularo.com/api/v1/nafath/status")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/nafath/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"linkingKey": "<string>",
"message": "<string>",
"shareUnlockToken": "<string>",
"status": "pending"
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Query Parameters
Response
Reports the state of the check. A check that timed out is reported as expired, and an unknown or already spent identifier as invalid, rather than either being a failure.