List credential status by system
curl --request GET \
--url https://crawler.prod.judit.io/credentials \
--header 'api-key: <api-key>'import requests
url = "https://crawler.prod.judit.io/credentials"
headers = {"api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'api-key': '<api-key>'}};
fetch('https://crawler.prod.judit.io/credentials', 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://crawler.prod.judit.io/credentials",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"api-key: <api-key>"
],
]);
$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://crawler.prod.judit.io/credentials"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://crawler.prod.judit.io/credentials")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://crawler.prod.judit.io/credentials")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"systems": [
{
"name": "*",
"customer_key": "",
"credential_status": "not exists"
},
{
"name": "EPROC - JFES - 1º grau",
"customer_key": "*",
"credential_status": "not exists"
},
{
"name": "PJE TJBA - 1º grau",
"customer_key": "*",
"credential_status": "active"
},
{
"name": "PJE TRF1 - 2º grau",
"customer_key": "*",
"credential_status": "not exists"
}
]
}
{
"systems": [
{
"name": "*",
"customer_key": "lawyer_01",
"credential_status": "active"
},
{
"name": "PJE TJBA - 1º grau",
"customer_key": "lawyer_01",
"credential_status": "active"
}
]
}
Credentials Vault
Systems and Credential Status
List the systems available in the vault, with the exact system_name to use when registering, and check the credential status of a customer_key. This endpoint does not register credentials.
GET
/
credentials
List credential status by system
curl --request GET \
--url https://crawler.prod.judit.io/credentials \
--header 'api-key: <api-key>'import requests
url = "https://crawler.prod.judit.io/credentials"
headers = {"api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'api-key': '<api-key>'}};
fetch('https://crawler.prod.judit.io/credentials', 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://crawler.prod.judit.io/credentials",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"api-key: <api-key>"
],
]);
$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://crawler.prod.judit.io/credentials"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://crawler.prod.judit.io/credentials")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://crawler.prod.judit.io/credentials")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"systems": [
{
"name": "*",
"customer_key": "",
"credential_status": "not exists"
},
{
"name": "EPROC - JFES - 1º grau",
"customer_key": "*",
"credential_status": "not exists"
},
{
"name": "PJE TJBA - 1º grau",
"customer_key": "*",
"credential_status": "active"
},
{
"name": "PJE TRF1 - 2º grau",
"customer_key": "*",
"credential_status": "not exists"
}
]
}
{
"systems": [
{
"name": "*",
"customer_key": "lawyer_01",
"credential_status": "active"
},
{
"name": "PJE TJBA - 1º grau",
"customer_key": "lawyer_01",
"credential_status": "active"
}
]
}
{
"systems": [
{
"name": "*",
"customer_key": "",
"credential_status": "not exists"
},
{
"name": "EPROC - JFES - 1º grau",
"customer_key": "*",
"credential_status": "not exists"
},
{
"name": "PJE TJBA - 1º grau",
"customer_key": "*",
"credential_status": "active"
},
{
"name": "PJE TRF1 - 2º grau",
"customer_key": "*",
"credential_status": "not exists"
}
]
}
{
"systems": [
{
"name": "*",
"customer_key": "lawyer_01",
"credential_status": "active"
},
{
"name": "PJE TJBA - 1º grau",
"customer_key": "lawyer_01",
"credential_status": "active"
}
]
}
Credential Status Types
Credential Status Types
credential_status can be:
not exists: Not registeredactive: Registered and activeinactive: The credential failed to log in to the court (invalid or expired password, blocked user or expired certificate). Revalidate the login in the court portal and register the credential again to make it active.If a registration is created under the system * (generic registration), that credential will be used for every court that does not have its own specific registration in the same customer_key — so be careful with this type of registration.customer_key parameter (or with ?customer_key=*), the response lists every system available in the vault, with the status of each one under the default key * (use this list to copy the exact system_name). The example above is shortened. How to read the example without customer_key:
- Row
"name": "*"with"customer_key": "": this is the wildcard credential of the default key. Thecustomer_keyis empty because no wildcard is registered under that key (not exists). When one exists, it is filled in. - Other rows with
"customer_key": "*": the API repeats the default key used as the filter, even when the status isnot exists. This*is not a registered wildcard credential.
?customer_key=..., the "name": "*" row is the wildcard of that key and the other rows are only the systems with their own credential under it. If no customer_key is provided at registration, the default value * is used; the default key is never empty.Was this page helpful?