Skip to main content
Version: v0.7.0

Add offer

POST 

/api/oid4vci/offer

Creates a new credential offer

Request

Bodyrequired

    credential_issuerstringrequired
    credential_configuration_idsstring[]required
    grants object
    urn:ietf:params:oauth:grant-type:pre-authorized_code object
    pre-authorization_codestringrequired
    tx_code object
    input_modestring
    lengthnumber
    descriptionstring
    intervalnumber
    authorization_serverstring
    authorization_code object
    issuer_statestring
    authorization_serverstring

Responses

Schema
    idnumberrequired
    createddate-timerequired
    preAuthorizedCodestringrequired
    holderIdstring
    credentialTypestringrequired
    credentialIdstring
    revokedbooleanrequired
    credentialSubject objectrequired
    idstringrequired

Authorization: oauth2

name: oauth2type: oauth2scopes: wallet_manage_all_credentialsflows: {
  "password": {
    "scopes": {
      "wallet_view_did": "wallet_view_did",
      "wallet_manage_keys": "wallet_manage_keys",
      "wallet_use_keys": "wallet_use_keys",
      "wallet_view_own_credentials": "wallet_view_own_credentials",
      "wallet_view_all_credentials": "wallet_view_all_credentials",
      "wallet_manage_own_credentials": "wallet_manage_own_credentials",
      "wallet_manage_all_credentials": "wallet_manage_all_credentials",
      "wallet_issue_credentials": "wallet_issue_credentials",
      "wallet_view_presentations": "wallet_view_presentations"
    }
  }
}
curl -L 'https://tsg.dataspac.es/api/oid4vci/offer' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{
"credential_issuer": "string",
"credential_configuration_ids": [
"string"
],
"grants": {
"urn:ietf:params:oauth:grant-type:pre-authorized_code": {
"pre-authorization_code": "string",
"tx_code": {
"input_mode": "string",
"length": 0,
"description": "string"
},
"interval": 0,
"authorization_server": "string"
},
"authorization_code": {
"issuer_state": "string",
"authorization_server": "string"
}
}
}'
Request Collapse all
Auth
Body required
{
  "credential_issuer": "string",
  "credential_configuration_ids": [
    "string"
  ],
  "grants": {
    "urn:ietf:params:oauth:grant-type:pre-authorized_code": {
      "pre-authorization_code": "string",
      "tx_code": {
        "input_mode": "string",
        "length": 0,
        "description": "string"
      },
      "interval": 0,
      "authorization_server": "string"
    },
    "authorization_code": {
      "issuer_state": "string",
      "authorization_server": "string"
    }
  }
}