Customer credentials
List subjects
/o/{shortId}/api/credentials/subjects The customers your app has made offers to, newest first. Another app's customers are never included.
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}.
Query parameters
-
claimedstringOnly customers who have (
true) or haven't (false) claimed a credential.One of
true,false -
limitinteger 1–200default 50How many to return.
-
next_page_tokenstringThe
nextPageTokenfrom the previous page.
Responses
- 200 A page of subjects.
Show response fields
-
itemsarray of object requiredNewest first.
Show child attributes
-
subjectstring · uuid requiredThe customer.
-
claimedboolean requiredWhether the customer has claimed a credential.
-
credentialsinteger requiredCredentials issued to the customer, in any state.
-
liveinteger requiredCredentials currently live.
-
openOffersinteger requiredOffers still waiting to be claimed.
-
lastIssuedAtstring · date-timeWhen a credential was last issued to the customer.
-
createdAtstring · date-time requiredWhen you first offered to this customer.
-
-
hasMoreboolean requiredWhether another page follows.
-
nextPageTokenstringPass as
next_page_tokenfor the next page. Present whenhasMoreis true.
-
- 401 No bearer token.
- 403 The token belongs to another organization.
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. Use your own organization's short ID. |