Search passkeys
curl --request POST \
--url https://api.cloud.corbado.io/v1/observe/passkeySearch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"userIDs": [
"<string>"
],
"status": [],
"limit": 100
}
'import requests
url = "https://api.cloud.corbado.io/v1/observe/passkeySearch"
payload = {
"userIDs": ["<string>"],
"status": [],
"limit": 100
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({userIDs: ['<string>'], status: [], limit: 100})
};
fetch('https://api.cloud.corbado.io/v1/observe/passkeySearch', 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://api.cloud.corbado.io/v1/observe/passkeySearch",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'userIDs' => [
'<string>'
],
'status' => [
],
'limit' => 100
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.cloud.corbado.io/v1/observe/passkeySearch"
payload := strings.NewReader("{\n \"userIDs\": [\n \"<string>\"\n ],\n \"status\": [],\n \"limit\": 100\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.cloud.corbado.io/v1/observe/passkeySearch")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"userIDs\": [\n \"<string>\"\n ],\n \"status\": [],\n \"limit\": 100\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloud.corbado.io/v1/observe/passkeySearch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"userIDs\": [\n \"<string>\"\n ],\n \"status\": [],\n \"limit\": 100\n}"
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"userID": "<string>",
"credentialID": "<string>",
"transports": [
"<string>"
],
"backupState": true,
"dataStatus": "full-observed",
"status": "created",
"createdMs": 123,
"serialNumber": "<string>",
"type": "passkey",
"discoverable": true,
"attestationFormat": "<string>",
"backupEligible": true,
"aaguid": "<string>",
"aaguidStatus": "estimate-weak",
"createdOnClientEnvID": "<string>"
}
]{
"error": {
"message": "Validation failed",
"details": [
{
"field": "projectID",
"message": "required"
}
]
}
}Passkey analysis
Search passkeys
Finds observed passkeys for selected Observe users.
Required API key permission: observe:passkeys:read.
POST
/
observe
/
passkeySearch
Search passkeys
curl --request POST \
--url https://api.cloud.corbado.io/v1/observe/passkeySearch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"userIDs": [
"<string>"
],
"status": [],
"limit": 100
}
'import requests
url = "https://api.cloud.corbado.io/v1/observe/passkeySearch"
payload = {
"userIDs": ["<string>"],
"status": [],
"limit": 100
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({userIDs: ['<string>'], status: [], limit: 100})
};
fetch('https://api.cloud.corbado.io/v1/observe/passkeySearch', 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://api.cloud.corbado.io/v1/observe/passkeySearch",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'userIDs' => [
'<string>'
],
'status' => [
],
'limit' => 100
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.cloud.corbado.io/v1/observe/passkeySearch"
payload := strings.NewReader("{\n \"userIDs\": [\n \"<string>\"\n ],\n \"status\": [],\n \"limit\": 100\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.cloud.corbado.io/v1/observe/passkeySearch")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"userIDs\": [\n \"<string>\"\n ],\n \"status\": [],\n \"limit\": 100\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloud.corbado.io/v1/observe/passkeySearch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"userIDs\": [\n \"<string>\"\n ],\n \"status\": [],\n \"limit\": 100\n}"
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"userID": "<string>",
"credentialID": "<string>",
"transports": [
"<string>"
],
"backupState": true,
"dataStatus": "full-observed",
"status": "created",
"createdMs": 123,
"serialNumber": "<string>",
"type": "passkey",
"discoverable": true,
"attestationFormat": "<string>",
"backupEligible": true,
"aaguid": "<string>",
"aaguidStatus": "estimate-weak",
"createdOnClientEnvID": "<string>"
}
]{
"error": {
"message": "Validation failed",
"details": [
{
"field": "projectID",
"message": "required"
}
]
}
}Authorizations
Body
application/json
Response
Matching passkeys.
Was this page helpful?