Configure a claims source
Configures a new claims source for your tenant. When issuing a new credential, MATTR VII will make either a GET or a POST request to the claims source using the configured request parameters and fetch available data. This fetched data can then be included in the issued credential.
Analytic event
- CLAIM_SOURCE_CREATE_START
- CLAIM_SOURCE_CREATE_SUCCESS
- CLAIM_SOURCE_CREATE_FAIL
Request Body schema: application/jsonrequired
The claim source payload
Claims source configured
Bad Request
- Payload
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
{- "name": "Claims source accepting a x-api-key header",
- "authorization": {
- "type": "api-key",
- "value": "6hrFDATxrG9w14QY9wwnmVhLE0Wg6LIvwOwUaxz761m1J"
}, - "requestParameters": {
- "account_type": {
- "mapFrom": "claims.accountType",
- "defaultValue": "account.student"
}, - "account_id": {
- "mapFrom": "claims.accountId"
}
}
}
- 201
- 400
{- "name": "Claims source accepting a x-api-key header",
- "authorization": {
- "type": "api-key",
- "value": "****************************************61m1J"
}, - "requestParameters": {
- "account_type": {
- "mapFrom": "claims.accountType",
- "defaultValue": "account.student"
}, - "account_id": {
- "mapFrom": "claims.accountId"
}
}
}
Retrieve all claims sources
Returns a list of all claims sources configured on your tenant.
Analytic event
- CLAIM_SOURCE_RETRIEVE_LIST_START
- CLAIM_SOURCE_RETRIEVE_LIST_SUCCESS
- CLAIM_SOURCE_RETRIEVE_LIST_FAIL
Claims sources retrieved
Bad Request
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
- 200
- 400
{- "nextCursor": "Y3JlYXRlZEF0PTIwMjAtMDgtMjVUMDY6NDY6MDkuNTEwWiZpZD1hNjZmZmVhNS04NDhlLTQzOWQtODBhNC1kZGE1NWY1M2UzNmM",
- "data": [
- {
- "id": "57fa09e2-82f3-4d3d-9eca-d0253e84a4e6",
- "name": "My claims from example.com",
- "requestMethod": "GET",
- "requestParameters": {
- "mapFrom": "claims.accountType"
}, - "authorization": {
- "type": "api-key",
- "value": "****************************************61m1J"
}
}
]
}
Retrieve a claims source
Retrieves an existing claims source by providing its claimSourceID
.
Analytic event
- CLAIM_SOURCE_RETRIEVE_START
- CLAIM_SOURCE_RETRIEVE_SUCCESS
- CLAIM_SOURCE_RETRIEVE_FAIL
Claims source retrieved
Bad Request
Claims source not found
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
- 200
- 400
- 404
{- "id": "57fa09e2-82f3-4d3d-9eca-d0253e84a4e6",
- "name": "My claims from example.com",
- "requestMethod": "GET",
- "requestParameters": {
- "mapFrom": "claims.accountType"
}, - "authorization": {
- "type": "api-key",
- "value": "****************************************61m1J"
}
}
Update a claims source
Updates an existing claim source by providing its claimSourceID
.
Analytic event
- CLAIM_SOURCE_UPDATE_START
- CLAIM_SOURCE_UPDATE_SUCCESS
- CLAIM_SOURCE_UPDATE_FAIL
path Parameters
Request Body schema: application/jsonrequired
The updated claims source payload
Claims source updated
Bad Request
Claims source not found
- Payload
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
{- "name": "My claims from example.com",
- "requestMethod": "GET",
- "requestParameters": {
- "mapFrom": "claims.accountType"
}, - "authorization": {
- "type": "api-key",
- "value": "6hrFDATxrG9w14QY9wwnmVhLE0Wg6LIvwOwUaxz761m1J"
}
}
- 200
- 400
- 404
{- "id": "57fa09e2-82f3-4d3d-9eca-d0253e84a4e6",
- "name": "My claims from example.com",
- "requestMethod": "GET",
- "requestParameters": {
- "mapFrom": "claims.accountType"
}, - "authorization": {
- "type": "api-key",
- "value": "****************************************61m1J"
}
}
Delete a claims source
Deletes an existing claims source by providing its claimSourceID
.
Analytic event
- CLAIM_SOURCE_DELETE_START
- CLAIM_SOURCE_DELETE_SUCCESS
- CLAIM_SOURCE_DELETE_FAIL
Claims source deleted
Bad Request
Claims source not found
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
- 400
- 404
{- "code": "BadRequest",
- "message": "Validation Error",
- "details": [
- {
- "location": "params",
- "msg": "Invalid value",
- "param": "claimSourceId",
- "value": "abc"
}
]
}