Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
curl --request POST 'https://certify.gataca.io/admin/v1/login/basic' \
    --header 'tenant: [TENANT]api_keys/login' \
    --header 'Authorization: Basic [AUTH]'

...

  • AUTH: base64(apikey:passwordapi-key id:api-key secret) - You must provide the API Key ID and password given when creating the API Key in Studio, encoded in base64 format in the HTTP request header.

...

Code Block
curl --request POST 'https://certify.gataca.io/api/v1/issuanceRequests' \
    --header 'Authorization: [TOKEN_TYPE] [APP_TOKEN]' \
    --header 'Content-Type: application/json' \
    --data-raw '{
      "group": "[TENANTSSI_TEMPLATE_ID]"
    }'
  • TOKEN_TYPE: Type of token received from the authentication call. Currently, GATACA always uses jwt.

  • APP_TOKEN: Access token received from the authentication call (This authentication must be executed by an application linked to that TENANT, not an administrator).

  • TENANTSSI_TEMPLATE_ID: Identifier of the tenanttemplate used for this verification. These identifiers are configured in Studio.

...

Code Block
breakoutModewide
curl --request PATCH 'https://certify.gataca.io/admin/v1/issuanceRequests/[ISSUANCE_PROCESS_ID]/credentials' \
    --header 'Content-Type: application/json' \
    --header 'Authorization: [TOKEN_TYPE] [APP_TOKEN]' \
    --data-raw '[
        {
          "type": [
            "VerifiableCredential",
            "vIdCredential"
          ],
          "credentialSubject": {
            "documentType": "Passport",
            "firstName": "Luke",
            "lastName": "Skywalker",
            "identifier": "XXXXXXXXX",
            "dateOfBirth": "25-05-1977"
          },
        }
    ]'
 

...

Each VC is composed of the following:

...

  • credentialSubject: This is a map of fields that includes the values for that credential. Inside this object is the option to attach the id of the holder (DID) and the properties for that kind of credential.

...