Skip to main content
GET
/
relayer
/
api
/
keys
Get all relayer API keys
curl --request GET \
  --url https://relayer-v2.polymarket.com/relayer/api/keys
import requests

url = "https://relayer-v2.polymarket.com/relayer/api/keys"

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('https://relayer-v2.polymarket.com/relayer/api/keys', 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://relayer-v2.polymarket.com/relayer/api/keys",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);

$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://relayer-v2.polymarket.com/relayer/api/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://relayer-v2.polymarket.com/relayer/api/keys")
.asString();
require 'uri'
require 'net/http'

url = URI("https://relayer-v2.polymarket.com/relayer/api/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
[
  {
    "apiKey": "01967c03-b8c8-7000-8f68-8b8eaec6fd3d",
    "address": "0xabc...",
    "createdAt": "2026-02-24T18:20:11.237485Z",
    "updatedAt": "2026-02-24T18:20:11.237485Z"
  }
]
{
"error": "invalid authorization"
}
{
"error": "not allowed"
}

Headers

RELAYER_API_KEY
string

Relayer API key (when using relayer API key auth)

RELAYER_API_KEY_ADDRESS
string

Address that owns the key (when using relayer API key auth). Must match the address that owns the key. Ethereum address (0x-prefixed, 40 hex chars)

Pattern: ^0x[a-fA-F0-9]{40}$
Example:

"0x6e0c80c90ea6c15917308F820Eac91Ce2724B5b5"

Response

API keys retrieved successfully. Returns an empty array if no keys exist for the authenticated address.

apiKey
string

The relayer API key

Example:

"01967c03-b8c8-7000-8f68-8b8eaec6fd3d"

address
string

The address that owns the key

Pattern: ^0x[a-fA-F0-9]{40}$
Example:

"0xabc..."

createdAt
string<date-time>

Timestamp when the key was created

Example:

"2026-02-24T18:20:11.237485Z"

updatedAt
string<date-time>

Timestamp when the key was last updated

Example:

"2026-02-24T18:20:11.237485Z"