PureCipher Signature API
The Signature API from PureCipher — 2 operation(s) for signature.
The Signature API from PureCipher — 2 operation(s) for signature.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/purecipher-com:purecipher-com-signature-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Omniseal™ API Documentation Signature API
version: '2.0'
tags:
- name: Signature
paths:
/api/v1/signature/sign/:
post:
tags:
- Signature
summary: Sign a File
description: Creates a digital signature for a file using AWS KMS.
operationId: create_signature_api_v1_signature_sign__post
requestBody:
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/Body_create_signature_api_v1_signature_sign__post'
examples:
Example Response:
summary: Example Response
value:
signature: MEUCIQ...FAiEA7...
public_key: MFkwEwY...
Curl:
summary: Curl Example
value:
- curl -X POST "https://api.purecipher.com/signature/sign" \
- '-H "accept: application/json" \'
- '-H "Content-Type: multipart/form-data" \'
- -F "file=@path/to/your/file.txt"
Python:
summary: Python Example
value:
- import requests
- 'files = {''file'': open(''path/to/your/file.txt'', ''rb'')}'
- response = requests.post("https://api.purecipher.com/signature/sign", files=files)
- print(response.json())
JavaScript (Node.js):
summary: JavaScript Example
value:
- const fs = require('fs');
- const FormData = require('form-data');
- const form = new FormData();
- form.append('file', fs.createReadStream('path/to/your/file.txt'));
- form.submit('https://api.purecipher.com/signature/sign', (err, res) => {
- ' res.on(''data'', chunk => console.log(chunk.toString()));'
- '});'
Java:
summary: Java Example
value:
- import java.net.HttpURLConnection;
- import java.net.URL;
- import java.nio.file.Files;
- import java.nio.file.Path;
- import java.io.OutputStream;
- import java.io.BufferedReader;
- import java.io.InputStreamReader;
- ''
- public class SignFile {
- ' public static void main(String[] args) throws Exception {'
- ' URL url = new URL("https://api.purecipher.com/signature/sign");'
- ' HttpURLConnection conn = (HttpURLConnection) url.openConnection();'
- ' conn.setRequestMethod("POST");'
- ' conn.setDoOutput(true);'
- ' conn.setRequestProperty("Content-Type", "multipart/form-data");'
- ''
- ' Path filePath = Path.of("path/to/your/file.txt");'
- ' byte[] fileBytes = Files.readAllBytes(filePath);'
- ''
- ' try (OutputStream os = conn.getOutputStream()) {'
- ' os.write(fileBytes);'
- ' }'
- ''
- ' BufferedReader br = new BufferedReader(new InputStreamReader(conn.getInputStream()));'
- ' String line;'
- ' while ((line = br.readLine()) != null) {'
- ' System.out.println(line);'
- ' }'
- ' }'
- '}'
Go:
summary: Go Example
value:
- package main
- ''
- import (
- ' "bytes"'
- ' "fmt"'
- ' "io"'
- ' "mime/multipart"'
- ' "net/http"'
- ' "os"'
- )
- ''
- func main() {
- ' file, err := os.Open("path/to/your/file.txt")'
- ' if err != nil {'
- ' panic(err)'
- ' }'
- ' defer file.Close()'
- ''
- ' var b bytes.Buffer'
- ' writer := multipart.NewWriter(&b)'
- ' part, err := writer.CreateFormFile("file", file.Name())'
- ' if err != nil {'
- ' panic(err)'
- ' }'
- ' _, err = io.Copy(part, file)'
- ' if err != nil {'
- ' panic(err)'
- ' }'
- ' writer.Close()'
- ''
- ' req, err := http.NewRequest("POST", "https://api.purecipher.com/signature/sign", &b)'
- ' if err != nil {'
- ' panic(err)'
- ' }'
- ' req.Header.Set("Content-Type", writer.FormDataContentType())'
- ''
- ' client := &http.Client{}'
- ' resp, err := client.Do(req)'
- ' if err != nil {'
- ' panic(err)'
- ' }'
- ' defer resp.Body.Close()'
- ''
- ' fmt.Println(resp.StatusCode)'
- '}'
.NET (C#):
summary: .NET (C#) Example
value:
- using System;
- using System.Net.Http;
- using System.Net.Http.Headers;
- using System.Threading.Tasks;
- ''
- class Program {
- ' private static async Task Main() {'
- ' var client = new HttpClient();'
- ' var filePath = "path/to/your/file.txt";'
- ' var content = new MultipartFormDataContent();'
- ' content.Add(new StreamContent(File.OpenRead(filePath)), "file", "file.txt");'
- ' var response = await client.PostAsync("https://api.purecipher.com/signature/sign", content);'
- ' var responseString = await response.Content.ReadAsStringAsync();'
- ' Console.WriteLine(responseString);'
- ' }'
- '}'
required: true
responses:
'200':
description: File signed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/SignResponseModel'
'400':
description: 'Bad Request - Missing required field: file.'
content:
application/json:
schema:
properties:
detail:
type: string
type: object
example:
detail: 'Missing required field: file.'
'403':
description: Forbidden - Permission denied to sign the file.
content:
application/json:
schema:
properties:
detail:
type: string
type: object
example:
detail: Permission denied to sign the file.
'500':
description: Internal Server Error - Error signing the file using KMS.
content:
application/json:
schema:
properties:
detail:
type: string
type: object
example:
detail: Error signing the file using KMS.
'502':
description: Bad Gateway - KMS service unavailable.
content:
application/json:
schema:
properties:
detail:
type: string
type: object
example:
detail: KMS service unavailable.
'503':
description: Service Unavailable - API service is currently down.
content:
application/json:
schema:
properties:
detail:
type: string
type: object
example:
detail: API service is currently down.
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
/api/v1/signature/verify/:
post:
tags:
- Signature
summary: Verify a Signed File
description: Verifies the digital signature of a file using AWS KMS.
operationId: verify_signature_api_v1_signature_verify__post
requestBody:
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/Body_verify_signature_api_v1_signature_verify__post'
examples:
Curl:
summary: Curl Example
value:
- curl -X POST "https://api.purecipher.com/verify" \
- '-H "accept: application/json" \'
- '-H "Content-Type: multipart/form-data" \'
- -F "file=@path/to/your/file.txt" \
- -F "signature=Base64EncodedSignature"
Python:
summary: Python Example
value:
- import requests
- ''
- files = {
- ' ''file'': open(''path/to/your/file.txt'', ''rb'')'
- '}'
- data = {
- ' ''signature'': ''Base64EncodedSignature'''
- '}'
- response = requests.post("https://api.purecipher.com/verify", files=files, data=data)
- print(response.json())
JavaScript (Node.js):
summary: JavaScript Example
value:
- const fs = require('fs');
- const FormData = require('form-data');
- ''
- const form = new FormData();
- form.append('file', fs.createReadStream('path/to/your/file.txt'));
- form.append('signature', 'Base64EncodedSignature');
- ''
- form.submit('https://api.purecipher.com/verify', (err, res) => {
- ' res.on(''data'', chunk => console.log(chunk.toString()));'
- '});'
Java:
summary: Java Example
value:
- import java.net.HttpURLConnection;
- import java.net.URL;
- import java.nio.file.Files;
- import java.nio.file.Path;
- import java.io.OutputStream;
- import java.io.BufferedReader;
- import java.io.InputStreamReader;
- ''
- public class VerifyFile {
- ' public static void main(String[] args) throws Exception {'
- ' URL url = new URL("https://api.purecipher.com/verify");'
- ' HttpURLConnection conn = (HttpURLConnection) url.openConnection();'
- ' conn.setRequestMethod("POST");'
- ' conn.setDoOutput(true);'
- ' conn.setRequestProperty("Content-Type", "multipart/form-data");'
- ''
- ' Path filePath = Path.of("path/to/your/file.txt");'
- ' byte[] fileBytes = Files.readAllBytes(filePath);'
- ''
- ' try (OutputStream os = conn.getOutputStream()) {'
- ' os.write(fileBytes);'
- ' }'
- ''
- ' BufferedReader br = new BufferedReader(new InputStreamReader(conn.getInputStream()));'
- ' String line;'
- ' while ((line = br.readLine()) != null) {'
- ' System.out.println(line);'
- ' }'
- ' }'
- '}'
Go:
summary: Go Example
value:
- package main;
- ''
- import (
- ' "bytes"'
- ' "fmt"'
- ' "io/ioutil"'
- ' "mime/multipart"'
- ' "net/http"'
- ' "os"'
- )
- ''
- func main() {
- ' file, err := os.Open("path/to/your/file.txt");'
- ' if err != nil {'
- ' panic(err);'
- ' }'
- ' defer file.Close();'
- ''
- ' var b bytes.Buffer;'
- ' writer := multipart.NewWriter(&b);'
- ' part, err := writer.CreateFormFile("file", file.Name());'
- ' if err != nil {'
- ' panic(err);'
- ' }'
- ' _, err = io.Copy(part, file);'
- ' if err != nil {'
- ' panic(err);'
- ' }'
- ' writer.WriteField("signature", "Base64EncodedSignature");'
- ' writer.Close();'
- ''
- ' req, err := http.NewRequest("POST", "https://api.purecipher.com/verify", &b);'
- ' if err != nil {'
- ' panic(err);'
- ' }'
- ' req.Header.Set("Content-Type", writer.FormDataContentType());'
- ''
- ' client := &http.Client{};'
- ' resp, err := client.Do(req);'
- ' if err != nil {'
- ' panic(err);'
- ' }'
- ' defer resp.Body.Close();'
- ''
- ' body, err := ioutil.ReadAll(resp.Body);'
- ' if err != nil {'
- ' panic(err);'
- ' }'
- ' fmt.Println(string(body));'
- '}'
.NET (C#):
summary: .NET Example
value:
- using System;
- using System.Net.Http;
- using System.Net.Http.Headers;
- using System.Threading.Tasks;
- ''
- class Program {
- ' private static async Task Main() {'
- ' var client = new HttpClient();'
- ' var filePath = "path/to/your/file.txt";'
- ' var content = new MultipartFormDataContent();'
- ' content.Add(new StreamContent(File.OpenRead(filePath)), "file", "file.txt");'
- ' content.Add(new StringContent("Base64EncodedSignature"), "signature");'
- ''
- ' var response = await client.PostAsync("https://api.purecipher.com/verify", content);'
- ' var responseString = await response.Content.ReadAsStringAsync();'
- ' Console.WriteLine(responseString);'
- ' }'
- '}'
required: true
responses:
'200':
description: 'Verification successful: The file and signature match.'
content:
application/json:
schema:
$ref: '#/components/schemas/VerifyResponseModel'
'400':
description: 'Bad Request: Missing required parameters or invalid signature format.'
content:
application/json:
example:
error: MISSING_PARAMETER or INVALID_SIGNATURE
'401':
description: 'Unauthorized: API key is missing, invalid, or expired.'
content:
application/json:
example:
error: INVALID_API_KEY
'403':
description: 'Forbidden: API key lacks necessary permissions.'
content:
application/json:
example:
error: FORBIDDEN_ACCESS
'422':
description: 'Unprocessable Entity: Invalid signature.'
content:
application/json:
example:
error: INVALID_SIGNATURE
'500':
description: 'Internal Server Error: Unexpected error during verification.'
content:
application/json:
example:
error: SERVER_ERROR
'503':
description: 'Service Unavailable: The service is temporarily unavailable or overloaded.'
content:
application/json:
example:
error: SERVICE_UNAVAILABLE
security:
- APIKeyHeader: []
components:
schemas:
VerifyResponseModel:
properties:
is_valid:
type: boolean
title: Is Valid
description: Indicates whether the signature is valid or not.
error:
type: string
title: Error
description: An optional error message if the verification fails.
type: object
required:
- is_valid
title: VerifyResponseModel
Body_create_signature_api_v1_signature_sign__post:
properties:
file:
type: string
format: binary
title: File
description: The file to be signed.
type: object
required:
- file
title: Body_create_signature_api_v1_signature_sign__post
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
type: object
required:
- loc
- msg
- type
title: ValidationError
Body_verify_signature_api_v1_signature_verify__post:
properties:
file:
type: string
format: binary
title: File
description: The file whose signature needs to be verified.
signature:
type: string
title: Signature
description: The base64-encoded signature to be verified.
type: object
required:
- file
- signature
title: Body_verify_signature_api_v1_signature_verify__post
SignResponseModel:
properties:
signature:
type: string
title: Signature
description: The base64-encoded digital signature of the file.
public_key:
type: string
title: Public Key
description: The base64-encoded PEM-formatted public key.
type: object
required:
- signature
- public_key
title: SignResponseModel
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
securitySchemes:
APIKeyHeader:
type: apiKey
in: header
name: api_token
x-tagGroups:
- name: General
tags:
- Registration
- Health and Readiness
- name: Release 3
tags:
- Audio
- Video
- name: Release 2
tags:
- Unified API
- Edix12
- Data Lineage
- Data Provenance
- Base64
- name: Release 1
tags:
- Signature
- Encryption
- Hash
- Steganography