Request OID4VCI access token
POST/oid4vci/token
Requests an access token based on a pre authorizated code the holder has received off-line
Request
- application/json
Bodyrequired
pre-authorized_codestring
Responses
- 200
- 403
- 404
- application/json
- Schema
- Example (auto)
Schema
access_tokenstringrequired
Example:
access-token-sample
token_typestring
Example:
Bearer
expires_innumber
Example:
3600
refresh_tokenstring
Example:
refresh-token-sample
c_noncestring
Example:
c-nonce-sample
c_nonce_expires_innumber
Example:
300
authorization_details object[]required
{
"access_token": "access-token-sample",
"token_type": "Bearer",
"expires_in": 3600,
"refresh_token": "refresh-token-sample",
"c_nonce": "c-nonce-sample",
"c_nonce_expires_in": 300,
"authorization_details": [
{
"type": "openid_credential",
"credential_configuration_id": "cred-config-123",
"credential_identifiers": [
"id1",
"id2"
]
}
]
}
Forbidden
- application/json
- Schema
- Example (auto)
Schema
namestringrequired
Example:
ResourceNotFound
statusstringrequired
Example:
404 Not Found
codenumberrequired
Example:
404
messageobject
Example:
The requested resource does not exist.
errorstring
Example:
Not Found
{
"name": "ResourceNotFound",
"status": "404 Not Found",
"code": 404,
"message": "The requested resource does not exist.",
"error": "Not Found"
}
Resource not found
- application/json
- Schema
- Example (auto)
Schema
namestringrequired
Example:
ResourceNotFound
statusstringrequired
Example:
404 Not Found
codenumberrequired
Example:
404
messageobject
Example:
The requested resource does not exist.
errorstring
Example:
Not Found
{
"name": "ResourceNotFound",
"status": "404 Not Found",
"code": 404,
"message": "The requested resource does not exist.",
"error": "Not Found"
}
- curl
- http
- CURL
curl -L -X POST 'https://tsg.dataspac.es/oid4vci/token' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'