GET
/
v1
/
signature
/
{request_id}
Request Signature
curl --request GET \
  --url https://api.redpill.ai/v1/signature/{request_id} \
  --header 'Authorization: Bearer <token>'

Get Request Signature

Returns cryptographic signature for a specific request.
GET https://api.redpill.ai/v1/signature/{request_id}?model={model}&signing_algo={algo}

Parameters

ParameterTypeRequiredDescription
request_idstringYesRequest ID from response
modelstringYesModel used
signing_algostringNoecdsa, ecdsa-p256, rsa

Example

# 1. Make request
RESPONSE=$(curl -s https://api.redpill.ai/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{"model":"phala/qwen-2.5-7b-instruct","messages":[{"role":"user","content":"test"}]}')

REQUEST_ID=$(echo $RESPONSE | jq -r '.id')

# 2. Get signature
curl "https://api.redpill.ai/v1/signature/$REQUEST_ID?model=phala/qwen-2.5-7b-instruct&signing_algo=ecdsa" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "request_id": "chatcmpl-123",
  "model": "phala/qwen-2.5-7b-instruct",
  "signature": {
    "algorithm": "ecdsa",
    "curve": "secp256k1",
    "value": "3045022100a1b2...",
    "public_key": "04a1b2c3..."
  },
  "payload": {
    "request_hash": "5a4b3c2d...",
    "response_hash": "9e8f7d6c...",
    "timestamp": "2025-01-15T10:30:00Z"
  }
}

Verification Guide

Learn how to verify signatures →