You can also send evidence when you issue: see the
evidence field of Issue Credential. View Credential returns what the credential page shows.
Before you start
- All URLs are on
https://api.thehyperstack.com. Send your API key:Authorization: Bearer YOUR_API_KEY. Create a key in the Studio under Settings → Developers. document_idis the credential’s key.evidence_idis theidof an item, from the list.- Adding needs credential evidence on your plan (Premium or Enterprise). Listing and deleting work on every plan, so evidence you added before a downgrade stays yours to manage.
- Items you add with the API are your organization’s items, the same as items your team adds in the Studio.
Item fields
Every endpoint returns items in this shape:The address that opens the item: the link, or the file’s address on the credential page (
https://hyperstack.id/credential/{document_id}/evidence/{id}). Empty for a text item. The file address checks who may open the file, then sends them to it. It does not change.true when your team hid a recipient’s item from the credential page.When the item was hidden (ISO 8601, UTC).
null when it is not hidden.true when the recipient deleted the item after your team hid it. Its title, link, text and file are gone, and it still uses one of the recipient’s 5 places. It can’t be shown again.List evidence
200 Success
The items, in the shape of Item fields.
Why you can’t add:
plan: your plan has no credential evidence.limit_items: the credential has 10 items from you.revoked: the credential is revoked.storage_full: your file storage is full.can_addstaystrue: you can still add links and text.
null when you can add anything.The size of all evidence files of your organization and its departments, in bytes. They share 5 GB.
The limits, as numbers: items per credential (
issuer_items, recipient_items), characters (title_chars, text_chars, url_chars), bytes (file_bytes, storage_bytes) and the file endings Hyperstack takes (file_types).Add evidence
multipart/form-data for a file.
You can add evidence to a credential under review or published. Viewers see it once the credential is published. You can’t add to a revoked credential.
Body Parameters
The item’s title, up to 120 characters. For a file you can leave it out: the title is then the file name without its ending.
A link, up to 2,000 characters. It must start with
https:// or http://. Send it for a link item. Hyperstack never opens the link.Plain text, up to 2,000 characters. It is the text of a text item, so a text item needs it. For a link or a file it is an optional description.
A file, up to 10 MB: PDF, PNG, JPEG or WebP. Hyperstack checks the file’s ending and its first bytes. Send it as
multipart/form-data. Don’t send a url with it.url, a text item has only narrative, and a file item has file.
201 with the new item and the new add state:
201 Created
Delete evidence
200 Success
Errors
Errors have the usual error body:
A wrong or revoked API key returns
403 with {"detail": "Invalid token or organization not found"}. A missing key returns 403 with {"detail": "Authentication credentials were not provided."}.
