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:string
The item’s ID. Use it to delete the item.
string
link, file or text.string
The item’s title.
string
The text of a text item, or the description of a link or a file. Empty when there is none.
string
The link of a link item. Empty for the other kinds.
string
The link’s site name without
www., such as github.com. Empty for the other kinds.string
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.string
The name of the uploaded file. Empty for the other kinds.
string
application/pdf, image/png, image/jpeg or image/webp. Empty for the other kinds.integer
The file’s size in bytes.
0 for the other kinds.string
issuer for your items, recipient for items the recipient added.true when your team hid a recipient’s item from the credential page.string
Where the item was added:
studio, sheet, api, mcp, wallet or page.When the item was hidden (ISO 8601, UTC).
null when it is not hidden.boolean
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.string | null
When the recipient deleted it.
null otherwise.string
When the item was added (ISO 8601, UTC).
string
When the item last changed (ISO 8601, UTC).
List evidence
200 Success
array
The items, in the shape of Item fields.
boolean
true when you can add an item now.boolean
true when you can add a file now.string | null
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.integer
The size of all evidence files of your organization and its departments, in bytes. They share 5 GB.
object
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
string
required
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.
string
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.string
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.
file
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 missing or wrong API key returns
403 with {"detail": "Invalid token or organization not found"}.
