Skip to main content
GET
/
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}
Try it now! To test in the playground:
  1. First make a chat completion request to get a request_id (use the ID from the response)
  2. Add your API key when prompted
  3. Fill in the request_id path parameter
  4. The model query parameter is pre-filled with phala/qwen-2.5-7b-instruct

Parameters

request_id
string
required
Request ID from the chat completion responseExample: chatcmpl-abc123xyz
model
string
default:"phala/qwen-2.5-7b-instruct"
required
Model ID that was used for the requestExamples: phala/qwen-2.5-7b-instruct, phala/deepseek-chat-v3-0324
signing_algo
string
Signature algorithm to useOptions: ecdsa (default), ecdsa-p256, rsa

Example

# 1. Make request
RESPONSE=$(curl -s https://api.redpill.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -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" \
  -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 →