Trustaige's APIs are plain HTTPS and JSON. Each page here covers one endpoint: when to use it, every field it takes and returns, the errors it can answer with and what to do about each, and the request in four languages.
Base URL
Every path is relative to your issuer:
https://id.trustaige.com https://id.trustaige.com Authentication
Most endpoints take an access token in the Authorization header. Your app gets one from POST /oauth2/token with the
client-credentials grant, asking for the scopes the endpoint lists. Tokens expire; request a new one when yours does. HumanProof's verify endpoint takes no token.
Countersign's endpoints take your app's own client authentication instead, exactly as the token endpoint does.
Errors
A failed request answers with an HTTP status and a JSON body with a message for people and, usually, a code for your code.
Branch on code, never on the message. Each endpoint's page lists its codes and what to do about each.
Pagination
Lists return items, hasMore and, when there is more, a nextPageToken. Pass it back as
next_page_token for the next page, with an optional limit. There are no page numbers or offsets.
Endpoints
HumanProof
Check that a person was present before you accept a form or an action.
Customer credentials
Offer credentials to your customers, read what you issued, and erase a customer who leaves. Your app calls these with a client token for your organization's issuer.
- post
/o/{shortId}/api/credentials/offersOffer a credential - get
/o/{shortId}/api/credentials/typesList credential types - get
/o/{shortId}/api/credentials/subjectsList subjects - get
/o/{shortId}/api/credentials/subjects/{subject}Get a subject - del
/o/{shortId}/api/credentials/subjects/{subject}Erase a subject
Countersign
Have the signed-in person confirm one exact action before your app carries it out, and collect a signed proof bound to that action. Your app calls these from its server, authenticated as itself.
This reference covers the endpoints the guides use today. It grows to the whole API, generated from the description the hub publishes.