Documentation Index
Fetch the complete documentation index at: https://docs.redpill.ai/llms.txt
Use this file to discover all available pages before exploring further.
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:
- First make a chat completion request to get a
request_id (use the ID from the response)
- Add your API key when prompted
- Fill in the
request_id path parameter
- The
model query parameter is pre-filled with phala/qwen-2.5-7b-instruct
Parameters
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/glm-5
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 →