Truid - Service Provider API (2.0.0)

Download OpenAPI specification:Download

API for Service Providers to get data shared during interaction.

Presentation

Get claims shared with the service provider.

This endpoint provides claims that has been shared with the service provider.

See Claims documentation for a list of available claims, and the the key and data format of each claim.

query Parameters
claims
required
string (ClaimType)
Enum: "truid.app/claim/address/v1" "truid.app/claim/birthdate/v1" "truid.app/claim/email/v1" "truid.app/claim/family-name/v1" "truid.app/claim/gender/v1" "truid.app/claim/given-name/v1" "truid.app/claim/id-document/issuing-country/v1" "truid.app/claim/legal-name/v1" "truid.app/claim/name/v1" "truid.app/claim/nationality/v1" "truid.app/claim/passport-number/v1" "truid.app/claim/personal-number/swe-10/v1" "truid.app/claim/phone-number/v1" "truid.app/claim/portrait-image/v1" "truid.app/claim/structured-name/v1"

Filter to specify which claims to return. Multiple values are separated with a comma. Each value should be the key of a claim to return.

See Claims documentation for a list of claims to request.

Responses

Response Schema: application/json
sub
required
string

Unique id of the End-User, specific for the Service (ppid).

required
Array of objects (Claim)

Contains the claims shared with the Service

Response samples

Content type
application/json
{
  • "sub": "string",
  • "claims": [
    ]
}

Signature

Get digital signature

This endpoint delivers a digital signature signed by the End-User. The signature is identified by the provided access token, that was acquired during the signing process.

Responses

Response Schema: application/jose
object (JwsProtectedHeader)

JWS protected header used in JAdES signatures

signature
string <base64>

Response samples

Content type
application/jose
eyJhbGciOiJFUzI1NiIsInR5cCI6Impvc2UiLCJjcml0IjpbInNpZ1QiLCJzaWdEIiwiYjY0Il0sInNpZ1QiOiIyMDIzLTA5LTEwVDEyOjU2OjUyWiIsInNpZ0QiOnsibUlkIjoiaHR0cDovL3VyaS5ldHNpLm9yZy8xOTE4Mi9PYmplY3RJZEJ5VVJJSGFzaCIsInBhcnMiOlsiaHR0cDovL2xvY2FsaG9zdDo4MDgwL2RvY3VtZW50cy9BZ3JlZW1lbnQucGRmIl0sImhhc2hNIjoiUzI1NiIsImhhc2hWIjpbImhSUnRxUEp0RWRHRU5Yb3d1U2w5alFoRElaUDdtcEo3Ymotem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