Skip to main content
European CommissionEBSI European Blockchain
Select the Environment you want to work withEnvironment:

Token Endpoint

POST 

/authorisation/v4/token

Users receive access tokens after they present a valid EBSI Verifiable Credential and prove ownership over their DID.

Request

Bodyrequired
    grant_type stringrequired

    MUST be set to "vp_token"

    vp_token stringrequired

    Signed Verifiable Presentation. The VP Token must have a nonce and an expiration time of less than 5 minutes. See also the VP Token schema definition.

    presentation_submission stringrequired

    Descriptor for the vp_token, linked by presentation_definition. See also the Presentation Definition schema.

    scope stringrequired

    Possible values: [openid didr_write, openid didr_invite, openid tir_write, openid tir_invite, openid timestamp_write, openid tnt_authorise, openid tnt_create, openid tnt_write, openid tpr_write, openid tsr_write]

    OIDC scope

Responses

Success

Schema
    access_token ^(([A-Za-z0-9\-_])+\.)([A-Za-z0-9\-_]+)(\.([A-Za-z0-9\-_]+)?$required

    The access token issued by the Authorisation Server in JWS format. See also the "Access Token" schema definition

    token_type stringrequired

    Possible values: [Bearer]

    MUST be Bearer

    expires_in integer

    Possible values: >= 1

    The lifetime in seconds of the access token

    scope stringrequired

    Possible values: [openid didr_write, openid didr_invite, openid tir_invite, openid tir_write, openid timestamp_write, openid tnt_authorise, openid tnt_create, openid tnt_write, openid tpr_write, openid tsr_write]

    The scope of the access token

    id_token ^(([A-Za-z0-9\-_])+\.)([A-Za-z0-9\-_]+)(\.([A-Za-z0-9\-_]+)?$required

    ID Token value associated with the authenticated session. Presents client's identity. ID Token is issued in a JWS format. See also the "ID Token" schema definition.

Loading...