PureCipher Edix12 API
The Edix12 API from PureCipher — 3 operation(s) for edix12.
The Edix12 API from PureCipher — 3 operation(s) for edix12.
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-edix12-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 Edix12 API
version: '2.0'
tags:
- name: Edix12
paths:
/api/v1/edix12/embed/:
post:
tags:
- Edix12
summary: Embed Integrity Marks in an EDIX12 Transaction Set
description: Embeds hash-based integrity marks in specified segments of an EDIX12 document.
operationId: embed_edi_file_api_v1_edix12_embed__post
requestBody:
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/Body_embed_edi_file_api_v1_edix12_embed__post'
examples:
Curl:
summary: Curl
value:
- curl -X POST " https://api.purecipher.com/edix12/embed/" \
- '-H "accept: application/json" \'
- '-H "Content-Type: multipart/form-data" \'
- -F "file=@file.x12"
Python:
summary: Python
value:
- import requests
- ''
- 'with open("file.x12", "rb") as f:'
- ' response = requests.post(" https://api.purecipher.com/edix12/embed/", files={"file": f})'
- ' print(response.json())'
JavaScript (Node.js):
summary: JavaScript
value:
- const FormData = require('form-data');
- const fs = require('fs');
- const https = require('https');
- ''
- const form = new FormData();
- form.append('file', fs.createReadStream('file.x12'));
- ''
- const options = {
- ' method: ''POST'','
- ' host: ''api.purecipher.com'','
- ' path: ''/embed/'','
- ' headers: form.getHeaders()'
- '};'
- ''
- const req = https.request(options, (res) => {
- ' let data = '''';'
- ' res.on(''data'', (chunk) => {'
- ' data += chunk;'
- ' });'
- ' res.on(''end'', () => {'
- ' console.log(data);'
- ' });'
- '});'
- ''
- form.pipe(req);
- ''
- req.on('error', (err) => {
- ' console.error(err);'
- '});'
Java:
summary: Java
value:
- import java.net.HttpURLConnection;
- import java.net.URL;
- import java.io.OutputStream;
- import java.nio.file.Files;
- import java.nio.file.Paths;
- ''
- public class EmbedEdiX12 {
- ' public static void main(String[] args) throws Exception {'
- ' URL url = new URL(" https://api.purecipher.com/edix12/embed/");'
- ' HttpURLConnection conn = (HttpURLConnection) url.openConnection();'
- ' conn.setRequestMethod("POST");'
- ' conn.setRequestProperty("Accept", "application/json");'
- ' conn.setRequestProperty("Content-Type", "multipart/form-data");'
- ''
- ' conn.setDoOutput(true);'
- ' try (OutputStream os = conn.getOutputStream()) {'
- ' Files.copy(Paths.get("file.x12"), os);'
- ' }'
- ''
- ' if (conn.getResponseCode() != 200) {'
- ' throw new RuntimeException("Failed : HTTP error code : " + conn.getResponseCode());'
- ' }'
- ''
- ' System.out.println("Embedding complete");'
- ' conn.disconnect();'
- ' }'
- '}'
Go:
summary: Go
value:
- package main
- ''
- import (
- ' "fmt"'
- ' "io/ioutil"'
- ' "net/http"'
- ' "os"'
- )
- ''
- func main() {
- ' file, err := os.Open("file.x12")'
- ' if err != nil {'
- ' panic(err)'
- ' }'
- ' defer file.Close()'
- ''
- ' request, err := http.NewRequest("POST", " https://api.purecipher.com/edix12/embed/", file)'
- ' if err != nil {'
- ' panic(err)'
- ' }'
- ' request.Header.Set("Content-Type", "multipart/form-data")'
- ''
- ' client := &http.Client{}'
- ' response, err := client.Do(request)'
- ' if err != nil {'
- ' panic(err)'
- ' }'
- ' defer response.Body.Close()'
- ''
- ' body, err := ioutil.ReadAll(response.Body)'
- ' if err != nil {'
- ' panic(err)'
- ' }'
- ''
- ' fmt.Println(string(body))'
- '}'
.NET (C#):
summary: .NET (C#)
value:
- using System;
- using System.Net.Http;
- using System.Threading.Tasks;
- ''
- class Program {
- ' private static readonly HttpClient client = new HttpClient();'
- ''
- ' static async Task Main() {'
- ' var response = await client.PostAsync(" https://api.purecipher.com/edix12/embed/", new MultipartFormDataContent {'
- ' { new StreamContent(File.OpenRead("file.x12")), "file", "file.x12" }'
- ' });'
- ''
- ' Console.WriteLine(await response.Content.ReadAsStringAsync());'
- ' }'
- '}'
required: true
responses:
'200':
description: Successful Embedding of Integrity Marks
content:
application/json:
schema:
$ref: '#/components/schemas/EDIResponseModel'
properties:
message:
type: string
content:
type: string
type: object
'400':
description: Bad Request - Invalid File Type or Too Large
content:
application/json:
schema:
properties:
detail:
type: string
type: object
example:
detail: Invalid file type. Only EDIX12 files are allowed.
'500':
description: Internal Server Error
content:
application/json:
schema:
type: object
properties:
detail:
type: string
example:
detail: Internal server error occurred while embedding integrity marks.
'422':
description: Unprocessable Entity - Validation Error
content:
application/json:
schema:
type: object
properties:
detail:
type: string
example:
detail: Invalid watermark mode provided.
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
/api/v1/edix12/reveal/:
post:
tags:
- Edix12
summary: Remove Integrity Marks from an EDIX12 File
description: Removes previously embedded hash-based integrity marks from an EDIX12 document.
operationId: reveal_edi_file_api_v1_edix12_reveal__post
requestBody:
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/Body_reveal_edi_file_api_v1_edix12_reveal__post'
examples:
Curl:
summary: Curl
value:
- curl -X POST "https://api.purecipher.com/edix12/reveal/" \
- '-H "accept: application/json" \'
- '-H "Content-Type: multipart/form-data" \'
- -F "file=@file.x12"
Python:
summary: Python
value:
- import requests
- ''
- 'with open("file.x12", "rb") as f:'
- ' response = requests.post("https://api.purecipher.com/edix12/reveal/", files={"file": f})'
- ' print(response.json())'
JavaScript (Node.js):
summary: JavaScript
value:
- const FormData = require('form-data');
- const fs = require('fs');
- const https = require('https');
- ''
- const form = new FormData();
- form.append('file', fs.createReadStream('file.x12'));
- ''
- const options = {
- ' method: ''POST'','
- ' host: ''api.purecipher.com'','
- ' path: ''/reveal/'','
- ' headers: form.getHeaders()'
- '};'
- ''
- const req = https.request(options, (res) => {
- ' let data = '''';'
- ' res.on(''data'', (chunk) => {'
- ' data += chunk;'
- ' });'
- ' res.on(''end'', () => {'
- ' console.log(data);'
- ' });'
- '});'
- ''
- form.pipe(req);
- ''
- req.on('error', (err) => {
- ' console.error(err);'
- '});'
Java:
summary: Java
value:
- import java.net.HttpURLConnection;
- import java.net.URL;
- import java.io.OutputStream;
- import java.nio.file.Files;
- import java.nio.file.Paths;
- ''
- public class RevealEdiX12 {
- ' public static void main(String[] args) throws Exception {'
- ' URL url = new URL("https://api.purecipher.com/edix12/reveal/");'
- ' HttpURLConnection conn = (HttpURLConnection) url.openConnection();'
- ' conn.setRequestMethod("POST");'
- ' conn.setRequestProperty("Accept", "application/json");'
- ' conn.setRequestProperty("Content-Type", "multipart/form-data");'
- ''
- ' conn.setDoOutput(true);'
- ' try (OutputStream os = conn.getOutputStream()) {'
- ' Files.copy(Paths.get("file.x12"), os);'
- ' }'
- ''
- ' if (conn.getResponseCode() != 200) {'
- ' throw new RuntimeException("Failed : HTTP error code : " + conn.getResponseCode());'
- ' }'
- ''
- ' System.out.println("Reveal complete");'
- ' conn.disconnect();'
- ' }'
- '}'
Go:
summary: Go
value:
- package main
- ''
- import (
- ' "fmt"'
- ' "io/ioutil"'
- ' "net/http"'
- ' "os"'
- )
- ''
- func main() {
- ' file, err := os.Open("file.x12")'
- ' if err != nil {'
- ' panic(err)'
- ' }'
- ' defer file.Close()'
- ''
- ' request, err := http.NewRequest("POST", "https://api.purecipher.com/edix12/reveal/", file)'
- ' if err != nil {'
- ' panic(err)'
- ' }'
- ' request.Header.Set("Content-Type", "multipart/form-data")'
- ''
- ' client := &http.Client{}'
- ' response, err := client.Do(request)'
- ' if err != nil {'
- ' panic(err)'
- ' }'
- ' defer response.Body.Close()'
- ''
- ' body, err := ioutil.ReadAll(response.Body)'
- ' if err != nil {'
- ' panic(err)'
- ' }'
- ''
- ' fmt.Println(string(body))'
- '}'
.NET (C#):
summary: .NET (C#)
value:
- using System;
- using System.Net.Http;
- using System.Threading.Tasks;
- ''
- class Program {
- ' private static readonly HttpClient client = new HttpClient();'
- ''
- ' static async Task Main() {'
- ' var response = await client.PostAsync("https://api.purecipher.com/edix12/reveal/", new MultipartFormDataContent {'
- ' { new StreamContent(File.OpenRead("file.x12")), "file", "file.x12" }'
- ' });'
- ''
- ' Console.WriteLine(await response.Content.ReadAsStringAsync());'
- ' }'
- '}'
required: true
responses:
'200':
description: Successful Removal of Integrity Marks
content:
application/json:
schema:
$ref: '#/components/schemas/EDIResponseModel'
properties:
message:
type: string
content:
type: string
type: object
'400':
description: Bad Request - Invalid File Type or Too Large
content:
application/json:
schema:
properties:
detail:
type: string
type: object
example:
detail: Invalid file type. Only EDIX12 files are allowed.
'422':
description: Unprocessable Entity - Validation Error
content:
application/json:
schema:
properties:
detail:
type: string
type: object
example:
detail: Validation error in watermark mode
'500':
description: Internal Server Error
content:
application/json:
schema:
properties:
detail:
type: string
type: object
example:
detail: Internal server error occurred while removing integrity marks.
security:
- APIKeyHeader: []
/api/v1/edix12/verify/:
post:
tags:
- Edix12
summary: Verify Integrity Marks in an EDIX12 Transaction Set
description: Verifies the authenticity of embedded integrity marks in an EDIX12 document.
operationId: verify_edi_file_api_v1_edix12_verify__post
requestBody:
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/Body_verify_edi_file_api_v1_edix12_verify__post'
examples:
Curl:
summary: Curl
value:
- curl -X POST "https://api.purecipher.com/edix12/verify/" \
- '-H "accept: application/json" \'
- '-H "Content-Type: multipart/form-data" \'
- -F "file=@file.x12"
Python:
summary: Python
value:
- import requests
- ''
- 'with open("file.x12", "rb") as f:'
- ' response = requests.post("https://api.purecipher.com/edix12/verify/", files={"file": f})'
- ' print(response.json())'
JavaScript (Node.js):
summary: JavaScript
value:
- const FormData = require('form-data');
- const fs = require('fs');
- const https = require('https');
- ''
- const form = new FormData();
- form.append('file', fs.createReadStream('file.x12'));
- ''
- const options = {
- ' method: ''POST'','
- ' host: ''api.purecipher.com'','
- ' path: ''/verify/'','
- ' headers: form.getHeaders()'
- '};'
- ''
- const req = https.request(options, (res) => {
- ' let data = '''';'
- ' res.on(''data'', (chunk) => {'
- ' data += chunk;'
- ' });'
- ' res.on(''end'', () => {'
- ' console.log(data);'
- ' });'
- '});'
- ''
- form.pipe(req);
- ''
- req.on('error', (err) => {
- ' console.error(err);'
- '});'
Java:
summary: Java
value:
- import java.net.HttpURLConnection;
- import java.net.URL;
- import java.io.OutputStream;
- import java.nio.file.Files;
- import java.nio.file.Paths;
- ''
- public class VerifyEdiX12 {
- ' public static void main(String[] args) throws Exception {'
- ' URL url = new URL("https://api.purecipher.com/edix12/verify/");'
- ' HttpURLConnection conn = (HttpURLConnection) url.openConnection();'
- ' conn.setRequestMethod("POST");'
- ' conn.setRequestProperty("Accept", "application/json");'
- ' conn.setRequestProperty("Content-Type", "multipart/form-data");'
- ''
- ' conn.setDoOutput(true);'
- ' try (OutputStream os = conn.getOutputStream()) {'
- ' Files.copy(Paths.get("file.x12"), os);'
- ' }'
- ''
- ' if (conn.getResponseCode() != 200) {'
- ' throw new RuntimeException("Failed : HTTP error code : " + conn.getResponseCode());'
- ' }'
- ''
- ' System.out.println("Verification complete");'
- ' conn.disconnect();'
- ' }'
- '}'
Go:
summary: Go
value:
- package main
- ''
- import (
- ' "fmt"'
- ' "io/ioutil"'
- ' "net/http"'
- ' "os"'
- )
- ''
- func main() {
- ' file, err := os.Open("file.x12")'
- ' if err != nil {'
- ' panic(err)'
- ' }'
- ' defer file.Close()'
- ''
- ' request, err := http.NewRequest("POST", "https://api.purecipher.com/edix12/verify/", file)'
- ' if err != nil {'
- ' panic(err)'
- ' }'
- ' request.Header.Set("Content-Type", "multipart/form-data")'
- ''
- ' client := &http.Client{}'
- ' response, err := client.Do(request)'
- ' if err != nil {'
- ' panic(err)'
- ' }'
- ' defer response.Body.Close()'
- ''
- ' body, err := ioutil.ReadAll(response.Body)'
- ' if err != nil {'
- ' panic(err)'
- ' }'
- ''
- ' fmt.Println(string(body))'
- '}'
.NET (C#):
summary: .NET (C#)
value:
- using System;
- using System.Net.Http;
- using System.Threading.Tasks;
- ''
- class Program {
- ' private static readonly HttpClient client = new HttpClient();'
- ''
- ' static async Task Main() {'
- ' var response = await client.PostAsync("https://api.purecipher.com/edix12/verify/", new MultipartFormDataContent {'
- ' { new StreamContent(File.OpenRead("file.x12")), "file", "file.x12" }'
- ' });'
- ''
- ' Console.WriteLine(await response.Content.ReadAsStringAsync());'
- ' }'
- '}'
required: true
responses:
'200':
description: Successful Verification of Integrity Marks
content:
application/json:
schema:
$ref: '#/components/schemas/VerificationResponseModel'
properties:
message:
type: string
is_valid:
type: boolean
type: object
'400':
description: Bad Request - Invalid File Type or Too Large
content:
application/json:
schema:
properties:
detail:
type: string
type: object
example:
detail: Invalid file type. Only EDIX12 files are allowed.
'422':
description: Unprocessable Entity - Validation Error
content:
application/json:
schema:
properties:
detail:
type: string
type: object
example:
detail: Validation error in watermark mode
'500':
description: Internal Server Error
content:
application/json:
schema:
properties:
detail:
type: string
type: object
example:
detail: Internal server error occurred while verifying integrity marks.
security:
- APIKeyHeader: []
components:
schemas:
Body_reveal_edi_file_api_v1_edix12_reveal__post:
properties:
file:
type: string
format: binary
title: File
type: object
required:
- file
title: Body_reveal_edi_file_api_v1_edix12_reveal__post
EDIResponseModel:
properties:
message:
type: string
title: Message
description: A brief message indicating the result of the operation.
content:
type: string
title: Content
description: The modified or original EDI X12 content as a string.
type: object
required:
- message
- content
title: EDIResponseModel
description: Model representing the response after processing an EDIX12 file.
Body_embed_edi_file_api_v1_edix12_embed__post:
properties:
file:
type: string
format: binary
title: File
watermark_mode:
type: string
title: Watermark Mode
type: object
required:
- file
- watermark_mode
title: Body_embed_edi_file_api_v1_edix12_embed__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
VerificationResponseModel:
properties:
message:
type: string
title: Message
description: A brief message indicating the result of the verification.
is_valid:
type: boolean
title: Is Valid
description: Indicates whether the integrity marks are valid or not.
type: object
required:
- message
- is_valid
title: VerificationResponseModel
description: Model representing the response after verifying an EDIX12 file.
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
Body_verify_edi_file_api_v1_edix12_verify__post:
properties:
file:
type: string
format: binary
title: File
type: object
required:
- file
title: Body_verify_edi_file_api_v1_edix12_verify__post
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