Signature
curl --request GET \
--url https://api.redpill.ai/v1/signature/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.redpill.ai/v1/signature/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.redpill.ai/v1/signature/{id}', 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://api.redpill.ai/v1/signature/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.redpill.ai/v1/signature/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.redpill.ai/v1/signature/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.redpill.ai/v1/signature/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyLegacy
Signature
The legacy receipt wrapper for a response.
GET
/
signature
/
{id}
Signature
curl --request GET \
--url https://api.redpill.ai/v1/signature/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.redpill.ai/v1/signature/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.redpill.ai/v1/signature/{id}', 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://api.redpill.ai/v1/signature/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.redpill.ai/v1/signature/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.redpill.ai/v1/signature/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.redpill.ai/v1/signature/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body/v1/signature/{id} is a legacy endpoint kept for backward compatibility with earlier API clients. It returns the same receipt as the
canonical GET /v1/aci/receipts/{id}, wrapped in a legacy envelope. New
integrations should use the canonical endpoint.
string
required
A receipt id (
rcpt-…) or a response id (chat id).Response
| Field | Description |
|---|---|
api_version | ACI version token, for example aci/1. |
signing_algo | Signature algorithm, for example ecdsa. |
signing_address | Address that signed text. |
text | "<request body hash>:<response hash>". The signed message. |
signature | Signature over text. |
receipt | The full receipt object, identical to the canonical /v1/aci/receipts/{id} response. |
{
"api_version": "aci/1",
"signing_algo": "ecdsa",
"signing_address": "0xffb22d95…",
"text": "111d08a5…:07703fb4…",
"signature": "0xd0cd266a…",
"receipt": { "receipt_id": "rcpt-…", "event_log": [ "…" ], "signature": "…" }
}
/v1/aci/receipts/{id} returns the receipt object directly, without the outer
text / signature / signing_address envelope.
Related
Get receipt
Attestation Report
Was this page helpful?
⌘I