Customer credentials
List credential types
/o/{shortId}/api/credentials/types Every live credential type of your organization, with its claims and validity: the names you pass as type when you offer. Types are shared by all of your apps.
Authentication
A client token (Authorization: Bearer …) from POST /oauth2/token with the scope issued:read
.
Path parameters
-
shortIdstring requiredYour organization's short ID, as it appears in your issuer:
https://id.trustaige.com/o/{shortId}.
Responses
- 200 Your organization's live types.
Show response fields
-
itemsarray of object requiredEvery live type of your organization.
Show child attributes
-
namestring requiredThe type's name: what you pass as
typewhen you offer. -
kindstring requiredWhat kind of credential it is. A Customer account is
standing.One of
pass,standing,admission,record -
claimsarray of object requiredThe claims the type declares.
Show child attributes
-
namestring requiredThe claim's name, as you set it in
claimswhen you offer. -
labelstring requiredHow the claim is shown.
-
valuesarray of stringThe values it can take. Claims take no free text.
-
-
validityobject requiredHow long it lasts.
Show child attributes
-
daysintegerHow many days it lasts.
-
fromstring · date-timeWhen it starts, for a fixed window.
-
untilstring · date-timeWhen it ends, for a fixed window.
-
renewsbooleanWhether it renews on its own before it runs out.
-
-
displayobject requiredHow it looks to the person who holds it.
Show child attributes
-
titlestring -
descriptionstring -
backgroundstringCard colour.
-
textstringText colour.
-
-
-
- 401 No bearer token.
Errors
Errors come back as a code to branch on. What each means and what to do:
| Status | Code | What to do |
|---|---|---|
| 403 | wrong_organization | The token belongs to another organization's app. |
| 429 | — | More than 60 requests a minute from this client. Back off and retry. |