light-mode-image
Learn
API Reference

Trusted issuers

Create a trusted issuer

POST/v2/credentials/mobile/trusted-issuers

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

The trusted issuer payload

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/v2/credentials/mobile/trusted-issuers" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "certificatePem": "string",  "certificateData": {    "notAfter": "2019-08-24",    "notBefore": "2019-08-24",    "country": "2019-08-24",    "commonName": "2019-08-24"  }}

Retrieve all trusted issuers (protected)

GET/v2/credentials/mobile/trusted-issuers

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Query Parameters

limit?number

Range size of returned list.

Range1 <= value <= 1000
Default100
cursor?string

Starting point for the list of entries.

Response Body

application/json

application/json

curl -X GET "https://example.com/v2/credentials/mobile/trusted-issuers"
{  "nextCursor": "string",  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "certificatePem": "string",      "certificateData": {        "notAfter": "2019-08-24",        "notBefore": "2019-08-24",        "country": "2019-08-24",        "commonName": "2019-08-24"      }    }  ]}

Retrieve all trusted issuers (public)

GET/v2/presentations/trusted-issuers

Response Body

application/json

curl -X GET "https://example.com/v2/presentations/trusted-issuers"
{  "iacas": [    {      "certificate": "string"    }  ]}

Retrieve a trusted issuer

GET/v2/credentials/mobile/trusted-issuers/{trustedIssuerId}

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

trustedIssuerId*string

Trusted issuer ID

Formatuuid

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v2/credentials/mobile/trusted-issuers/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "certificatePem": "string",  "certificateData": {    "notAfter": "2019-08-24",    "notBefore": "2019-08-24",    "country": "2019-08-24",    "commonName": "2019-08-24"  }}

Delete a trusted issuer

DELETE/v2/credentials/mobile/trusted-issuers/{trustedIssuerId}

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

trustedIssuerId*string

Trusted issuer ID

Formatuuid

Response Body

application/json

application/json

curl -X DELETE "https://example.com/v2/credentials/mobile/trusted-issuers/497f6eca-6276-4993-bfeb-53cbbbba6f08"
Empty

How would you rate this page?

Last updated on

On this page