List your passkeys
curl --request GET \
--url https://api.glassmarkets.io/v1/user/passkeys/ \
--header 'Authorization: <api-key>'import requests
url = "https://api.glassmarkets.io/v1/user/passkeys/"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.glassmarkets.io/v1/user/passkeys/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.glassmarkets.io/v1/user/passkeys/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<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://api.glassmarkets.io/v1/user/passkeys/")
.header("Authorization", "<api-key>")
.asString();[
{
"id": 123,
"name": "<string>",
"device_type": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"backed_up": true,
"last_used_at": "2023-11-07T05:31:56Z"
}
]Account
List your passkeys
Returns the passkeys registered to the logged-in user.
GET
/
v1
/
user
/
passkeys
/
List your passkeys
curl --request GET \
--url https://api.glassmarkets.io/v1/user/passkeys/ \
--header 'Authorization: <api-key>'import requests
url = "https://api.glassmarkets.io/v1/user/passkeys/"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.glassmarkets.io/v1/user/passkeys/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.glassmarkets.io/v1/user/passkeys/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<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://api.glassmarkets.io/v1/user/passkeys/")
.header("Authorization", "<api-key>")
.asString();[
{
"id": 123,
"name": "<string>",
"device_type": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"backed_up": true,
"last_used_at": "2023-11-07T05:31:56Z"
}
]
