Skip to content
Trustaige Docs

Customer credentials

List credential types

get /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

  • shortId string required

    Your 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
    • items array of object required

      Every live type of your organization.

      Show child attributes
      • name string required

        The type's name: what you pass as type when you offer.

      • kind string required

        What kind of credential it is. A Customer account is standing.

        One of pass , standing , admission , record

      • claims array of object required

        The claims the type declares.

        Show child attributes
        • name string required

          The claim's name, as you set it in claims when you offer.

        • label string required

          How the claim is shown.

        • values array of string

          The values it can take. Claims take no free text.

      • validity object required

        How long it lasts.

        Show child attributes
        • days integer

          How many days it lasts.

        • from string · date-time

          When it starts, for a fixed window.

        • until string · date-time

          When it ends, for a fixed window.

        • renews boolean

          Whether it renews on its own before it runs out.

      • display object required

        How it looks to the person who holds it.

        Show child attributes
        • title string
        • description string
        • background string

          Card colour.

        • text string

          Text 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.