How to certify files and text with the iBS blockchain API
By iCommunity · Editorial and technical team
This tutorial connects a file or text with an iBS evidence record. It uses the official documentation confirmed by iCommunity: OpenAPI 3.1.0, API version 2.0.0 and server https://api.icommunitylabs.com/v2. This website does not make API requests.
The goal is to follow evidence creation and retrieval, not to prove the content is true. Retain the source version and its context so a later reviewer can interpret the record.
1. Prepare authentication and content
The API uses JWT Bearer authentication. Examples contain placeholders: substitute an authorized credential only in your own environment, never in public code. Do not put personal documents or secrets in a test without reviewing data handling.
Choose a title that places the evidence in its business process. Select the exact file version or approved text and retain a reference in your system. No storage policy, maximum size or particular blockchain network is assumed.
2. Create text evidence
POST /evidences accepts multipart/form-data. title is required; files (a file array), text and signatures (signature IDs) are optional. The example below uses only title and text. Let curl generate the multipart header and boundary.
Markers between < > are not real values. This example does not specify additional properties or an unconfirmed response format.
curl --request POST 'https://api.icommunitylabs.com/v2/evidences' \
--header 'Authorization: Bearer <JWT_BEARER_TOKEN>' \
--form 'title=<EVIDENCE_TITLE>' \
--form 'text=<TEXT_TO_CERTIFY>'3. Submit a file
For a file, the example replaces text with a files field pointing to a local path. files is defined as an array; check the documentation for serialization of multiple files and signatures before expanding the request. This tutorial does not invent files[] or signatures[] notation.
Submitting a file to the API does not establish where it is stored, how long it is retained or which parts reach a network. Clarify those conditions separately with the team.
curl --request POST 'https://api.icommunitylabs.com/v2/evidences' \
--header 'Authorization: Bearer <JWT_BEARER_TOKEN>' \
--form 'title=<EVIDENCE_TITLE>' \
--form 'files=@<LOCAL_FILE_PATH>'4. Retain id and link; retrieve certification
The 201 response returns id and link. Certification is asynchronous: creating the record does not mean anchoring has finished. Retain the returned id and use it in GET /evidences/{id}; do not reinterpret link as proof of completion.
GET /evidences and GET /evidences/{id} retrieve evidence and, where available, certification hash, network, timestamp, mirrors and checker or block explorer links. The hash is a string, not a number. Do not assume every field is available immediately.
curl --request GET 'https://api.icommunitylabs.com/v2/evidences/<RETURNED_EVIDENCE_ID>' \
--header 'Authorization: Bearer <JWT_BEARER_TOKEN>'5. Follow the webhook flow
The documented evidence.certified event supports integration of certification notifications. Flow: create evidence → retain its id → receive evidence.certified → retrieve the record to review available data. Receiver configuration and exact correlation depend on the current contract.
GET /events and GET /events/{id} retrieve historical events; lists use cursor pagination. No delivery order, automatic retries, webhook signature or exactly-once delivery is asserted.
Frequently asked questions and limits
Does 201 mean certified? No: certification is asynchronous. Does a hash restore the file? No: a fingerprint does not reconstruct content. Does this establish compliance or qualified timestamping? These endpoints do not establish that.
Before production, confirm quotas, limits, error handling, retries, data handling and webhook verification. This tutorial does not prescribe polling intervals or completion times.
Sources and documentation
Discuss how iBS fits your process and which conditions your integration needs.
Discuss integration