Skip to content

Get the challenge of the specified request for current user

GET/requests/{id}/challenge

Path parameters

NameTypeDescriptionRequired
id
string
Id of the request

Response schema

{
// Public key of the current user
pubKey: string;
// Challenge data to sign with the user's private key
challenge:
|
|
|
}

Examples

bash
curl \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer {jwt}" \
  "$API_BASE_URL/requests/{id}/challenge"
ts
const url = "<base-url>/requests/{id}/challenge";

const headers = {
  "Content-Type": "application/json",
  Authorization: "Bearer <jwt>"
};

fetch(url, { headers }).then(res => {
  console.log(res)
});
python
import requests

url = "<base-url>/requests/{id}/challenge"

headers = {
  "Content-Type": "application/json",
  "Authorization": "Bearer <jwt>"
}

print(requests.get(url, headers=headers))