Request Signature
API Reference
Request Signature
GET /v1/signature/ - Get request signature
GET
Request Signature
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 a cryptographic signature for a specific chat completion response. Use it with/v1/attestation/report to prove the response was signed by a key bound to a genuine TEE instance.
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_idpath parameter - The
modelquery parameter is pre-filled withphala/qwen-2.5-7b-instruct
Parameters
Request ID from the chat completion responseExample:
chatcmpl-abc123xyzModel ID that was used for the requestExamples:
phala/qwen3.5-27b, phala/qwen-2.5-7b-instruct, openai/gpt-oss-120bSignature algorithm to useOptions:
ecdsa (default), ecdsa-p256, rsaExample
Response
Response Fields
| Field | Type | Description |
|---|---|---|
text | string | Signed message in format model:request_hash:response_hash or request_hash:response_hash |
signature | string | ECDSA signature (hex-encoded, EIP-191 format) |
signing_address | string | Ethereum address of the TEE signing key |
signing_algo | string | Signature algorithm: "ecdsa" |
Signature text format: The
text field may contain 2 or 3 colon-separated parts. When 3 parts, the format is model:request_hash:response_hash (the model name may differ from what you sent because the TEE gateway rewrites it internally). The request/response hashes are SHA-256 of the raw bodies.Verify Signature
Bind Signature to TEE Attestation
After verifying the request and response hashes, fetch fresh attestation for the same signer:signing_address plus your fresh nonce.
Verification Guide
Learn how to verify signatures →