List the GP public keys
const options = {method: 'GET'};
fetch('https://core.prod.gnosispay.com/partner-api/v1/challenge/keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://core.prod.gnosispay.com/partner-api/v1/challenge/keysimport requests
url = "https://core.prod.gnosispay.com/partner-api/v1/challenge/keys"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://core.prod.gnosispay.com/partner-api/v1/challenge/keys"
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://core.prod.gnosispay.com/partner-api/v1/challenge/keys")
.asString();require 'uri'
require 'net/http'
url = URI("https://core.prod.gnosispay.com/partner-api/v1/challenge/keys")
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{
"keys": [
{
"kty": "EC",
"crv": "P-256",
"x": "<string>",
"y": "<string>",
"kid": "<string>",
"use": "sig",
"alg": "ES256"
}
]
}{
"code": 123,
"message": "<string>",
"reason": "<string>"
}Encrypted data
List the GP public keys
Lists the public keys of GP: the keys with use: sig verify the
challenge, the reply data and the PIN change proof; the keys with
use: enc encrypt the answer. The route takes no access token and allows
any CORS origin.
The reply is a JSON Web Key Set (RFC 7517), not a paginated list. Load it with the JWKS parser of a JOSE library.
GET
/
v1
/
challenge
/
keys
List the GP public keys
const options = {method: 'GET'};
fetch('https://core.prod.gnosispay.com/partner-api/v1/challenge/keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://core.prod.gnosispay.com/partner-api/v1/challenge/keysimport requests
url = "https://core.prod.gnosispay.com/partner-api/v1/challenge/keys"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://core.prod.gnosispay.com/partner-api/v1/challenge/keys"
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://core.prod.gnosispay.com/partner-api/v1/challenge/keys")
.asString();require 'uri'
require 'net/http'
url = URI("https://core.prod.gnosispay.com/partner-api/v1/challenge/keys")
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{
"keys": [
{
"kty": "EC",
"crv": "P-256",
"x": "<string>",
"y": "<string>",
"kid": "<string>",
"use": "sig",
"alg": "ES256"
}
]
}{
"code": 123,
"message": "<string>",
"reason": "<string>"
}Response
The request has succeeded.