Skip to main content

Credential Issue Request

API to execute a credential issue request (i.e. use the ssi service to offer a credential to a user).

  • Url

    /api/issue

  • Method

    GET

  • URL Params

    None

  • Query Params

    Required

    token=[string]

    This should be a jwt, as described here.

  • Body Params

    None

  • Success Response

    • Code

      200 OK

      Content

      {
      "issueRequest": {
      "hash": "76560bcb4f0ce284fda43721068446098b434061d8267143b6d6f72a2c1a697a",
      "jwtId": "I3TBbmXS+m6H",
      "requestor": {
      "id": 1,
      "name": "New org",
      "sharedSecret": "76cd77019a62b7c1b0a665bdfec941debbff7c5360f65541016e04db12cbdac8",
      "uuid": "40d0fbd3-38a3-4a6e-8fe9-cfc56406749d",
      "jolocomWallet": {
      "id": 1,
      "encryptedSeedHex": "f82494567241333cadb3be24e8735f04fede1293109a2007e18b5381fc83f1733e899107c95c14bf6c7c0257d2a74a457e78d45570a333a9feffad1ba0faceef",
      "password": "7c4c3e94eb97fa4fab723bc4c2206704"
      }
      },
      "type": {
      "id": 1,
      "type": "FirstNameCredential",
      "irmaType": "irma-demo.MijnOverheid.fullName",
      "jolocomType": {
      "id": 1,
      "type": "FirstNameCredential",
      "name": "First Name Credential",
      "context": [
      {
      "lastName": "https://schema.org/givenName"
      }
      ],
      "claimInterface": {
      "lastName": ""
      }
      }
      },
      "callbackUrl": "http://httpbin.org/get?response=",
      "data": {
      "firstName": ""
      },
      "id": 2,
      "uuid": "c56a4cc0-9e84-469e-8978-48f762f16b24"
      },
      "availableConnectors": ["jolocom"]
      }
  • Error Response

    • Code

      500 Internal Server Error

      Content

      {
      "statusCode": 500,
      "message": "Internal server error"
      }